[gdal-dev] gdal_polygonize.py creates invalid shapes

Paul Meems bontepaarden at gmail.com
Wed Oct 31 06:20:19 PDT 2012


Hi,

I noticed gdal_polygonize.py creates invalid shapefiles.
I use this tiff file as input:
http://www.fao.org/geonetwork/srv/en/http://www.fao.org/geonetwork/srv/en/resources.get?id=37139&fname=povt.zip&access=private

And this is my command:
gdal_polygonize.py pov.tif -f "ESRI Shapefile" pov_polygonize.shp

I tried it using gdal v1.9 and v2.0.
Both give a result of 381 invalid shapes (according to GEOS).
All of them are reported as 'Ring Self-intersection'.

Should I change my command to prevent invalid shapes?

Thanks,

Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20121031/c771898a/attachment.html>


More information about the gdal-dev mailing list