GDAL-RASTER-INFO(1) GDAL GDAL-RASTER-INFO(1) (NAME) gdal-raster-info - () .. (SYNOPSIS) Usage: gdal raster info [OPTIONS] (). : -i, --dataset, --input [] [ ] : -h, --help --json-usage JSON --config = [ ] : -f, --of, --format, --output-format . OUTPUT-FORMAT=json|text --mm, --min-max --stats --approx-stats ( ) --approx-stats --stats ( ) --hist : --if, --input-format [ ] [ ] --oo, --open-option = [ ] [ ] --no-gcp (GCP) --no-md --no-ct --no-fl --checksum --list-metadata-domains, --list-mdd --mdd, --metadata-domain . 'all' : --no-nodata (nodata) --no-mask --subdataset ( ) --crs-format CRS. CRS-FORMAT=AUTO|WKT2|PROJJSON (: AUTO) (DESCRIPTION) gdal raster info () GDAL API output . ( ) : o . o ( ). o ( AUTH_NAME:CODE OGC WKT2:2019). o (geotransform) ( ). o / ( GCP). o (GCP). o ( ). o (data types). o . o . o . o / ( ). o ( ). o (NODATA) . o (overview resolutions) . o ( "meters" "feet" ). o (pseudo-color) . . (GDAL) gdal raster info . : (PROGRAM-SPECIFIC OPTIONS) --approx-stats . . (overviews) . . --checksum . -f, --of, --format, --output-format json|text . JSON GDAL 3.12 text . --crs-format AUTO|WKT2|PROJJSON .. CRS. AUTO CRS ( PROJ) CRS (ID) . WKT2:2019 . : --crs-format --output-format text . JSON WKT2 PROJJSON . --hist . --list-mdd . --mdd, --metadata-domain |all : domain . all . --mm, --min-max / . --no-ct . --no-fl . --no-gcp (GCP). GCP L1B AVHRR HDF4 MODIS . --no-mask . --no-nodata . --no-md . . --no-nodata (nodata). --no-mask . GRIB2 .idx --no-md . --stats . . --subdataset n ( ) . . (STANDARD OPTIONS) --if, --input-format / () . . . . . . --oo, --open-option = ( ). . (RETURN STATUS CODE) ( ). (EXAMPLES) : utmsmall.tif $ gdal raster info utmsmall.tif Driver: GTiff/GeoTIFF Files: utmsmall.tif Size is 100, 100 Coordinate Reference System: - name: NAD27 / UTM zone 11N - ID: EPSG:26711 - type: Projected - projection type: Transverse Mercator - units: metre Data axis to CRS axis mapping: 1,2 Origin = (440720.000000000000000,3751320.000000000000000) Pixel Size = (60.000000000000000,-60.000000000000000) Metadata: AREA_OR_POINT=Area Image Structure Metadata: INTERLEAVE=BAND Corner Coordinates: Upper Left ( 440720.000, 3751320.000) (117d38'28.21"W, 33d54' 8.47"N) Lower Left ( 440720.000, 3745320.000) (117d38'26.75"W, 33d50'53.66"N) Upper Right ( 446720.000, 3751320.000) (117d34'34.59"W, 33d54' 9.62"N) Lower Right ( 446720.000, 3745320.000) (117d34'33.28"W, 33d50'54.82"N) Center ( 443720.000, 3748320.000) (117d36'30.71"W, 33d52'31.66"N) Band 1 Block=100x81 Type=Byte, ColorInterp=Gray : utmsmall.tif JSON $ gdal raster info --format=JSON --stats utmsmall.tif { "description":"utmsmall.tif", "driverShortName":"GTiff", "driverLongName":"GeoTIFF", "files":[ "utmsmall.tif" ], "size":[ 100, 100 ], "coordinateSystem":{ "wkt":"PROJCRS[\"NAD27 / UTM zone 11N\",\n BASEGEOGCRS[\"NAD27\",\n DATUM[\"North American Datum 1927\",\n ELLIPSOID[\"Clarke 1866\",6378206.4,294.978698213898,\n LENGTHUNIT[\"metre\",1]]],\n PRIMEM[\"Greenwich\",0,\n ANGLEUNIT[\"degree\",0.0174532925199433]],\n ID[\"EPSG\",4267]],\n CONVERSION[\"Transverse Mercator\",\n METHOD[\"Transverse Mercator\",\n ID[\"EPSG\",9807]],\n PARAMETER[\"Latitude of natural origin\",0,\n ANGLEUNIT[\"degree\",0.0174532925199433],\n ID[\"EPSG\",8801]],\n PARAMETER[\"Longitude of natural origin\",-117,\n ANGLEUNIT[\"degree\",0.0174532925199433],\n ID[\"EPSG\",8802]],\n PARAMETER[\"Scale factor at natural origin\",0.9996,\n SCALEUNIT[\"unity\",1],\n ID[\"EPSG\",8805]],\n PARAMETER[\"False easting\",500000,\n LENGTHUNIT[\"metre\",1],\n ID[\"EPSG\",8806]],\n PARAMETER[\"False northing\",0,\n LENGTHUNIT[\"metre\",1],\n ID[\"EPSG\",8807]]],\n CS[Cartesian,2],\n AXIS[\"easting\",east,\n ORDER[1],\n LENGTHUNIT[\"metre\",1]],\n AXIS[\"northing\",north,\n ORDER[2],\n LENGTHUNIT[\"metre\",1]],\n ID[\"EPSG\",26711]]", "dataAxisToSRSAxisMapping":[ 1, 2 ] }, "geoTransform":[ 440720.0, 60.0, 0.0, 3751320.0, 0.0, -60.0 ], "metadata":{ "":{ "AREA_OR_POINT":"Area" }, "IMAGE_STRUCTURE":{ "INTERLEAVE":"BAND" } }, "cornerCoordinates":{ "upperLeft":[ 440720.0, 3751320.0 ], "lowerLeft":[ 440720.0, 3745320.0 ], "lowerRight":[ 446720.0, 3745320.0 ], "upperRight":[ 446720.0, 3751320.0 ], "center":[ 443720.0, 3748320.0 ] }, "wgs84Extent":{ "type":"Polygon", "coordinates":[ [ [ -117.6420428, 33.9023684 ], [ -117.6416377, 33.848257 ], [ -117.5767844, 33.8485775 ], [ -117.5771485, 33.9026895 ], [ -117.6420428, 33.9023684 ] ] ] }, "bands":[ { "band":1, "block":[ 100, 81 ], "type":"Byte", "colorInterpretation":"Gray", "minimum":0.0, "maximum":255.0, "mean":154.621, "stdDev":54.251, "metadata":{ "":{ "STATISTICS_MINIMUM":"0", "STATISTICS_MAXIMUM":"255", "STATISTICS_MEAN":"154.6212", "STATISTICS_STDDEV":"54.250980733624", "STATISTICS_VALID_PERCENT":"100" } } } ], "stac":{ "proj:shape":[ 100, 100 ], "proj:wkt2":"PROJCRS[\"NAD27 / UTM zone 11N\",\n BASEGEOGCRS[\"NAD27\",\n DATUM[\"North American Datum 1927\",\n ELLIPSOID[\"Clarke 1866\",6378206.4,294.978698213898,\n LENGTHUNIT[\"metre\",1]]],\n PRIMEM[\"Greenwich\",0,\n ANGLEUNIT[\"degree\",0.0174532925199433]],\n ID[\"EPSG\",4267]],\n CONVERSION[\"Transverse Mercator\",\n METHOD[\"Transverse Mercator\",\n ID[\"EPSG\",9807]],\n PARAMETER[\"Latitude of natural origin\",0,\n ANGLEUNIT[\"degree\",0.0174532925199433],\n ID[\"EPSG\",8801]],\n PARAMETER[\"Longitude of natural origin\",-117,\n ANGLEUNIT[\"degree\",0.0174532925199433],\n ID[\"EPSG\",8802]],\n PARAMETER[\"Scale factor at natural origin\",0.9996,\n SCALEUNIT[\"unity\",1],\n ID[\"EPSG\",8805]],\n PARAMETER[\"False easting\",500000,\n LENGTHUNIT[\"metre\",1],\n ID[\"EPSG\",8806]],\n PARAMETER[\"False northing\",0,\n LENGTHUNIT[\"metre\",1],\n ID[\"EPSG\",8807]]],\n CS[Cartesian,2],\n AXIS[\"easting\",east,\n ORDER[1],\n LENGTHUNIT[\"metre\",1]],\n AXIS[\"northing\",north,\n ORDER[2],\n LENGTHUNIT[\"metre\",1]],\n ID[\"EPSG\",26711]]", "proj:epsg":26711, "proj:projjson":{ "$schema":"https://proj.org/schemas/v0.7/projjson.schema.json", "type":"ProjectedCRS", "name":"NAD27 / UTM zone 11N", "base_crs":{ "name":"NAD27", "datum":{ "type":"GeodeticReferenceFrame", "name":"North American Datum 1927", "ellipsoid":{ "name":"Clarke 1866", "semi_major_axis":6378206.4, "inverse_flattening":294.978698213898 } }, "coordinate_system":{ "subtype":"ellipsoidal", "axis":[ { "name":"Geodetic latitude", "abbreviation":"Lat", "direction":"north", "unit":"degree" }, { "name":"Geodetic longitude", "abbreviation":"Lon", "direction":"east", "unit":"degree" } ] }, "id":{ "authority":"EPSG", "code":4267 } }, "conversion":{ "name":"Transverse Mercator", "method":{ "name":"Transverse Mercator", "id":{ "authority":"EPSG", "code":9807 } }, "parameters":[ { "name":"Latitude of natural origin", "value":0, "unit":"degree", "id":{ "authority":"EPSG", "code":8801 } }, { "name":"Longitude of natural origin", "value":-117, "unit":"degree", "id":{ "authority":"EPSG", "code":8802 } }, { "name":"Scale factor at natural origin", "value":0.9996, "unit":"unity", "id":{ "authority":"EPSG", "code":8805 } }, { "name":"False easting", "value":500000, "unit":"metre", "id":{ "authority":"EPSG", "code":8806 } }, { "name":"False northing", "value":0, "unit":"metre", "id":{ "authority":"EPSG", "code":8807 } } ] }, "coordinate_system":{ "subtype":"Cartesian", "axis":[ { "name":"Easting", "abbreviation":"", "direction":"east", "unit":"metre" }, { "name":"Northing", "abbreviation":"", "direction":"north", "unit":"metre" } ] }, "id":{ "authority":"EPSG", "code":26711 } }, "proj:transform":[ 60.0, 0.0, 440720.0, 0.0, -60.0, 3751320.0 ], "raster:bands":[ { "data_type":"uint8", "stats":{ "minimum":0.0, "maximum":255.0, "mean":154.621, "stddev":54.251 } } ], "eo:bands":[ { "name":"b1", "description":"Gray" } ] } } : GeoTIFF COG LAYOUT=COG Image Structure Metadata. jq COG true . Bash $ gdal raster info https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/36/Q/WD/2020/7/S2A_36QWD_20200701_0_L2A/TCI.tif --of=JSON \ | jq '.metadata.IMAGE_STRUCTURE.LAYOUT == "COG"' PowerShell > gdal raster info https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/36/Q/WD/2020/7/S2A_36QWD_20200701_0_L2A/TCI.tif --of=JSON ` | jq '.metadata.IMAGE_STRUCTURE.LAYOUT == \"COG\"' : CRS jq Bash gdal raster info in.tif --of json | jq -r '.stac."proj:projjson".id | .authority + ":" + (.code|tostring)' PowerShell gdal raster info in.tif --of json | jq -r '.stac.\"proj:projjson\".id | .authority + \":\" + (.code|tostring)' (AUTHOR) Even Rouault (COPYRIGHT) 1998-2026 August 18, 2026 GDAL-RASTER-INFO(1)