1GDALINFO(1) GDAL GDALINFO(1)
2
3
4
6 gdalinfo - Lists various information about a GDAL supported raster
7 dataset
8
10 gdalinfo [--help-general] [-json] [-mm] [-stats] [-hist] [-nogcp] [-nomd]
11 [-norat] [-noct] [-nofl] [-checksum] [-proj4]
12 [-listmdd] [-mdd domain|`all`]* [-wkt_format WKT1|WKT2|...]
13 [-sd subdataset] [-oo NAME=VALUE]* datasetname
14
16 gdalinfo program lists various information about a GDAL supported
17 raster dataset.
18
19 The following command line parameters can appear in any order
20
21 -json Display the output in json format.
22
23 -mm Force computation of the actual min/max values for each band in
24 the dataset.
25
26 -stats Read and display image statistics. Force computation if no sta‐
27 tistics are stored in an image.
28
29 -approx_stats
30 Read and display image statistics. Force computation if no sta‐
31 tistics are stored in an image. However, they may be computed
32 based on overviews or a subset of all tiles. Useful if you are
33 in a hurry and don't want precise stats.
34
35 -hist Report histogram information for all bands.
36
37 -nogcp Suppress ground control points list printing. It may be useful
38 for datasets with huge amount of GCPs, such as L1B AVHRR or HDF4
39 MODIS which contain thousands of them.
40
41 -nomd Suppress metadata printing. Some datasets may contain a lot of
42 metadata strings.
43
44 -norat Suppress printing of raster attribute table.
45
46 -noct Suppress printing of color table.
47
48 -checksum
49 Force computation of the checksum for each band in the dataset.
50
51 -listmdd
52 List all metadata domains available for the dataset.
53
54 -mdd <domain>|all
55 adds metadata using:
56
57 domain Report metadata for the specified domain.
58
59 all Report metadata for all domains.
60
61 -nofl Only display the first file of the file list.
62
63 -wkt_format WKT1|WKT2|WKT2_2015|WKT2_2018
64 WKT format used to display the SRS. Currently the supported
65 values are:
66
67 WKT1
68
69 WKT2 (latest WKT version, currently WKT2_2018)
70
71 WKT2_2015
72
73 WKT2_2018
74
75 New in version 3.0.0.
76
77
78 -sd <n>
79 If the input dataset contains several subdatasets read and dis‐
80 play a subdataset with specified n number (starting from 1).
81 This is an alternative of giving the full subdataset name.
82
83 -proj4 Report a PROJ.4 string corresponding to the file's coordinate
84 system.
85
86 -oo <NAME=VALUE>
87 Dataset open option (format specific).
88
89 The gdalinfo will report all of the following (if known):
90
91 · The format driver used to access the file.
92
93 · Raster size (in pixels and lines).
94
95 · The coordinate system for the file (in OGC WKT).
96
97 · The geotransform associated with the file (rotational coefficients
98 are currently not reported).
99
100 · Corner coordinates in georeferenced, and if possible lat/long based
101 on the full geotransform (but not GCPs).
102
103 · Ground control points.
104
105 · File wide (including subdatasets) metadata.
106
107 · Band data types.
108
109 · Band color interpretations.
110
111 · Band block size.
112
113 · Band descriptions.
114
115 · Band min/max values (internally known and possibly computed).
116
117 · Band checksum (if computation asked).
118
119 · Band NODATA value.
120
121 · Band overview resolutions available.
122
123 · Band unit type (i.e.. "meters" or "feet" for elevation bands).
124
125 · Band pseudo-color tables.
126
128 This utility is also callable from C with GDALInfo().
129
130 New in version 2.1.
131
132
134 gdalinfo ~/openev/utm.tif
135 Driver: GTiff/GeoTIFF
136 Size is 512, 512
137 Coordinate System is:
138 PROJCS["NAD27 / UTM zone 11N",
139 GEOGCS["NAD27",
140 DATUM["North_American_Datum_1927",
141 SPHEROID["Clarke 1866",6378206.4,294.978698213901]],
142 PRIMEM["Greenwich",0],
143 UNIT["degree",0.0174532925199433]],
144 PROJECTION["Transverse_Mercator"],
145 PARAMETER["latitude_of_origin",0],
146 PARAMETER["central_meridian",-117],
147 PARAMETER["scale_factor",0.9996],
148 PARAMETER["false_easting",500000],
149 PARAMETER["false_northing",0],
150 UNIT["metre",1]]
151 Origin = (440720.000000,3751320.000000)
152 Pixel Size = (60.000000,-60.000000)
153 Corner Coordinates:
154 Upper Left ( 440720.000, 3751320.000) (117d38'28.21"W, 33d54'8.47"N)
155 Lower Left ( 440720.000, 3720600.000) (117d38'20.79"W, 33d37'31.04"N)
156 Upper Right ( 471440.000, 3751320.000) (117d18'32.07"W, 33d54'13.08"N)
157 Lower Right ( 471440.000, 3720600.000) (117d18'28.50"W, 33d37'35.61"N)
158 Center ( 456080.000, 3735960.000) (117d28'27.39"W, 33d45'52.46"N)
159 Band 1 Block=512x16 Type=Byte, ColorInterp=Gray
160
162 Frank Warmerdam <warmerdam@pobox.com>
163
165 1998-2021
166
167
168
169
170 Jan 05, 2021 GDALINFO(1)