[Gdal-dev] MrSID driver with 16bit output

Frank Warmerdam warmerdam at pobox.com
Tue Feb 14 23:36:25 EST 2006


Chapman, Martin wrote:
> I have a 16bit (GDT_UInt16) tiff file that I am trying to copy to a 
> UInt16 jp2 file using the MrSID esdk 6.x driver.  When I try to remap it 
> to 8-bit uchar it works fine.  When I try to just copy it to jp2 it 
> fails.  It looks like the only diff between the two operations is the 
> datatype used to initialize the JP2WriterManager object in the 
> JP2CreateCopy() method of the mrsiddataset.cpp file.  In 
> MrSIDDummyImageReader::initialize() the datatype is set to 
> LTI_DATATYPE_UINT16 instead of LTI_DATATYPE_UINT8.  Can anyone confirm 
> this to be a problem in the GDAL mrsid driver?

Martin,

I have confirmed the same behavior.  If you file a bug on this against
GDAL I'll try and dig into it tomorrow (Wednesday).

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent




More information about the Gdal-dev mailing list