<div dir="ltr"><div>Done</div><div><br></div><div><a href="https://github.com/OSGeo/gdal/issues/5984">https://github.com/OSGeo/gdal/issues/5984</a></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">A sexta, 24/06/2022, 01:40, Even Rouault <<a href="mailto:even.rouault@spatialys.com" target="_blank">even.rouault@spatialys.com</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
Le 24/06/2022 à 02:29, Alexandre Neto via QGIS-Developer a écrit :<br>
> I am testing the GDAL tools on QGIS 3.22.8 on Windows. When running <br>
> gdal2xyz with a single band raster I am getting the following error:<br>
><br>
> C:\Users\testing_user>gdal2xyz.bat -b 1 <br>
> C:/Users/testing_user/Desktop/gdal_commands_test/mdt_clipped.tif <br>
> OUTPUT.csv<br>
> usage: gdal2xyz.py [-h] [-skip] [-srcwin xoff yoff xsize ysize] [-b <br>
> band [band ...]] [-allbands] [-csv] [-skipnodata]<br>
> [-srcnodata [SRC_NODATA ...]] [-dstnodata <br>
> [DST_NODATA ...]]<br>
> src_dataset dst_dataset<br>
> gdal2xyz.py: error: argument -b/-band/--band: invalid int value: <br>
> 'C:/Users/testing_user/Desktop/gdal_commands_test/mdt_clipped.tif'<br>
><br>
> If I remove the -b option it works.<br>
><br>
> Windows Is now on GDAL 3.5.0. On my linux machine that still uses GDAL <br>
> 3.0.4 it works fine.<br>
><br>
> Bug report? In here or in GDAL?<br>
to GDAL. It looks like the -b option is a bit too greedy in consuming <br>
arguments. A workaround is to put the -b 1 option at the end of the <br>
command line.<br>
><br>
> Alexandre Neto<br>
><br>
> _______________________________________________<br>
> QGIS-Developer mailing list<br>
> <a href="mailto:QGIS-Developer@lists.osgeo.org" rel="noreferrer" target="_blank">QGIS-Developer@lists.osgeo.org</a><br>
> List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
> Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
<br>
-- <br>
<a href="http://www.spatialys.com" rel="noreferrer noreferrer" target="_blank">http://www.spatialys.com</a><br>
My software is free, but my time generally not.<br>
<br>
</blockquote></div>