Created
June 21, 2018 13:04
-
-
Save thomaspoignant/d75538ea8ef8c72e57b84c8f65ffcdae to your computer and use it in GitHub Desktop.
Find invalid postgis polygon (postgresql)
This file contains hidden or 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
/* | |
Get ids of all invalid postgis polygon in the database | |
*/ | |
SELECT id | |
FROM polygones | |
WHERE st_isvalid(polygone)=FALSE | |
ORDER BY id; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Very usefull postgis request to detect invalid polygon in a postgresql database