Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[gdalmdiminfo] Use GDALArgumentParser #9896

Merged
merged 4 commits into from May 13, 2024

Conversation

elpaso
Copy link
Collaborator

@elpaso elpaso commented May 10, 2024

gdalmdiminfo --long-usage
Export manually or use this script as a wrapper for commands!!!!
Usage: gdalmdiminfo [--help] [--long-usage] [--help-general]
                        [-detailed] [-nopretty] [-array <array_name>] [-limit <number>] [-oo <NAME>=<VALUE>]...
                        [-if <format>]... [-arrayoption <NAME=VALUE>]... [-stats] [-stdout]
                        <dataset_name>

Lists various information about a GDAL multidimensional dataset.

Positional arguments:
  <dataset_name>             Input dataset. 

Optional arguments:
  -h, --help                 Shows short help message and exits. 
  --long-usage               Shows long help message and exits. 
  --help-general             Report detailed help on general options. 
  -detailed                  Most verbose output. Report attribute data types and array values. 
  -nopretty                  Outputs on a single line without any indentation. 
  -array <array_name>        Name of the array, used to restrict the output to the specified array. 
  -limit <number>            Number of values in each dimension that is used to limit the display of array values. 
  -oo <NAME>=<VALUE>         Open option(s) for input dataset. [may be repeated]
  -if <format>               Format/driver name(s) to try when opening the input file. [may be repeated]
  -arrayoption <NAME=VALUE>  Option passed to GDALGroup::GetMDArrayNames() to filter reported arrays. [may be repeated]
  -stats                     Read and display image statistics. 
  -stdout                    Write output to stdout instead of a JSON file. 

For more details, consult https://gdal.org/programs/gdalmdiminfo.html

apps/gdalmdiminfo_lib.cpp Outdated Show resolved Hide resolved
apps/gdalmdiminfo_lib.cpp Outdated Show resolved Hide resolved
apps/gdalmdiminfo_lib.cpp Outdated Show resolved Hide resolved
@rouault rouault merged commit 0d992ef into OSGeo:master May 13, 2024
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants