[Gdal-dev] gdal_merge and gdalwarp: Problems with 1 bit data
Mateusz Loskot
mateusz at loskot.net
Tue Oct 16 03:44:49 EDT 2007
uwe.schmitz at lverma.nrw.de wrote:
> gdal_merge and gdalwarp seem to have problems writing RasterBands
> with 1 Bit depth. I'm using gdal-1.4.2 with old
> python bindings(also tested with FWTools-1.3.7).
>
> ...
> Band 1 Block=6299x10 Type=Byte, ColorInterp=Palette
> Metadata:
> NBITS=1
> Color Table (RGB with 2 entries)
> 0: 255,255,255,255
> 1: 0,0,0,255
>
> Here I'm a little bit astonished to see Type=Byte
> and ColorInterp=Palette, but may be it's caused by
> abstraction of the interface.
Uwe,
AFAIK, 1-bit datatype (generally, non-byte) is represented as GDT_Byte,
so I'd call it as known behavior.
Cheers
--
Mateusz Loskot
http://mateusz.loskot.net
More information about the Gdal-dev
mailing list