Re: [gdal-dev] Saving 16 bit image

2011-07-21 Thread Chaitanya kumar CH
pavkiz, You are using GDT_Byte in the RasterIO function call. If you want to write the date with 16bit depth you need to use GDT_Int16 or GDT_UInt16. Check the translation with the GDAL utility gdal_translate [1] with the -ot option. [1]: http://www.gdal.org/gdal_translate.html On Thu, Jul 21,

[gdal-dev] Saving 16 bit image

2011-07-21 Thread el_inca
Hi, Can anybody help me with saving TIFF images? I need to save 8 bit image to 16 bit image. Raster data is keeping in Byte array. When i save from 8 bit to 8 bit it works good. But when i save from 8 to 16 bit Gdal creates an image, that i can read after with this library, but not with another pro