[gdal-dev] How to use gdal_polygonize.py

Paul Meems bontepaarden at gmail.com
Mon Oct 22 03:38:11 PDT 2012


Hi all,

I'm investigating gdal_polygonize.py
I'm thinking of using it to convert a DEM-file to a polygon shapefile.

I did a quick test using gdal_polygonize.py logan.tif -f "ESRI Shapefile"
logan_poly.shp and got a shapefile.
But this shapefile is huge, it created a polygon for every pixel value.

I was thinking it would be a bit more like gdal_contour which uses an
interval.

Am I not understanding the purpose of gdal_polygonize?
Can somebody tell me some real-life use cases when to use this?

Thanks,

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


More information about the gdal-dev mailing list