OSGeo / gdal

GDAL is an open source MIT licensed translator library for raster and vector geospatial data formats.
https://gdal.org
Other
4.91k stars 2.55k forks source link

gdaltindex app missing -ot <datatype> command line optional argument #11246

Closed underchemist closed 3 days ago

underchemist commented 5 days ago

What is the bug?

As of gdal 3.10.0, the -ot <datatype> command line optional argument is missing from usage description and not recognized as a valid argument by the argument parser, whereas the docs describe it here: https://gdal.org/en/latest/programs/gdaltindex.html#cmdoption-gdaltindex-ot. This is a change from as far as I can tell 3.9.3.

Steps to reproduce the issue

$ docker run --rm -it ghcr.io/osgeo/gdal:ubuntu-small-3.10.0 gdaltindex --help | grep "ot <datatype>"
$ docker run --rm -it ghcr.io/osgeo/gdal:ubuntu-small-3.9.3 gdaltindex --help | grep "ot <datatype>"
                  [-ot <datatype>] [-bandcount <val>] [-nodata <val>[,<val>...]]
docker run --rm -it ghcr.io/osgeo/gdal:ubuntu-small-3.10.0 gdaltindex -ot Byte
ERROR 1: Unknown argument: -ot
Usage: gdaltindex [--help] [--long-usage] [--help-general]
                  [-overwrite] [-recursive] [-filename_filter <val>]... [-min_pixel_size <val>] [-max_pixel_size <val>]
                  [-of <output_format>] [-tileindex <field_name>] [-write_absolute_path] [-skip_different_projection]
                  [-t_srs <srs_def>] [-src_srs_name <field_name>] [-src_srs_format {AUTO|WKT|EPSG|PROJ}]
                  [-lyr_name <name>] [-lco <NAME>=<VALUE>]... [-gti_filename <filename>] [-tr <xres> <yres>]
                  [-te <xmin> <ymin> <xmax> <ymax>] [-bandcount <val>] [-nodata <val>]... [-colorinterp <val>]...
                  [-mask] [-mo <name>=<value>]... [-fetch_md <gdal_md_name> <fld_name> <fld_type>]... [--quiet]
                  <index_file> <file_or_dir>...

Versions and provenance

Operating system: Windows 11 (but this is replicated in the official release docker images) Gdal version: 3.10.0 Binary source: Vcpkg

Additional context

No response

rouault commented 5 days ago

fix in https://github.com/OSGeo/gdal/pull/11247 . Workaround: -mo DATA_TYPE=<datatype>