HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

gdalinfo — List various information about a GDAL supported raster dataset. More information: <https://gdal.org/

Submitted by: @import:tldr-pages··
0
Viewed 0 times
gdalcommandvariouscliinformationgdalinfoaboutlist

Problem

How to use the gdalinfo command: List various information about a GDAL supported raster dataset. More information: <https://gdal.org/en/stable/programs/gdalinfo.html>.

Solution

gdalinfo — List various information about a GDAL supported raster dataset. More information: <https://gdal.org/en/stable/programs/gdalinfo.html>.

List all supported raster formats:
gdalinfo --formats


List information about a specific raster dataset:
gdalinfo {{path/to/input.tif}}


List information about a specific raster dataset in JSON format:
gdalinfo -json {{path/to/input.tif}}


Show histogram values of a specific raster dataset:
gdalinfo -hist {{path/to/input.tif}}


List information about a Web Map Service (WMS):
gdalinfo WMS:{{https://services.meggsimum.de/geoserver/ows}}


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

Code Snippets

List all supported raster formats

gdalinfo --formats

List information about a specific raster dataset

gdalinfo {{path/to/input.tif}}

List information about a specific raster dataset in JSON format

gdalinfo -json {{path/to/input.tif}}

Show histogram values of a specific raster dataset

gdalinfo -hist {{path/to/input.tif}}

List information about a Web Map Service (WMS)

gdalinfo WMS:{{https://services.meggsimum.de/geoserver/ows}}

Context

tldr-pages: common/gdalinfo

Revisions (0)

No revisions yet.