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.destig...@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>
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to