A question about the GDAL C# bindings.  The overloads for the ReadRaster and
WriteRaster methods in the Band class take several different type of buffers:

  ReadRaster(..., byte[] buffer, ...)
  ReadRaster(..., short[] buffer, ...)
  ReadRaster(..., int[] buffer, ...)
  ReadRaster(..., float[] buffer, ...)
  ReadRaster(..., double[] buffer, ...)

I was wondering why there are no overloads for the unsigned integer types
that GDAL supports, e.g., unsigned 16-bit and 32-bit integers:

  ReadRaster(..., ushort[] buffer, ...)
  ReadRaster(..., uint[] buffer, ...)

The C# SWIG interface file (trunk/gdal/swig/include/csharp/gdal_csharp.i)
has lines that appear to define these overloads:

  /*! Sixteen bit unsigned integer */ 
//%rasterio_functions(DataType.GDT_UInt16,ushort)
  /*! Thirty two bit unsigned integer */ 
//%rasterio_functions(DataType.GDT_UInt32,uint)

but there is no information as to why they are commented out.  Was it to
maintain CLS-compliance?

Thanks,
Jimm
--
James Domingo
Green Code LLC
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to