Skip to content

Instantly share code, notes, and snippets.

@thomaspoignant
Created June 21, 2018 13:04
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 thomaspoignant/d75538ea8ef8c72e57b84c8f65ffcdae to your computer and use it in GitHub Desktop.
Save thomaspoignant/d75538ea8ef8c72e57b84c8f65ffcdae to your computer and use it in GitHub Desktop.
Find invalid postgis polygon (postgresql)
/*
Get ids of all invalid postgis polygon in the database
*/
SELECT id
FROM polygones
WHERE st_isvalid(polygone)=FALSE
ORDER BY id;
@thomaspoignant
Copy link
Author

Very usefull postgis request to detect invalid polygon in a postgresql database

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment