1GDALSRSINFO(1)                       GDAL                       GDALSRSINFO(1)
2
3
4

NAME

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

SYNOPSIS

10          Usage: gdalsrsinfo [--single-line] [-V] [-e][-o <out_type>] <srs_def>
11

DESCRIPTION

13       The gdalsrsinfo utility reports information about a given SRS from  one
14       of the following:
15
16       • The  filename  of  a dataset supported by GDAL/OGR which contains SRS
17         information
18
19       • Any of the usual GDAL/OGR forms (complete WKT, PROJ.4,  EPSG:n  or  a
20         file containing the SRS)
21
22       --single-line
23              Print WKT on single line
24
25       -V     Validate SRS
26
27       -e     Search for EPSG number(s) corresponding to SRS
28
29       -o <out_type>
30              Output types:
31
32default: proj4 and wkt (default option)
33
34all: all options available
35
36wkt_all: all wkt options available
37
38PROJJSON: PROJJSON string (GDAL >= 3.1 and PROJ >= 6.2)
39
40proj4: PROJ.4 string
41
42wkt1: OGC WKT format (full)
43
44wkt_simple: OGC WKT 1 (simplified)
45
46wkt_noct: OGC WKT 1 (without OGC CT params)
47
48wkt_esri: ESRI WKT format
49
50wkt: Latest WKT version supported, currently wkt2_2018
51
52wkt2: Latest WKT2 version supported, currently wkt2_2018
53
54wkt2_2015: OGC WKT2:2015
55
56wkt2_2018: OGC WKT2:2018
57
58mapinfo: Mapinfo style CoordSys format
59
60xml: XML format (GML based)
61
62       <srs_def>
63              may  be  the  filename  of  a dataset supported by GDAL/OGR from
64              which to extract SRS information OR any of  the  usual  GDAL/OGR
65              forms  (complete  WKT,  PROJ.4,  EPSG:n or a file containing the
66              SRS)
67

EXAMPLE

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

AUTHOR

285       Frank Warmerdam <warmerdam@pobox.com>, Etienne Tourigny <etourigny.dev-
286       at-gmail-dot-com>
287
289       1998-2022
290
291
292
293
294                                 May 04, 2022                   GDALSRSINFO(1)
Impressum