[Gdal-dev] RE: Reading JPEG2000 JPC and J2K
Frank Warmerdam
warmerdam at pobox.com
Mon Nov 14 10:27:22 EST 2005
On 11/11/05, Peng Gao <pgao at esri.com> wrote:
> Thanks all for the info.
>
> I messed up with my small sample images by renaming them to .jp2 from
> .jpc, .j2c, and etc,
> to work around
> an extension checking problem in my system. It seems that JP2KAK driver
> uses the extension name to switch to different modes. I properly fixed
> the extension name checking problem, and now all three of my sample
> images
> are displaying with their original extension.
Peng Gao,
Ah yes, some of the logic for raw compression schemes is based on
the extension since the headers aren't too easy to recognise automatically
(and safely).
> But I also have lots of more JPC images. Those are DOQQ images. The
> following is
> the info of one of them. The info looks alright, and but GDAL failed to
> read it,
> in CPLErr JP2KAKRasterBand::IReadBlock( int nBlockXOff, int nBlockYOff,
> ...),
> with an execption, Microsoft C++ exception:
> kdu_cpl_error_message::JP2KAKException @ 0x0012d3a0,
> on the first block (0, 0).
You might need to make one of these available for me to dig into it.
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