[gdal-dev] How to use RPC Metadata from NITF Files in a MapServer TileIndex

Even Rouault even.rouault at mines-paris.org
Sun Jun 17 10:10:57 PDT 2012


Actually, you'll need to add "--config GDAL_TIFF_INTERNAL_MASK YES" to the 2 
following commands :

gdal_translate -b 1 -b 2 -b 3 -mask 4  -co "TILED=YES" -co
 "JPEG_QUALITY=95" - co "COMPRESS=JPEG" -co "PHOTOMETRIC=YCBCR" $1.vrt
$1.tif --config GDAL_TIFF_INTERNAL_MASK YES

gdaladdo --config COMPRESS_OVERVIEW JPEG --config PHOTOMETRIC_OVERVIEW
YCBCR --config INTERLEAVE_OVERVIEW PIXEL $1.tif 2 4 8 16 32 --config 
GDAL_TIFF_INTERNAL_MASK YES

Otherwise, an external .msk file will be produced. And you'll need to run 
gdaladdo on it too.


More information about the gdal-dev mailing list