Re: [gdal-dev] Extract data from a.dem file

2010-09-07 Thread Carmelo Terrasi
OK guys, I got it, very helpful! Thank you so much 2010/9/6 Even Rouault > Yes , what you see is expected. > > The prototype of RasterIO() is : > > RasterIO( flag, x, y, width, height, buffer, buffer_width, buffer_height, > gdal_type, pixel_offset, line_offset) > > so that means that you ask the

Re: [gdal-dev] Extract data from a.dem file

2010-09-06 Thread Even Rouault
Yes , what you see is expected. The prototype of RasterIO() is : RasterIO( flag, x, y, width, height, buffer, buffer_width, buffer_height, gdal_type, pixel_offset, line_offset) so that means that you ask the extraction of the window [x, x + with-1] x [y, y + height -1] to be stored in a buffer

[gdal-dev] Extract data from a.dem file

2010-09-06 Thread Carmelo Terrasi
Hello everybody, I'm trying to figure out how to get elevation from a .dem file. I opened the file: ... pointerToDataSet=(GDALDataset*) GDALOpen("myFile.dem", GA_ReadOnly); ... So I caught a grid as a 371x371 matrix, but I can read only the first line, so the first 371 elevations... the error is