[gdal-dev] Raster to vector conversions....

Even Rouault even.rouault at mines-paris.org
Tue Jul 1 13:18:57 PDT 2014


Le mardi 01 juillet 2014 22:07:36, William Hudspeth a écrit :
> Hello,
> 
> I am trying to find a method of converting a raster grid to a polygon
> vector that does NOT aggregate adjacent pixels that share the same Z
> value. In other words, I would like the output vector to be a grid of
> polygons where the number of polygons is equal to the number of pixels
> in the source raster file, and where the polygon attribute values
> reflect the pixel Z value. The script gdal_polygonize does not seem to
> be able to do this. Any other ideas on how this might be accomplished?

Bill,

gdal_polygonize is indeed too smart for what you need ;-)

See this email and other emails in that thread that are exactly about this 
topic :
http://lists.osgeo.org/pipermail/gdal-dev/2014-June/039292.html

Best regards,

Even

-- 
Geospatial professional services
http://even.rouault.free.fr/services.html


More information about the gdal-dev mailing list