[gdal-dev] gdal_polygonize and polygon edges

Jeff Lacoste jefflacostegdal at gmail.com
Tue Feb 19 10:29:01 PST 2013


Hi,

I'm using gdal_polygonize.py <http://gdal.org/gdal_polygonize.html> to
create polygon from a grid and the output polygons seems to follow the edges
of the grid pixels. I was wondering if there is any way to change/edit the
code to instead of following the edges
of the pixels, use the center of the pixels as the nodes of the created
polygons ?

So instead of a polygon following the edges of the pixels, it will instead
be passing through the center of the connected
pixels... This is to avoid having a scale effect of following the pixels
edges.

Thanks

Jeff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20130219/c688f3a1/attachment-0001.html>


More information about the gdal-dev mailing list