[gdal-dev] GDAL 3.9: How to pass negative flag values to GDALArgumentParser?
Craig de Stigter
craig.destigter at koordinates.com
Mon Jul 1 21:39:21 PDT 2024
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 <+64%2021%20256%209488> / koordinates.com / @koordinates
> <https://twitter.com/koordinates>
>
--
Regards,
Craig
Platform Engineer
Koordinates
+64 21 256 9488 <+64%2021%20256%209488> / koordinates.com / @koordinates
<https://twitter.com/koordinates>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20240702/82f27a40/attachment.htm>
More information about the gdal-dev
mailing list