>             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()
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to