Re: [gdal-dev] The problem when using ReadRaster(C#) method

2011-08-31 Thread Even Rouault
Selon Tamas Szekeres : > You should make sure about the actual representation of the raster image, > whether it represents the pixel as floats as you have used float arrays in > the code. The last 2 parameters are used to define the byte offset of the > pixels and lines in the image ( for more inf

Re: [gdal-dev] The problem when using ReadRaster(C#) method

2011-08-31 Thread Tamas Szekeres
You should make sure about the actual representation of the raster image, whether it represents the pixel as floats as you have used float arrays in the code. The last 2 parameters are used to define the byte offset of the pixels and lines in the image ( for more info see the RasterIO

[gdal-dev] The problem when using ReadRaster(C#) method

2011-08-31 Thread hitweiran
I want to read a multiband image(in format of .img) by using method ReadRaster, however, I encount some problems. I just can't understand why the data loaded to memory is wrong? the code is like this OSGeo.GDAL.Dataset dataSet = OSGeo.GDAL.Gdal.Open(@"G:\building.img",OSGeo.GDAL.Access.GA_ReadOnly