1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
|
<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<head>
<meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Cartographic projection — PROJ 9.0.0 documentation</title>
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
<link rel="shortcut icon" href="../_static/favicon.png"/>
<link rel="canonical" href="https://proj.orgusage/projections.html"/>
<!--[if lt IE 9]>
<script src="../_static/js/html5shiv.min.js"></script>
<![endif]-->
<script data-url_root="../" id="documentation_options" src="../_static/documentation_options.js"></script>
<script src="../_static/jquery.js"></script>
<script src="../_static/underscore.js"></script>
<script src="../_static/doctools.js"></script>
<script src="../_static/js/theme.js"></script>
<link rel="author" title="About these documents" href="../about.html" />
<link rel="index" title="Index" href="../genindex.html" />
<link rel="search" title="Search" href="../search.html" />
<link rel="next" title="Geodetic transformation" href="transformation.html" />
<link rel="prev" title="Quick start" href="quickstart.html" />
</head>
<body class="wy-body-for-nav">
<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
<div class="wy-side-scroll">
<div class="wy-side-nav-search" style="background: #353130" >
<a href="../index.html">
<img src="../_static/logo.png" class="logo" alt="Logo"/>
</a>
<div class="version">
9.0.0
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
<input type="text" name="q" placeholder="Search docs" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="../about.html">About</a></li>
<li class="toctree-l1"><a class="reference internal" href="../news.html">News</a></li>
<li class="toctree-l1"><a class="reference internal" href="../download.html">Download</a></li>
<li class="toctree-l1"><a class="reference internal" href="../install.html">Installation</a></li>
<li class="toctree-l1 current"><a class="reference internal" href="index.html">Using PROJ</a><ul class="current">
<li class="toctree-l2"><a class="reference internal" href="quickstart.html">Quick start</a></li>
<li class="toctree-l2 current"><a class="current reference internal" href="#">Cartographic projection</a><ul>
<li class="toctree-l3"><a class="reference internal" href="#units">Units</a></li>
<li class="toctree-l3"><a class="reference internal" href="#false-easting-northing">False Easting/Northing</a></li>
<li class="toctree-l3"><a class="reference internal" href="#longitude-wrapping">Longitude Wrapping</a></li>
<li class="toctree-l3"><a class="reference internal" href="#prime-meridian">Prime Meridian</a></li>
<li class="toctree-l3"><a class="reference internal" href="#axis-orientation">Axis orientation</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="transformation.html">Geodetic transformation</a></li>
<li class="toctree-l2"><a class="reference internal" href="ellipsoids.html">Ellipsoids</a></li>
<li class="toctree-l2"><a class="reference internal" href="environmentvars.html">Environment variables</a></li>
<li class="toctree-l2"><a class="reference internal" href="differences.html">Known differences between versions</a></li>
<li class="toctree-l2"><a class="reference internal" href="network.html">Network capabilities</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="../apps/index.html">Applications</a></li>
<li class="toctree-l1"><a class="reference internal" href="../operations/index.html">Coordinate operations</a></li>
<li class="toctree-l1"><a class="reference internal" href="../resource_files.html">Resource files</a></li>
<li class="toctree-l1"><a class="reference internal" href="../geodesic.html">Geodesic calculations</a></li>
<li class="toctree-l1"><a class="reference internal" href="../development/index.html">Development</a></li>
<li class="toctree-l1"><a class="reference internal" href="../specifications/index.html">Specifications</a></li>
<li class="toctree-l1"><a class="reference internal" href="../community/index.html">Community</a></li>
<li class="toctree-l1"><a class="reference internal" href="../faq.html">FAQ</a></li>
<li class="toctree-l1"><a class="reference internal" href="../glossary.html">Glossary</a></li>
<li class="toctree-l1"><a class="reference internal" href="../zreferences.html">References</a></li>
</ul>
</div>
</div>
</nav>
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" style="background: #353130" >
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="../index.html">PROJ</a>
</nav>
<div class="wy-nav-content">
<div class="rst-content">
<div role="navigation" aria-label="Page navigation">
<ul class="wy-breadcrumbs">
<li><a href="../index.html" class="icon icon-home"></a> »</li>
<li><a href="index.html">Using PROJ</a> »</li>
<li>Cartographic projection</li>
<li class="wy-breadcrumbs-aside">
<a href="https://github.com/OSGeo/PROJ/edit/8.2/docs/source/usage/projections.rst" class="fa fa-github"> Edit on GitHub</a>
</li>
</ul><div class="rst-breadcrumbs-buttons" role="navigation" aria-label="Sequential page navigation">
<a href="quickstart.html" class="btn btn-neutral float-left" title="Quick start" accesskey="p"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
<a href="transformation.html" class="btn btn-neutral float-right" title="Geodetic transformation" accesskey="n">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
</div>
<hr/>
</div>
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div itemprop="articleBody">
<section id="cartographic-projection">
<span id="projections-intro"></span><h1>Cartographic projection<a class="headerlink" href="#cartographic-projection" title="Permalink to this headline">¶</a></h1>
<p>The foundation of PROJ is the large number of
<a class="reference internal" href="../operations/projections/index.html"><span class="doc">projections</span></a> available in the library. This section
is devoted to the generic parameters that can be used on any projection in the
PROJ library.</p>
<p>Below is a list of PROJ parameters which can be applied to most coordinate
system definitions. This table does not attempt to describe the parameters
particular to particular projection types. These can be found on the pages
documenting the individual <a class="reference internal" href="../operations/projections/index.html"><span class="doc">projections</span></a>.</p>
<blockquote>
<div><table class="docutils align-default">
<colgroup>
<col style="width: 14%" />
<col style="width: 86%" />
</colgroup>
<thead>
<tr class="row-odd"><th class="head"><p>Parameter</p></th>
<th class="head"><p>Description</p></th>
</tr>
</thead>
<tbody>
<tr class="row-even"><td><p>+a</p></td>
<td><p>Semimajor radius of the ellipsoid axis</p></td>
</tr>
<tr class="row-odd"><td><p>+axis</p></td>
<td><p>Axis orientation</p></td>
</tr>
<tr class="row-even"><td><p>+b</p></td>
<td><p>Semiminor radius of the ellipsoid axis</p></td>
</tr>
<tr class="row-odd"><td><p>+ellps</p></td>
<td><p>Ellipsoid name (see <code class="docutils literal notranslate"><span class="pre">proj</span> <span class="pre">-le</span></code>)</p></td>
</tr>
<tr class="row-even"><td><p>+k</p></td>
<td><p>Scaling factor (deprecated)</p></td>
</tr>
<tr class="row-odd"><td><p>+k_0</p></td>
<td><p>Scaling factor</p></td>
</tr>
<tr class="row-even"><td><p>+lat_0</p></td>
<td><p>Latitude of origin</p></td>
</tr>
<tr class="row-odd"><td><p>+lon_0</p></td>
<td><p>Central meridian</p></td>
</tr>
<tr class="row-even"><td><p>+lon_wrap</p></td>
<td><p>Center longitude to use for wrapping (see below)</p></td>
</tr>
<tr class="row-odd"><td><p>+over</p></td>
<td><p>Allow longitude output outside -180 to 180 range, disables
wrapping (see below)</p></td>
</tr>
<tr class="row-even"><td><p>+pm</p></td>
<td><p>Alternate prime meridian (typically a city name, see below)</p></td>
</tr>
<tr class="row-odd"><td><p>+proj</p></td>
<td><p>Projection name (see <code class="docutils literal notranslate"><span class="pre">proj</span> <span class="pre">-l</span></code>)</p></td>
</tr>
<tr class="row-even"><td><p>+units</p></td>
<td><p>meters, US survey feet, etc.</p></td>
</tr>
<tr class="row-odd"><td><p>+vunits</p></td>
<td><p>vertical units.</p></td>
</tr>
<tr class="row-even"><td><p>+x_0</p></td>
<td><p>False easting</p></td>
</tr>
<tr class="row-odd"><td><p>+y_0</p></td>
<td><p>False northing</p></td>
</tr>
</tbody>
</table>
</div></blockquote>
<p>In the sections below most of the parameters are explained in details.</p>
<section id="units">
<h2>Units<a class="headerlink" href="#units" title="Permalink to this headline">¶</a></h2>
<p>Horizontal units can be specified using the <code class="docutils literal notranslate"><span class="pre">+units</span></code> keyword with a symbolic
name for a unit (i.e. <code class="docutils literal notranslate"><span class="pre">us-ft</span></code>). Alternatively the translation to meters can be
specified with the <code class="docutils literal notranslate"><span class="pre">+to_meter</span></code> keyword (i.e. 0.304800609601219 for US feet). The
<code class="docutils literal notranslate"><span class="pre">-lu</span></code> argument to <strong class="program">cs2cs</strong> or <strong class="program">proj</strong> can be used to list
symbolic unit names. The default unit for projected coordinates is the meter.
A few special projections deviate from this behavior, most notably the
latlong pseudo-projection that returns degrees.</p>
<p>Vertical (Z) units can be specified using the <code class="docutils literal notranslate"><span class="pre">+vunits</span></code> keyword with a
symbolic name for a unit (i.e. <code class="docutils literal notranslate"><span class="pre">us-ft</span></code>). Alternatively the translation to
meters can be specified with the <code class="docutils literal notranslate"><span class="pre">+vto_meter</span></code> keyword (i.e. 0.304800609601219
for US feet). The <code class="docutils literal notranslate"><span class="pre">-lu</span></code> argument to <strong class="program">cs2cs</strong> or <strong class="program">proj</strong> can
be used to list symbolic unit names. If no vertical units are specified, the
vertical units will default to be the same as the horizontal coordinates.</p>
<div class="admonition note">
<p class="admonition-title">Note</p>
<p><strong class="program">proj</strong> does not handle vertical units at all and hence the
<code class="docutils literal notranslate"><span class="pre">+vto_meter</span></code> argument will be ignored.</p>
</div>
<p>Scaling of output units can be done by applying the <code class="docutils literal notranslate"><span class="pre">+k_0</span></code> argument. The
returned coordinates are scaled by the value assigned with the <code class="docutils literal notranslate"><span class="pre">+k_0</span></code>
parameter.</p>
</section>
<section id="false-easting-northing">
<h2>False Easting/Northing<a class="headerlink" href="#false-easting-northing" title="Permalink to this headline">¶</a></h2>
<p>Virtually all coordinate systems allow for the presence of a false easting
(<code class="docutils literal notranslate"><span class="pre">+x_0</span></code>) and northing (<code class="docutils literal notranslate"><span class="pre">+y_0</span></code>). Note that these values are always expressed in
meters even if the coordinate system is some other units. Some coordinate
systems (such as UTM) have implicit false easting and northing values.</p>
</section>
<section id="longitude-wrapping">
<h2>Longitude Wrapping<a class="headerlink" href="#longitude-wrapping" title="Permalink to this headline">¶</a></h2>
<p>By default PROJ wraps output longitudes in the range -180 to 180. The <code class="docutils literal notranslate"><span class="pre">+over</span></code>
switch can be used to disable the default wrapping which is done at a low level
in <code class="docutils literal notranslate"><span class="pre">pj_inv()</span></code>. This is particularly useful with projections like the
<a class="reference internal" href="../operations/projections/eqc.html"><span class="doc">equidistant cylindrical</span></a>
where it would be desirable for X values past -20000000 (roughly) to continue
past -180 instead of wrapping to +180.</p>
<p>The <code class="docutils literal notranslate"><span class="pre">+lon_wrap</span></code> option can be used to provide an alternative means of doing
longitude wrapping within <code class="docutils literal notranslate"><span class="pre">pj_transform()</span></code>. The argument to this option is a
center longitude. So <code class="docutils literal notranslate"><span class="pre">+lon_wrap=180</span></code> means wrap longitudes in the range 0 to
360. Note that <code class="docutils literal notranslate"><span class="pre">+over</span></code> does <strong>not</strong> disable <code class="docutils literal notranslate"><span class="pre">+lon_wrap</span></code>.</p>
</section>
<section id="prime-meridian">
<h2>Prime Meridian<a class="headerlink" href="#prime-meridian" title="Permalink to this headline">¶</a></h2>
<p>A prime meridian may be declared indicating the offset between the prime
meridian of the declared coordinate system and that of greenwich. A prime
meridian is declared using the “pm” parameter, and may be assigned a symbolic
name, or the longitude of the alternative prime meridian relative to greenwich.</p>
<p>Currently prime meridian declarations are only utilized by the
<code class="docutils literal notranslate"><span class="pre">pj_transform()</span></code> API call, not the <code class="docutils literal notranslate"><span class="pre">pj_inv()</span></code> and <code class="docutils literal notranslate"><span class="pre">pj_fwd()</span></code> calls.
Consequently the user utility <strong class="program">cs2cs</strong> does honour prime meridians but
the <strong class="program">proj</strong> user utility ignores them.</p>
<p>The following predeclared prime meridian names are supported. These can be
listed using with <code class="docutils literal notranslate"><span class="pre">cs2cs</span> <span class="pre">-lm</span></code>.</p>
<blockquote>
<div><table class="docutils align-default">
<colgroup>
<col style="width: 41%" />
<col style="width: 59%" />
</colgroup>
<thead>
<tr class="row-odd"><th class="head"><p>Meridian</p></th>
<th class="head"><p>Longitude</p></th>
</tr>
</thead>
<tbody>
<tr class="row-even"><td><p>greenwich</p></td>
<td><p>0dE</p></td>
</tr>
<tr class="row-odd"><td><p>lisbon</p></td>
<td><p>9d07’54.862”W</p></td>
</tr>
<tr class="row-even"><td><p>paris</p></td>
<td><p>2d20’14.025”E</p></td>
</tr>
<tr class="row-odd"><td><p>bogota</p></td>
<td><p>74d04’51.3”E</p></td>
</tr>
<tr class="row-even"><td><p>madrid</p></td>
<td><p>3d41’16.48”W</p></td>
</tr>
<tr class="row-odd"><td><p>rome</p></td>
<td><p>12d27’8.4”E</p></td>
</tr>
<tr class="row-even"><td><p>bern</p></td>
<td><p>7d26’22.5”E</p></td>
</tr>
<tr class="row-odd"><td><p>jakarta</p></td>
<td><p>106d48’27.79”E</p></td>
</tr>
<tr class="row-even"><td><p>ferro</p></td>
<td><p>17d40’W</p></td>
</tr>
<tr class="row-odd"><td><p>brussels</p></td>
<td><p>4d22’4.71”E</p></td>
</tr>
<tr class="row-even"><td><p>stockholm</p></td>
<td><p>18d3’29.8”E</p></td>
</tr>
<tr class="row-odd"><td><p>athens</p></td>
<td><p>23d42’58.815”E</p></td>
</tr>
<tr class="row-even"><td><p>oslo</p></td>
<td><p>10d43’22.5”E</p></td>
</tr>
</tbody>
</table>
</div></blockquote>
<p>Example of use. The location <code class="docutils literal notranslate"><span class="pre">long=0</span></code>, <code class="docutils literal notranslate"><span class="pre">lat=0</span></code> in the greenwich based lat/long
coordinates is translated to lat/long coordinates with Madrid as the prime
meridian.</p>
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>cs2cs +proj=latlong +datum=WGS84 +to +proj=latlong +datum=WGS84 +pm=madrid
0 0
3d41'16.48"E 0dN 0.000
</pre></div>
</div>
</section>
<section id="axis-orientation">
<h2>Axis orientation<a class="headerlink" href="#axis-orientation" title="Permalink to this headline">¶</a></h2>
<p>Starting in PROJ 4.8.0, the +axis argument can be used to control the axis
orientation of the coordinate system. The default orientation is “easting,
northing, up” but directions can be flipped, or axes flipped using combinations
of the axes in the +axis switch. The values are:</p>
<ul class="simple">
<li><p>“e” - Easting</p></li>
<li><p>“w” - Westing</p></li>
<li><p>“n” - Northing</p></li>
<li><p>“s” - Southing</p></li>
<li><p>“u” - Up</p></li>
<li><p>“d” - Down</p></li>
</ul>
<p>They can be combined in +axis in forms like:</p>
<ul class="simple">
<li><p><code class="docutils literal notranslate"><span class="pre">+axis=enu</span></code> - the default easting, northing, elevation.</p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">+axis=neu</span></code> - northing, easting, up - useful for “lat/long” geographic
coordinates, or south orientated transverse mercator.</p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">+axis=wnu</span></code> - westing, northing, up - some planetary coordinate systems
have “west positive” coordinate systems</p></li>
</ul>
<div class="admonition note">
<p class="admonition-title">Note</p>
<p>The <code class="docutils literal notranslate"><span class="pre">+axis</span></code> argument does not work with the <strong class="program">proj</strong> command line
utility.</p>
</div>
</section>
</section>
</div>
</div>
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
<a href="quickstart.html" class="btn btn-neutral float-left" title="Quick start" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
<a href="transformation.html" class="btn btn-neutral float-right" title="Geodetic transformation" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
</div>
<hr/>
<div role="contentinfo">
<p>© Copyright 1983-2022.
<span class="lastupdated">Last updated on 22 Mar 2022.
</span></p>
</div>
Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a
<a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a>
provided by <a href="https://readthedocs.org">Read the Docs</a>.
</footer>
</div>
</div>
</section>
</div>
<script>
jQuery(function () {
SphinxRtdTheme.Navigation.enable(true);
});
</script>
</body>
</html>
|