Skip to content

Instantly share code, notes, and snippets.

@gledsoncruz
Created March 27, 2017 17:58
Show Gist options
  • Save gledsoncruz/09839ed4cd72605a03d4d9c0485d0471 to your computer and use it in GitHub Desktop.
Save gledsoncruz/09839ed4cd72605a03d4d9c0485d0471 to your computer and use it in GitHub Desktop.
--Quais os loteamentos que interceptam os limites do bairro SANTO AGOSTINHO?
SELECT lot.nome FROM loteamentos lot, bairros b
WHERE st_overlaps(lot.the_geom, b.the_geom) AND b.nome = 'SANTO AGOSTINHO'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment