[gdal-dev] Convert raster into points with GDAL?

Jukka Rahkonen jukka.rahkonen at mmmtike.fi
Wed Jun 4 09:30:58 PDT 2014


Even Rouault <even.rouault <at> mines-paris.org> writes:

> 
> Hi Jukka,
> 
> At least two ways of turning a raster into a grid of poinds :
> 
> * gdal2ogr mentionned in http://trac.osgeo.org/gdal/wiki/CodeSnippets. You
need
> to compile it from source.
> 
> * Otherwise
http://svn.osgeo.org/gdal/trunk/gdal/swig/python/scripts/gdal2xyz.py
> . With the -csv option, it will create a CSV file.
> 
> Even

Hi,

Thanks, I will try gdal2xyz then. I wonder if gdal_polygonize.py could have
three options 1) Create minimum amount of polygons by making a union of
connected cells with the same value (the default) 2) Create cells (polygons)
without union 3) Create points.

-Jukka Rahkonen-



More information about the gdal-dev mailing list