1gdalinfo(1)                 General Commands Manual                gdalinfo(1)
2
3
4

NAME

6       gdalinfoLists information about a raster dataset.
7

SYNOPSIS

9       gdalinfo [--help-general] [-json] [-mm] [-stats] [-hist] [-nogcp] [-nomd]
10                [-norat] [-noct] [-nofl] [-checksum] [-proj4]
11                [-listmdd] [-mdd domain|`all`]* [-wkt_format WKT1|WKT2|...]
12                [-sd subdataset] [-oo NAME=VALUE]* datasetname
13

DESCRIPTION

15       The gdalinfo program lists various information about a GDAL supported
16       raster dataset.
17
18       -json
19           Display the output in json format.
20
21       -mm
22           Force computation of the actual min/max values for each band in the
23           dataset.
24
25       -stats
26           Read and display image statistics. Force computation if no
27           statistics are stored in an image.
28
29       -approx_stats
30           Read and display image statistics. Force computation if no
31           statistics are stored in an image. However, they may be computed
32           based on overviews or a subset of all tiles. Useful if you are in a
33           hurry and don't want precise stats.
34
35       -hist
36           Report histogram information for all bands.
37
38       -nogcp
39           Suppress ground control points list printing. It may be useful for
40           datasets with huge amount of GCPs, such as L1B AVHRR or HDF4 MODIS
41           which contain thousands of them.
42
43       -nomd
44           Suppress metadata printing. Some datasets may contain a lot of
45           metadata strings.
46
47       -norat
48           Suppress printing of raster attribute table.
49
50       -noct
51           Suppress printing of color table.
52
53       -checksum
54           Force computation of the checksum for each band in the dataset.
55
56       -listmdd
57           (GDAL >= 1.11) List all metadata domains available for the dataset.
58
59       -mdd domain
60           Report metadata for the specified domain. Starting with GDAL 1.11,
61           'all' can be used to report metadata in all domains
62
63       -nofl
64           (GDAL >= 1.9.0) Only display the first file of the file list.
65
66       -wkt_format WKT1/WKT2/...
67           (GDAL >= 3.0.0) WKT format used to display the SRS. Currently
68           supported values are: WKT1, WKT2 (latest WKT version, currently
69           WKT2_2018), WKT2_2015, WKT2_2018
70
71       -sd subdataset
72           (GDAL >= 1.9.0) If the input dataset contains several subdatasets
73           read and display a subdataset with specified number (starting from
74           1). This is an alternative of giving the full subdataset name.
75
76       -proj4
77           (GDAL >= 1.9.0) Report a PROJ.4 string corresponding to the file's
78           coordinate system.
79
80       -oo NAME=VALUE:
81           (starting with GDAL 2.0) Dataset open option (format specific)
82
83       The gdalinfo will report all of the following (if known):
84
85       · The format driver used to access the file.
86       · Raster size (in pixels and lines).
87       · The coordinate system for the file (in OGC WKT).
88       · The geotransform associated with the file (rotational coefficients
89         are currently not reported).
90       · Corner coordinates in georeferenced, and if possible lat/long based
91         on the full geotransform (but not GCPs).
92       · Ground control points.
93       · File wide (including subdatasets) metadata.
94       · Band data types.
95       · Band color interpretations.
96       · Band block size.
97       · Band descriptions.
98       · Band min/max values (internally known and possibly computed).
99       · Band checksum (if computation asked).
100       · Band NODATA value.
101       · Band overview resolutions available.
102       · Band unit type (i.e.. 'meters' or 'feet' for elevation bands).
103       · Band pseudo-color tables.

C API

105       Starting with GDAL 2.1, this utility is also callable from C with
106       GDALInfo().

EXAMPLE

108       gdalinfo ~/openev/utm.tif
109       Driver: GTiff/GeoTIFF
110       Size is 512, 512
111       Coordinate System is:
112       PROJCS["NAD27 / UTM zone 11N",
113           GEOGCS["NAD27",
114               DATUM["North_American_Datum_1927",
115                   SPHEROID["Clarke 1866",6378206.4,294.978698213901]],
116               PRIMEM["Greenwich",0],
117               UNIT["degree",0.0174532925199433]],
118           PROJECTION["Transverse_Mercator"],
119           PARAMETER["latitude_of_origin",0],
120           PARAMETER["central_meridian",-117],
121           PARAMETER["scale_factor",0.9996],
122           PARAMETER["false_easting",500000],
123           PARAMETER["false_northing",0],
124           UNIT["metre",1]]
125       Origin = (440720.000000,3751320.000000)
126       Pixel Size = (60.000000,-60.000000)
127       Corner Coordinates:
128       Upper Left  (  440720.000, 3751320.000) (117d38'28.21"W, 33d54'8.47"N)
129       Lower Left  (  440720.000, 3720600.000) (117d38'20.79"W, 33d37'31.04"N)
130       Upper Right (  471440.000, 3751320.000) (117d18'32.07"W, 33d54'13.08"N)
131       Lower Right (  471440.000, 3720600.000) (117d18'28.50"W, 33d37'35.61"N)
132       Center      (  456080.000, 3735960.000) (117d28'27.39"W, 33d45'52.46"N)
133       Band 1 Block=512x16 Type=Byte, ColorInterp=Gray

AUTHORS

135       Frank Warmerdam warmerdam@pobox.com, Silke Reimer silke@intevation.de
136
137
138
139GDAL                            Tue Mar 3 2020                     gdalinfo(1)
Impressum