[gdal-dev] Help on writting float type data into raster using writeRaster

Even Rouault even.rouault at mines-paris.org
Sat Nov 3 02:50:38 PDT 2012


>             int[] bandMap = new int[] { 1, 1, 1};
>             try
>             {
>                 ds.WriteRaster(LCx, LCy, width, height, Data, width,
> height, 1, bandMap, 1, 1, 1);

The values you give for the last 5 arguments of WriteRaster() are definitely
wrong. See the documentation of GDALDataset::IRasterIO() (
http://www.gdal.org/classGDALDataset.html#ae077c53268d2272eebed10b891a05743 ) :
its last 5 arguments are the same as the last 5 ones of the C#
Dataset.WriteRaster()


More information about the gdal-dev mailing list