diff --git a/swig/python/gdal-utils/osgeo_utils/gdal2xyz.py b/swig/python/gdal-utils/osgeo_utils/gdal2xyz.py index eb2c2f60ab90..5440447d8769 100644 --- a/swig/python/gdal-utils/osgeo_utils/gdal2xyz.py +++ b/swig/python/gdal-utils/osgeo_utils/gdal2xyz.py @@ -259,7 +259,7 @@ def get_parser(self, argv) -> GDALArgumentParser: "-srcwin", metavar=("xoff", "yoff", "xsize", "ysize"), dest="srcwin", - type=float, + type=int, nargs=4, help="Selects a subwindow from the source image for copying based on pixel/line location", )