Created
March 22, 2018 22:01
-
-
Save pigreco/2b358cca0a4070a06c35487a706d87bb to your computer and use it in GitHub Desktop.
query di aggiornamento per correzione geometrie non valide istat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- per i comuni | |
UPDATE Com01012018_WGS84 | |
SET geom = MakeValid(geom) | |
WHERE ST_IsValid(geom) <> 1; | |
-- per le province: | |
UPDATE ProvCM01012018_WGS84 | |
SET geom = MakeValid(geom) | |
WHERE ST_IsValid(geom) <> 1; | |
-- per le regioni: | |
UPDATE Reg01012018_WGS84 | |
SET geom = MakeValid(geom) | |
WHERE ST_IsValid(geom) <> 1; | |
-- ed infine: | |
UPDATE RipGeo01012018_WGS84 | |
SET geom = MakeValid(geom) | |
WHERE ST_IsValid(geom) <> 1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment