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

Joaquim Luis jluis at ualg.pt
Wed Jun 4 05:46:19 PDT 2014


On 04-06-2014 13:33, Hernán De Angelis wrote:
> One option is exporting to NetCDF format and running GMT's grd2xy 
> (http://gmt.soest.hawaii.edu/doc/latest/grd2xyz.html). If the raster 
> is big this will be slow though.

If GMT was built with the GDAL link (nearly all the GMT5's and many of 
the GMT4's) you don't need to convert the grid format, just use it as 
is. And why you say it's slow (apart from the time taken to same a 
potentially big ascii file on disk)?

Joaquim

>
> H.
>
>
> On Wed, Jun 4, 2014 at 1:00 PM, Jukka Rahkonen 
> <jukka.rahkonen at mmmtike.fi <mailto:jukka.rahkonen at mmmtike.fi>> wrote:
>
>     Hi,
>
>     Is there a tool for converting rasters into vector grids, either
>     points or
>     polygons? I know gdal_polygonize but what I am after would just
>     create a
>     regular grid of points or polygons and write raster values into
>     attributes.
>     I can do that with SEXTANTE vectorization tools but I would rather
>     use GDAL.
>
>     -Jukka Rahkonen-
>
>     _______________________________________________
>     gdal-dev mailing list
>     gdal-dev at lists.osgeo.org <mailto:gdal-dev at lists.osgeo.org>
>     http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
>
>
>
> -- 
> Hernán De Angelis
>
> Glaciers & Remote Sensing                 |   Sustainability & 
> Environmental Science
> http://talesoficeandstone.blogspot.se/   | 
> http://talesofafiniteplanet.blogspot.se/ 
> <http://talesoficeandstone.blogspot.se/>
>
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev

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


More information about the gdal-dev mailing list