Thanks Mateusz,
just tested and all works fine
--
Alexander Bruy
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev
Hi all
I work on raster processing application (developed with C++ and Qt).
For reading rasters we use GDAL and it's C++ API.
For one task we need to get pixel values from all raster bands. For
this I get all GDALRasterBands and store them in list. Then in loop
read image row by row and store
Alexander Bruy wrote:
Here is simplified code
// iterate over image row by row
for ( int row = 0; row ySize; ++row )
{
// read one row from each band and store it in list
for ( int b = 0; b bandCount; ++b )
{
float *scanline;
scanline = (float *) CPLMalloc( sizeof( float
Alexander,
Not sure if it meets you situation, but there is a command line utility
with similar functionality, gdallocationinfo,
http://gdal.org/gdallocationinfo.html
HTH, Eli
On 3/16/2011 at 1:21 PM, in message
20110316222128.b943f4e3.alexander.b...@gmail.com, Alexander Bruy