[gdal-dev] ReadRaster C# Incorrect values

mvscheers menno at huss.nl
Tue Oct 18 06:00:01 PDT 2016


Trying to get data from attached grib file. 

(BAND 1) 

 float[] bfr = new float[dataBand.XSize * dataBand.YSize]; 
                fixed (float* dataPtr = bfr) 
                    dataBand.ReadRaster(0, 0, dataBand.XSize,
dataBand.YSize, (IntPtr) dataPtr, dataBand.XSize,dataBand.YSize,
DataType.GDT_Float64, 0, 0); 

All values returned are either the NO_DATA value (9999) or 0. 
ANything im doing wrong here ? 


View this message in context: http://osgeo-org.1560.x6.nabble.com/gdal-dev-ReadRaster-C-Incorrect-values-tp5291259.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.

More information about the gdal-dev mailing list