[gdal-dev] GDAL 3.9: How to pass negative flag values to GDALArgumentParser?

Even Rouault even.rouault at spatialys.com
Tue Jul 2 02:15:54 PDT 2024


Hi Craig,

this is indeed a regression. I'm on it

Even

Le 02/07/2024 à 06:39, Craig de Stigter via gdal-dev a écrit :
> A colleague has noticed a workaround: prefix the argument with a space:
>
> $ gdalwarp '-dstnodata' ' -inf' ...
>
>
> On Tue, 2 Jul 2024 at 16:04, Craig de Stigter 
> <craig.destigter at koordinates.com> wrote:
>
>     While trying to upgrade to GDAL 3.9 i'm hitting this error:
>
>     $ gdalwarp '-dstnodata' '-inf' ...
>     ERROR 1: Too few arguments for '-dstnodata'.
>     ...
>
>     The same happens with `gdalbuildvrt -vrtnodata '-1 -1 -1' ...`
>
>     We use negative values for NODATA in a few places because they're
>     unlikely to already be used by the source data. Is there a way to
>     pass negative values to these options with GDAL 3.9?
>
>     Thanks
>
>     -- 
>     Regards,
>     Craig
>
>     Platform Engineer
>     Koordinates
>
>     +64 21 256 9488 <tel:+64%2021%20256%209488> / koordinates.com
>     <http://koordinates.com/> / @koordinates
>     <https://twitter.com/koordinates>
>
>
>
> -- 
> Regards,
> Craig
>
> Platform Engineer
> Koordinates
>
> +64 21 256 9488 <tel:+64%2021%20256%209488> / koordinates.com 
> <http://koordinates.com/> / @koordinates <https://twitter.com/koordinates>
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev

-- 
http://www.spatialys.com
My software is free, but my time generally not.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20240702/591a5f75/attachment.htm>


More information about the gdal-dev mailing list