LinuxCommandLibrary

gdalinfo

List various information about a GDAL supported raster dataset.

TLDR

List all supported raster formats

$ gdalinfo --formats
copy


List information about a specific raster dataset
$ gdalinfo [path/to/input.tif]
copy


List information about a specific raster dataset in JSON format
$ gdalinfo -json [path/to/input.tif]
copy


Show histogram values of a specific raster dataset
$ gdalinfo -hist [path/to/input.tif]
copy


List information about a Web Map Service (WMS)
$ gdalinfo WMS:[https://services.meggsimum.de/geoserver/ows]
copy


List information about a specific dataset of a Web Map Service (WMS)
$ gdalinfo WMS:[https://services.meggsimum.de/geoserver/ows] -sd [4]
copy

Copied to clipboard