Skip to content

Instantly share code, notes, and snippets.

@pigreco
Last active March 29, 2018 17:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pigreco/dfbc24bf099897f0cc92b7a3cc79a6af to your computer and use it in GitHub Desktop.
Save pigreco/dfbc24bf099897f0cc92b7a3cc79a6af to your computer and use it in GitHub Desktop.
per articolo
select distinct l2.id,l2.geometry, l1.ispezione
from
(select * from rete_gas_tratti where ispezione =1) l1,
(select * from rete_gas_tratti where ispezione =0) l2
where st_touches (l1.geometry, l2.geometry) =1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment