[gdal-dev] how to get the each pixel value from the dataset

Frank Warmerdam warmerdam at pobox.com
Wed May 19 09:37:45 EDT 2010


mail2vajram wrote:
> how to get the each pixel value from the dataset. And another requirement is
> how to get the values of 
>  ( ncols 
>   nrows 
>   cellsize 
>   xllcorner 
>   yllcorner 
>   nodata_value )

Vajram,

You don't really provide much background information.  Are you planning
to do this from C/C++ or just using the commandline utilities?

With the utilities, the most obvious approach would be to translate to
AAIGRID format which will given you exactly the above with the pixels in
ascii format.

With the API you can also accomplish this.  I would suggest reading the
tutorial at:

  http://www.gdal.org/gdal_tutorial.html

and then asking if you have specific questions not covered by it.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent



More information about the gdal-dev mailing list