[gdal-dev] How to use gdal_polygonize.py

Ves Nikos vesnikos at gmail.com
Tue Oct 23 02:55:24 PDT 2012


Hey Paul,

I think  [ gdal_contour ]  is more close to what you think you need:

here's a quick turorial I just found on it:

http://woostuff.wordpress.com/2011/09/27/generating-contours-using-gdal-via-shell-or-qgis/


Kind regards,

Ves Nikos


Στις 22/10/2012 1:38 μμ, ο/η Paul Meems έγραψε:
> 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
>
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>



More information about the gdal-dev mailing list