GDALINFO(1)
β¨ GDALINFO π
okay so bestie, welcome to gdalinfo from the GDAL manual, literally the glow-up your raster datasets have been waiting for π this is the tool that spills all the tea about your raster files. no cap.
π SYNOPSIS π
gdalinfo [--help-general] [-json] [-mm] [-stats | -approx_stats] [-hist] [-nogcp] [-nomd]
[-norat] [-noct] [-nofl] [-checksum] [-proj4]
[-listmdd] [-mdd domain|`all`]* [-wkt_format WKT1|WKT2|...]
[-sd subdataset] [-oo NAME=VALUE]* [-if format]* datasetname
π¦ DESCRIPTION π¦
gdalinfo is that main character energy program that lists a bunch of info about a GDAL supported raster dataset β¨
The following command line parameters can appear in any order β slay, flexible queen π
π OPTIONS π
-jsonβ bestie, display the output in json format. yes, it's giving structured data realness π₯-mmβ force computation of the actual min/max values for each band in the dataset. no shortcuts, we're getting the real numbers π―-statsβ read and display image statistics. force computation if no statistics are stored in an image. it'll dig them up for you, periodt π-approx_statsβ read and display image statistics. force computation if no statistics are stored in an image. however, they may be computed based on overviews or a subset of all tiles. useful if you are in a hurry and don't want precise stats. lowkey the "I'm running late" version of-statsπ-histβ report histogram information for all bands. we love a distribution moment π¦-nogcpβ suppress ground control points list printing. it may be useful for datasets with huge amount of GCPs, such as L1B AVHRR or HDF4 MODIS which contain thousands of them. not me drowning in GCPs π-nomdβ suppress metadata printing. some datasets may contain a lot of metadata strings. silence the chatter if you need to π«Ά-noratβ suppress printing of raster attribute table. no table, just vibes β¨-noctβ suppress printing of color table. bye-bye color table π-checksumβ force computation of the checksum for each band in the dataset. let's verify that data, bestie π₯-listmddβ list all metadata domains available for the dataset. the whole metadata menu, iconic π-mdd <domain>|allβ adds metadata using:domainβ report metadata for the specified domain π―allβ report metadata for all domains. literally everything π
-noflβ only display the first file of the file list. just the first one, keep it cute πΈ-wkt_format WKT1|WKT2|WKT2_2015|WKT2_2018β WKT format used to display the SRS. currently the supported values are:WKT1WKT2(latest WKT version, currentlyWKT2_2018)WKT2_2015WKT2_2018
new in version 3.0.0 β¨
-sd <n>β if the input dataset contains several subdatasets read and display a subdataset with specified n number (starting from1). this is an alternative of giving the full subdataset name. pick your fave subdataset, iykyk π-proj4β report aPROJ.4string corresponding to the file's coordinate system. vintage coordinate energy π«Ά-oo <NAME=VALUE>β dataset open option (format specific). the secret handshake for opening files β¨-if <format>β format/driver name to be attempted to open the input file(s). it is generally not necessary to specify it, but it can be used to skip automatic driver detection, when it fails to select the appropriate driver. this option can be repeated several times to specify several candidate drivers.
new in version 3.2 π
π§ what gdalinfo reports (when it knows it) π§
The gdalinfo will report all of the following (if known):
- the format driver used to access the file πΏ
- raster size (in pixels and lines) π
- the coordinate system for the file (in OGC WKT) π
- the geotransform associated with the file (rotational coefficients are currently not reported). note that, bestie β rotational coefficients are not reported π
- corner coordinates in georeferenced, and if possible lat/long based on the full geotransform (but not GCPs) πΊοΈ
- ground control points π
- file wide (including subdatasets) metadata π
- band data types π·οΈ
- band color interpretations π¨
- band block size π§±
- band descriptions π
- band min/max values (internally known and possibly computed) π
- band checksum (if computation asked) β
- band NODATA value π«
- band overview resolutions available π
- band unit type (i.e..
"meters"or"feet"for elevation bands) π - band pseudo-color tables π
π» C API π»
This utility is also callable from C with GDALInfo(). iconic crossover fr fr π
new in version 2.1 β¨
πΈ EXAMPLE πΈ
gdalinfo ~/openev/utm.tif
Driver: GTiff/GeoTIFF
Size is 512, 512
Coordinate System is:
PROJCS["NAD27 / UTM zone 11N",
GEOGCS["NAD27",
DATUM["North_American_Datum_1927",
SPHEROID["Clarke 1866",6378206.4,294.978698213901]],
PRIMEM["Greenwich",0],
UNIT["degree",0.0174532925199433]],
PROJECTION["Transverse_Mercator"],
PARAMETER["latitude_of_origin",0],
PARAMETER["central_meridian",-117],
PARAMETER["scale_factor",0.9996],
PARAMETER["false_easting",500000],
PARAMETER["false_northing",0],
UNIT["metre",1]]
Origin = (440720.000000,3751320.000000)
Pixel Size = (60.000000,-60.000000)
Corner Coordinates:
Upper Left ( 440720.000, 3751320.000) (117d38'28.21"W, 33d54'8.47"N)
Lower Left ( 440720.000, 3720600.000) (117d38'20.79"W, 33d37'31.04"N)
Upper Right ( 471440.000, 3751320.000) (117d18'32.07"W, 33d54'13.08"N)
Lower Right ( 471440.000, 3720600.000) (117d18'28.50"W, 33d37'35.61"N)
Center ( 456080.000, 3735960.000) (117d28'27.39"W, 33d45'52.46"N)
Band 1 Block=512x16 Type=Byte, ColorInterp=Gray
π«Ά AUTHOR π«Ά
Frank Warmerdam <warmerdam@pobox.com> β legend behavior, respectfully π
π COPYRIGHT π
1998-2026 β iconic run, no notes π
and that's the whole tea, bestie π from the GDAL fam, version vibes and date Jan 08, 2026 β go forth and inspect those rasters, you gorgeous nerd πβ¨
π¦ where this page comes from
- epel 9: gdal3.4 3.4.3-5.el9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms