Is there a way to export a list of layers containing invalid geometry (e.g. self-intersections) via Python?
Our GIS server contains over 40,000 layers, some of which have all sorts of errors that simply cannot be identified manually.
Is there some sort of OGR/GDAL command that can perform this?
-sql "select * from filename WHERE not ST_IsValid(geometry)". Otherwise mass converting to sqlite or postgis and using the abilities of these formats might work.