[Gdal-dev] tiff to jp2ecw

Frank Warmerdam warmerdam at pobox.com
Tue Jun 6 07:55:42 EDT 2006


Mark Overmeer wrote:
> This works well, thank you.
> The next step is to add/change color-interpretation and band-names.  

Mark,

Setting band names is not supported by most format drivers, including
the jpeg2000 drivers.

To set the band color interpretation I would suggest using the
-co PHOTOMETRIC=RGB flag to gdal_merge.py.  This is a TIFF specific
flag, but once the TIFF file is set appropriately; hopefully the JPEG2000
will pick it up too.

The only other user-accessable mechanism for setting band color interpretation
(other than writing python/etc scripts) would be to create a VRT file - and
XML header of sorts - and adjust the band color interpretation in this.

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    | President OSGF, http://osgeo.org




More information about the Gdal-dev mailing list