[gdal-dev] Creating external overviews for JP2 files?

jratike80 jukka.rahkonen at maanmittauslaitos.fi
Wed Oct 17 14:16:24 PDT 2018


alpa wrote
> Hi All,
> 
> ....
> 
> I run gdal_translate first as follows:
> 
> gdal_translate -outsize 50% 50% -co TILED=YES -co COMPRESS=JPEG -co
> PHOTOMETRIC=YCBCR /tmp/T34WEB_20181015T104021_TCI_10m.jp2
> ~/T34WEB_20181015T104021_TCI_10m.jp2.ovr_geosolutions_jkak --config
> GDAL_SKIP JP2OpenJPEG
> .......
> 
> If I produce the overview file "on the fly" with gdaladdo I get a good
> overview file instead:
> 
> gdaladdo -ro --config COMPRESS_OVERVIEW JPEG --config PHOTOMETRIC_OVERVIEW
> YCBCR --config
> INTERLEAVE_OVERVIEW PIXEL  T34WEB_20181015T104021_TCI_10m.jp2 2 4 8 16 32
> 64 128

Hi,

Did you skip the OpenJPEG driver by setting the environment variable for
your gdaladdo test? If you didn't you are probably comparing gdal_translate
with Kakadu driver vs. gdaladdo with OpenJPEG driver.

-Jukka Rahkonen- 




--
Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html


More information about the gdal-dev mailing list