gdalinfo

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

Install

All systems
curl cmd.cat/gdalinfo.sh
Debian Debian
apt-get install gdal-bin
Ubuntu
apt-get install gdal-bin
Arch Arch Linux
pacman -S gdal
image/svg+xml Kali Linux
apt-get install gdal-bin
Fedora
dnf install gdal
Windows (WSL2)
sudo apt-get update sudo apt-get install gdal-bin
OS X
brew install gdal
Raspbian
apt-get install gdal-bin

List various information about a GDAL supported raster dataset. More information: <https://gdal.org/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

© tl;dr; authors and contributors