[QGIS-trac] Re: [Quantum GIS] #996: Re: [Quantum GIS] #996: QGIS corrupts JPEG2000 colors

Quantum GIS qgis at qgis.org
Thu Jan 1 15:32:18 EST 2009


#996: Re: [Quantum GIS] #996: QGIS corrupts JPEG2000 colors
-----------------------------------------------------+----------------------
        Reporter:  coatman                           |         Owner:  nobody       
            Type:  defect                            |        Status:  reopened     
        Priority:  major: does not work as expected  |     Milestone:  Version 1.0.1
       Component:  Rasters                           |       Version:  HEAD         
      Resolution:                                    |      Keywords:  kakadu raster
Platform_version:                                    |      Platform:  OS X         
        Must_fix:  No                                |   Status_info:  0            
-----------------------------------------------------+----------------------
Comment (by Coatman):

 GDAL supports JPEG2000 images using either Kakadu based JP2KAK or Jasper
 based JPEG2000
 gdal_translate --version

 GDAL 1.6.0, released 2008/12/04

 gdal_translate --formats | grep 2000
   JP2KAK (rw): JPEG-2000 (based on Kakadu)

   JPEG2000 (rw): JPEG-2000 part 1 (ISO/IEC 15444-1)
 When writing a JPEG2000 image, GDAL gdal_translate lets the user specify
 -of JP2KAK to use Kakadu, and lets the user specify -of JPEG2000 to use
 Jasper.  When reading a JPEG2000 image, GDAL lets the user specify export
 GDAL_SKIP=JPEG2000 to not use Jasper, and instead use Kakadu; and GDAL
 lets the user specify export GDAL_SKIP=JP2KAK to not use Kakadu, and
 instead use Jasper.
 Even though I specified use Kakadu by setting the environment variable
 export GDAL_SKIP=JPEG2000, in QGIS, after adding a JPEG2000 image via
 Layer -> Add Raster Layer..., I find that Layer -> Properties... -> Raster
 Layer Properties -> Metadata shows that QGIS is using Jasper based
 JPEG2000, instead of using Kakadu based JP2KAK.  QGIS initially shipped
 properly displaying JPEG2000 images using Jasper, but for the past 10
 months QGIS has not properly displayed JPEG2000 images using Jasper, and
 there is no effort to re-enable QGIS to use Jasper to properly display
 JPEG2000 images.
 So, I desperately need a way to specify to QGIS that it use the GDAL
 Kakadu based JP2KAK rather than the Jasper based JPEG2000.  Since I do not
 think QGIS pays attention to the environment variable GDAL_SKIP,

 How do I tell QGIS to use the GDAL Kakadu based JP2KAK, rather than
 Jasper, to display JPEG2000 images?

-- 
Ticket URL: <http://trac.osgeo.org/qgis/ticket/996#comment:50>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats


More information about the QGIS-trac mailing list