[QGIS-trac] Re: [Quantum GIS] #996: Re: [Quantum GIS] #996: QGIS
corrupts JPEG2000 colors
Quantum GIS
qgis at qgis.org
Sat Jan 3 15:49:17 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):
Using the GDAL Jasper-based JPEG2000, and without using Kakadu, I used
GDAL 1.6 gdal_translate to create from a GeoTIF a GeoJP2, and then to
create from that GeoJP2 a GeoTIF. QGIS version 1.0.0-Kore-preview2, for
Mac OS X 10.5, available from the Quantum GIS Downloads web site, and from
the kyngchaos web site, both display the GeoTIF created by gdal_translate
properly geo-referenced, with the proper number of columns and rows, but
with the colors being ALL BLACK. Additionally, all of the other image
viewing applications that I have display the GeoTIF created by
gdal_translate as all black.
To summarize, I am reporting that a _GeoTIF_, created by gdal_translate
from a GeoJP2 that gdal_translate created, is being displayed as all
black, by QGIS and by 5 other image viewing applications.
The sample GeoTIF, 800 columns by 100 rows, that gdal_translate converts
to GeoJP2, can be downloaded from
http://homepage.mac.com/gregcoats/jp2/images/rgbwcmyk01_YeGeo.tif
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)
gdal_translate -ot Byte -of JPEG2000 -co "FORMAT=JP2" -co "mode=int"
rgbwcmyk01_YeGeo.tif rgbwcmyk01_YeGeo_GDAL16_JPEG2000.jp2
Input file size is 800, 100
0...10...20...30...40...50...60...70...80...90...100 - done.
export GDAL_SKIP=JP2KAK
gdal_translate -ot Byte -of GTiff -co "COMPRESS=NONE"
rgbwcmyk01_YeGeo_GDAL16_JPEG2000.jp2 rgbwcmyk01_YeGeo_GDAL16_JPEG2000.tif
Input file size is 800, 100
0...10...20...30...40...50...60...70...80...90...100 - done.
--
Ticket URL: <http://trac.osgeo.org/qgis/ticket/996#comment:52>
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