<div dir="ltr"><div>I am testing the GDAL tools on QGIS 3.22.8 on Windows. When running gdal2xyz with a single band raster I am getting the following error:</div><div><br></div>C:\Users\testing_user>gdal2xyz.bat -b 1 C:/Users/testing_user/Desktop/gdal_commands_test/mdt_clipped.tif OUTPUT.csv<br>usage: gdal2xyz.py [-h] [-skip] [-srcwin xoff yoff xsize ysize] [-b band [band ...]] [-allbands] [-csv] [-skipnodata]<br>                   [-srcnodata [SRC_NODATA ...]] [-dstnodata [DST_NODATA ...]]<br>                   src_dataset dst_dataset<br>gdal2xyz.py: error: argument -b/-band/--band: invalid int value: 'C:/Users/testing_user/Desktop/gdal_commands_test/mdt_clipped.tif'<div><br></div><div>If I remove the -b option it works.</div><div><br></div><div>Windows Is now on GDAL 3.5.0. On my linux machine that still uses GDAL 3.0.4 it works fine.<br></div><div><br></div><div>Bug report? In here or in GDAL?</div><div><br></div><div>Alexandre Neto<br></div></div>