[gdal-dev] validate/clean geometry with OGR?

Elijah Robison elijah at villagis.com
Wed Apr 27 10:36:17 EDT 2011


Hey devs, is anyone aware of an OGR approach to validate/clean 
geometries, for instance, as they are being converted from SHP to 
PostGRESql? 

It's not uncommon to have a handful of invalid geometries (usually 
self-intersecting polygons) in a parcel dataset, and it's impractical to 
correct them manually.  In most situations I use the "Clean Geometries" 
function in ArcGIS, which does fix the problem.  However this one 
functionality is my main reason to retain Arc in my primary tool chain.

I've never found a scripting approach by trolling the search engines so 
I thought I'd ask here.

Thanks, Elijah


More information about the gdal-dev mailing list