Hi,<br><br>I noticed gdal_polygonize.py creates invalid shapefiles.<br>I use this tiff file as input:<br clear="all"><a href="http://www.fao.org/geonetwork/srv/en/http://www.fao.org/geonetwork/srv/en/resources.get?id=37139&fname=povt.zip&access=private" target="_blank">http://www.fao.org/geonetwork/srv/en/http://www.fao.org/geonetwork/srv/en/resources.get?id=37139&fname=povt.zip&access=private</a><br>

<br>And this is my command:<br>gdal_polygonize.py pov.tif -f "ESRI Shapefile" pov_polygonize.shp<br><br>I tried it using gdal v1.9 and v2.0.<br>Both give a result of 381 invalid shapes (according to GEOS).<br>All of them are reported as 'Ring Self-intersection'.<br>

<br>Should I change my command to prevent invalid shapes?<br><br>Thanks,<br>
<br>
Paul<br>
<br>