[gdal-dev] Question about GDALDataType::GDT_Float32

Adeel Raza adeel.raza at crc.gc.ca
Fri Jul 10 17:18:39 EDT 2009


Hi,

I'm using the GDALRasterBand::RasterIO() function to write a buffer of 
C/C++ float types to a raster band of data type 
GDALDataType::GDT_Float32. I assumed that this conversion would not be 
problem since the size of a C/C++ float is also 32 bits, but I wanted to 
be sure. If the conversion will be problematic, how would I resolve the 
issue (ex: a potential cast maybe).

Best Regards,
Adeel Raza.





More information about the gdal-dev mailing list