1gdalsrsinfo(1) General Commands Manual gdalsrsinfo(1)
2
3
4
6 gdalsrsinfoLists info about a given SRS in number of formats (WKT,
7 PROJ.4, etc.)
8
10 Usage: gdalsrsinfo [options] srs_def
11
12 srs_def may be the filename of a dataset supported by GDAL/OGR from which to extract SRS information
13 OR any of the usual GDAL/OGR forms (complete WKT, PROJ.4, EPSG:n or a file containing the SRS)
14
15 Options:
16 [--help-general] [-h] Show help and exit
17 [-p] Pretty-print where applicable (e.g. WKT)
18 [-V] Validate SRS
19 [-e] Search for EPSG number(s) corresponding to SRS
20 [-o out_type] Output type { default, all, wkt_all, proj4,
21 wkt, wkt_simple, wkt_noct, wkt_esri,
22 mapinfo, xml }.fi
23
25 The gdalsrsinfo utility reports information about a given SRS from one
26 of the following:
27
28 · The filename of a dataset supported by GDAL/OGR which contains SRS
29 information
30
31 · Any of the usual GDAL/OGR forms (complete WKT, PROJ.4, EPSG:n or a
32 file containing the SRS)
33
34 Output types:
35
36 · default proj4 and wkt (default option)
37
38 · all all options available
39
40 · wkt_all all wkt options available
41
42 · proj4 PROJ.4 string
43
44 · wkt OGC WKT format (full)
45
46 · wkt_simple OGC WKT (simplified)
47
48 · wkt_noct OGC WKT (without OGC CT params)
49
50 · wkt_esri ESRI WKT format
51
52 · mapinfo Mapinfo style CoordSys format
53
54 · xml XML format (GML based)
55
57 $ gdalsrsinfo "EPSG:4326"
58
59 PROJ.4 : '+proj=longlat +datum=WGS84 +no_defs '
60
61 OGC WKT :
62 GEOGCS["WGS 84",
63 DATUM["WGS_1984",
64 SPHEROID["WGS 84",6378137,298.257223563,
65 AUTHORITY["EPSG","7030"]],
66 AUTHORITY["EPSG","6326"]],
67 PRIMEM["Greenwich",0,
68 AUTHORITY["EPSG","8901"]],
69 UNIT["degree",0.0174532925199433,
70 AUTHORITY["EPSG","9122"]],
71 AUTHORITY["EPSG","4326"]].fi
72
73 $ gdalsrsinfo -o proj4 osr/data/lcc_esri.prj
74
75 $ gdalsrsinfo -o proj4 landsat.tif
76 PROJ.4 : '+proj=utm +zone=19 +south +datum=WGS84 +units=m +no_defs '
77
78 $ gdalsrsinfo -o wkt -p "EPSG:32722"
79
80 PROJCS["WGS 84 / UTM zone 22S",
81 GEOGCS["WGS 84",
82 DATUM["WGS_1984",
83 SPHEROID["WGS 84",6378137,298.257223563,
84 AUTHORITY["EPSG","7030"]],
85 AUTHORITY["EPSG","6326"]],
86 PRIMEM["Greenwich",0,
87 AUTHORITY["EPSG","8901"]],
88 UNIT["degree",0.0174532925199433,
89 AUTHORITY["EPSG","9122"]],
90 AUTHORITY["EPSG","4326"]],
91 PROJECTION["Transverse_Mercator"],
92 PARAMETER["latitude_of_origin",0],
93 PARAMETER["central_meridian",-51],
94 PARAMETER["scale_factor",0.9996],
95 PARAMETER["false_easting",500000],
96 PARAMETER["false_northing",10000000],
97 UNIT["metre",1,
98 AUTHORITY["EPSG","9001"]],
99 AXIS["Easting",EAST],
100 AXIS["Northing",NORTH],
101 AUTHORITY["EPSG","32722"]]
102
103 $ gdalsrsinfo -o wkt_all "EPSG:4618"
104
105 OGC WKT :
106 GEOGCS["SAD69",
107 DATUM["South_American_Datum_1969",
108 SPHEROID["GRS 1967 Modified",6378160,298.25,
109 AUTHORITY["EPSG","7050"]],
110 TOWGS84[-57,1,-41,0,0,0,0],
111 AUTHORITY["EPSG","6618"]],
112 PRIMEM["Greenwich",0,
113 AUTHORITY["EPSG","8901"]],
114 UNIT["degree",0.0174532925199433,
115 AUTHORITY["EPSG","9122"]],
116 AUTHORITY["EPSG","4618"]]
117
118 OGC WKT (simple) :
119 GEOGCS["SAD69",
120 DATUM["South_American_Datum_1969",
121 SPHEROID["GRS 1967 Modified",6378160,298.25],
122 TOWGS84[-57,1,-41,0,0,0,0]],
123 PRIMEM["Greenwich",0],
124 UNIT["degree",0.0174532925199433]]
125
126 OGC WKT (no CT) :
127 GEOGCS["SAD69",
128 DATUM["South_American_Datum_1969",
129 SPHEROID["GRS 1967 Modified",6378160,298.25]],
130 PRIMEM["Greenwich",0],
131 UNIT["degree",0.0174532925199433]]
132
133 ESRI WKT :
134 GEOGCS["SAD69",
135 DATUM["D_South_American_1969",
136 SPHEROID["GRS_1967_Truncated",6378160,298.25]],
137 PRIMEM["Greenwich",0],
138 UNIT["Degree",0.017453292519943295]]
139
141 Frank Warmerdam warmerdam@pobox.com, Etienne Tourigny <etourigny.dev-
142 at-gmail-dot-com>
143
144
145
146GDAL Wed Oct 3 2018 gdalsrsinfo(1)