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

NAME

6       gdalsrsinfoLists info about a given SRS in number of formats (WKT,
7       PROJ.4, etc.)
8

SYNOPSIS

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          [--single-line]        Print WKT on single line
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                                               wkt2_2015, wkt2_2018, mapinfo, xml }.fi
23

DESCRIPTION

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       · wkt1   OGC WKT format (full)
45
46       · wkt_simple   OGC WKT 1 (simplified)
47
48       · wkt_noct   OGC WKT 1 (without OGC CT params)
49
50       · wkt_esri   ESRI WKT format
51
52       · wkt   Latest WKT version supported, currently wkt2_2018
53
54       · wkt2   Latest WKT2 version supported, currently wkt2_2018
55
56       · wkt2_2015   OGC WKT2:2015
57
58       · wkt2_2018   OGC WKT2:2018
59
60       · mapinfo   Mapinfo style CoordSys format
61
62       · xml   XML format (GML based)
63

EXAMPLE

65       $  gdalsrsinfo   "EPSG:4326"
66
67       PROJ.4 : '+proj=longlat +datum=WGS84 +no_defs '
68
69       OGC WKT :
70       GEOGCS["WGS 84",
71           DATUM["WGS_1984",
72               SPHEROID["WGS 84",6378137,298.257223563,
73                   AUTHORITY["EPSG","7030"]],
74               AUTHORITY["EPSG","6326"]],
75           PRIMEM["Greenwich",0,
76               AUTHORITY["EPSG","8901"]],
77           UNIT["degree",0.0174532925199433,
78               AUTHORITY["EPSG","9122"]],
79           AUTHORITY["EPSG","4326"]].fi
80
81       $ gdalsrsinfo -o proj4 osr/data/lcc_esri.prj
82
83       $ gdalsrsinfo -o proj4 landsat.tif
84       PROJ.4 : '+proj=utm +zone=19 +south +datum=WGS84 +units=m +no_defs '
85
86       $ gdalsrsinfo  -o wkt "EPSG:32722"
87
88       PROJCRS["WGS 84 / UTM zone 22S",
89           BASEGEOGCRS["WGS 84",
90               DATUM["World Geodetic System 1984",
91                   ELLIPSOID["WGS 84",6378137,298.257223563,
92                       LENGTHUNIT["metre",1]]],
93               PRIMEM["Greenwich",0,
94                   ANGLEUNIT["degree",0.0174532925199433]]],
95           CONVERSION["UTM zone 22S",
96               METHOD["Transverse Mercator",
97                   ID["EPSG",9807]],
98               PARAMETER["Latitude of natural origin",0,
99                   ANGLEUNIT["degree",0.0174532925199433],
100                   ID["EPSG",8801]],
101               PARAMETER["Longitude of natural origin",-51,
102                   ANGLEUNIT["degree",0.0174532925199433],
103                   ID["EPSG",8802]],
104               PARAMETER["Scale factor at natural origin",0.9996,
105                   SCALEUNIT["unity",1],
106                   ID["EPSG",8805]],
107               PARAMETER["False easting",500000,
108                   LENGTHUNIT["metre",1],
109                   ID["EPSG",8806]],
110               PARAMETER["False northing",10000000,
111                   LENGTHUNIT["metre",1],
112                   ID["EPSG",8807]]],
113           CS[Cartesian,2],
114               AXIS["(E)",east,
115                   ORDER[1],
116                   LENGTHUNIT["metre",1]],
117               AXIS["(N)",north,
118                   ORDER[2],
119                   LENGTHUNIT["metre",1]],
120           USAGE[
121               SCOPE["unknown"],
122               AREA["World - S hemisphere - 54°W to 48°W - by country"],
123               BBOX[-80,-54,0,-48]],
124           ID["EPSG",32722]].fi
125
126       $ gdalsrsinfo -o wkt_all "EPSG:4322"
127       OGC WKT 1:
128       GEOGCS["WGS 72",
129           DATUM["World_Geodetic_System_1972",
130               SPHEROID["WGS 72",6378135,298.26,
131                   AUTHORITY["EPSG","7043"]],
132               TOWGS84[0,0,4.5,0,0,0.554,0.2263],
133               AUTHORITY["EPSG","6322"]],
134           PRIMEM["Greenwich",0,
135               AUTHORITY["EPSG","8901"]],
136           UNIT["degree",0.0174532925199433,
137               AUTHORITY["EPSG","9122"]],
138           AXIS["Latitude",NORTH],
139           AXIS["Longitude",EAST],
140           AUTHORITY["EPSG","4322"]]
141
142       OGC WKT2:2015 :
143       BOUNDCRS[
144           SOURCECRS[
145               GEODCRS["WGS 72",
146                   DATUM["World Geodetic System 1972",
147                       ELLIPSOID["WGS 72",6378135,298.26,
148                           LENGTHUNIT["metre",1]]],
149                   PRIMEM["Greenwich",0,
150                       ANGLEUNIT["degree",0.0174532925199433]],
151                   CS[ellipsoidal,2],
152                       AXIS["geodetic latitude (Lat)",north,
153                           ORDER[1],
154                           ANGLEUNIT["degree",0.0174532925199433]],
155                       AXIS["geodetic longitude (Lon)",east,
156                           ORDER[2],
157                           ANGLEUNIT["degree",0.0174532925199433]],
158                   AREA["World"],
159                   BBOX[-90,-180,90,180],
160                   ID["EPSG",4322]]],
161           TARGETCRS[
162               GEODCRS["WGS 84",
163                   DATUM["World Geodetic System 1984",
164                       ELLIPSOID["WGS 84",6378137,298.257223563,
165                           LENGTHUNIT["metre",1]]],
166                   PRIMEM["Greenwich",0,
167                       ANGLEUNIT["degree",0.0174532925199433]],
168                   CS[ellipsoidal,2],
169                       AXIS["latitude",north,
170                           ORDER[1],
171                           ANGLEUNIT["degree",0.0174532925199433]],
172                       AXIS["longitude",east,
173                           ORDER[2],
174                           ANGLEUNIT["degree",0.0174532925199433]],
175                   ID["EPSG",4326]]],
176           ABRIDGEDTRANSFORMATION["WGS 72 to WGS 84 (1)",
177               METHOD["Position Vector transformation (geog2D domain)",
178                   ID["EPSG",9606]],
179               PARAMETER["X-axis translation",0,
180                   ID["EPSG",8605]],
181               PARAMETER["Y-axis translation",0,
182                   ID["EPSG",8606]],
183               PARAMETER["Z-axis translation",4.5,
184                   ID["EPSG",8607]],
185               PARAMETER["X-axis rotation",0,
186                   ID["EPSG",8608]],
187               PARAMETER["Y-axis rotation",0,
188                   ID["EPSG",8609]],
189               PARAMETER["Z-axis rotation",0.554,
190                   ID["EPSG",8610]],
191               PARAMETER["Scale difference",1.0000002263,
192                   ID["EPSG",8611]],
193               AREA["World"],
194               BBOX[-90,-180,90,180],
195               ID["EPSG",1237]]]
196
197       OGC WKT2:2018 :
198       BOUNDCRS[
199           SOURCECRS[
200               GEOGCRS["WGS 72",
201                   DATUM["World Geodetic System 1972",
202                       ELLIPSOID["WGS 72",6378135,298.26,
203                           LENGTHUNIT["metre",1]]],
204                   PRIMEM["Greenwich",0,
205                       ANGLEUNIT["degree",0.0174532925199433]],
206                   CS[ellipsoidal,2],
207                       AXIS["geodetic latitude (Lat)",north,
208                           ORDER[1],
209                           ANGLEUNIT["degree",0.0174532925199433]],
210                       AXIS["geodetic longitude (Lon)",east,
211                           ORDER[2],
212                           ANGLEUNIT["degree",0.0174532925199433]],
213                   USAGE[
214                       SCOPE["unknown"],
215                       AREA["World"],
216                       BBOX[-90,-180,90,180]],
217                   ID["EPSG",4322]]],
218           TARGETCRS[
219               GEOGCRS["WGS 84",
220                   DATUM["World Geodetic System 1984",
221                       ELLIPSOID["WGS 84",6378137,298.257223563,
222                           LENGTHUNIT["metre",1]]],
223                   PRIMEM["Greenwich",0,
224                       ANGLEUNIT["degree",0.0174532925199433]],
225                   CS[ellipsoidal,2],
226                       AXIS["latitude",north,
227                           ORDER[1],
228                           ANGLEUNIT["degree",0.0174532925199433]],
229                       AXIS["longitude",east,
230                           ORDER[2],
231                           ANGLEUNIT["degree",0.0174532925199433]],
232                   ID["EPSG",4326]]],
233           ABRIDGEDTRANSFORMATION["WGS 72 to WGS 84 (1)",
234               METHOD["Position Vector transformation (geog2D domain)",
235                   ID["EPSG",9606]],
236               PARAMETER["X-axis translation",0,
237                   ID["EPSG",8605]],
238               PARAMETER["Y-axis translation",0,
239                   ID["EPSG",8606]],
240               PARAMETER["Z-axis translation",4.5,
241                   ID["EPSG",8607]],
242               PARAMETER["X-axis rotation",0,
243                   ID["EPSG",8608]],
244               PARAMETER["Y-axis rotation",0,
245                   ID["EPSG",8609]],
246               PARAMETER["Z-axis rotation",0.554,
247                   ID["EPSG",8610]],
248               PARAMETER["Scale difference",1.0000002263,
249                   ID["EPSG",8611]],
250               USAGE[
251                   SCOPE["unknown"],
252                   AREA["World"],
253                   BBOX[-90,-180,90,180]],
254               ID["EPSG",1237]]]
255
256       OGC WKT 1 (simple) :
257       GEOGCS["WGS 72",
258           DATUM["World_Geodetic_System_1972",
259               SPHEROID["WGS 72",6378135,298.26],
260               TOWGS84[0,0,4.5,0,0,0.554,0.2263]],
261           PRIMEM["Greenwich",0],
262           UNIT["degree",0.0174532925199433]]
263
264       OGC WKT 1 (no CT) :
265       GEOGCS["WGS 72",
266           DATUM["World_Geodetic_System_1972",
267               SPHEROID["WGS 72",6378135,298.26]],
268           PRIMEM["Greenwich",0],
269           UNIT["degree",0.0174532925199433]]
270
271       ESRI WKT :
272       GEOGCS["GCS_WGS_1972",
273           DATUM["D_WGS_1972",
274               SPHEROID["WGS_1972",6378135.0,298.26]],
275           PRIMEM["Greenwich",0.0],
276           UNIT["Degree",0.0174532925199433]].fi
277

AUTHORS

279       Frank Warmerdam warmerdam@pobox.com, Etienne Tourigny <etourigny.dev-
280       at-gmail-dot-com>
281
282
283
284GDAL                            Tue Mar 3 2020                  gdalsrsinfo(1)
Impressum