[gdal-dev] Unexpected value for TARGET creation option

Frank Warmerdam warmerdam at pobox.com
Thu Feb 7 11:20:52 EST 2008


Jean-Claude Repetto wrote:
> Hello,
> 
> I have just upgraded from GDAL 1.4.2 to GDAL 1.5.0, and now I have an 
> error message when creating an ECW file :
> 
> 
> gdal_translate -of ECW -co TARGET=94% -co DATUM=NTF -co PROJ=LM1FRA2D 
> -a_ullr 970000 1860000 980000 1850000 MAP.png MAP.ecw
> 
> Input file size is 4000, 4000
> Warning 6: '94%' is an unexpected value for TARGET creation option of 
> type float.
> 
> I have tested some variants :
> -co TARGET=94
> -co TARGET=0.94
> -co "TARGET=94%"
> 
> All are giving the same message.
> What is the right syntax ?

Jean-Claude,

I'm surprised.  I would have expected TARGET=94 or TARGET=0.94 to be accepted.
The "%" is improper and should not be included.  However, I tried this and
I see the same behavior you do. I have filed a ticket on this issue and it
should be fixed by 1.5.1. In the meantime you can just ignore this warning.

   http://trac.osgeo.org/gdal/ticket/2204

The validation of creation options is new in GDAL 1.5.0.

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



More information about the gdal-dev mailing list