[Gdal-dev] inconsistent "worldfile=on" options

Frank Warmerdam warmerdam at pobox.com
Fri Jul 7 16:30:20 EDT 2006


Matt Wilkie wrote:
> Hi All,
> 
> Is there a particular reason why gdal_translate support "-co 
> worldfile=on" for jp2 jasper and jp2 mrsid but not jp2 ecw or kakadu?
> Or why png uses "-co worldfile=yes" instead of "on"?
> And the one I'm most curious about, why there isn't a global 
> worldile=yes option for all formats?

Matt,

I'm afraid there isn't that much rhyme or reason to worldfile handling in
GDAL.  It is basically added on a driver by driver basis, and no always
consistently.   Most WORLDFILE parameter checks should be using
CSLFetchBoolean() which would honour ON, TRUE, 1, or YES as valid positive
values.  I checked, and it seems the PNG driver should honour them all.

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