blob: 92da2d45cf0b1f4dcc1fd0d0d41d6ab71ba163ca (
plain)
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
|
.. _webmerc:
********************************************************************************
Web Mercator / Pseudo Mercator
********************************************************************************
.. versionadded:: 5.1.0
The Web Mercator / Pseudo Mercator projection is a cylindrical map projection.
This is a variant of the regular :ref:`merc` projection, except that the computation
is done on a sphere, using the semi-major axis of the ellipsoid.
From `Wikipedia <https://en.wikipedia.org/wiki/Web_Mercator>`_:
This projection is widely used by the Web Mercator, Google Web Mercator,
Spherical Mercator, WGS 84 Web Mercator[1] or WGS 84/Pseudo-Mercator is a
variant of the Mercator projection and is the de facto standard for Web
mapping applications. [...]
It is used by virtually all major online map providers [...]
Its official EPSG identifier is EPSG:3857, although others have been used
historically.
+---------------------+----------------------------------------------------------+
| **Classification** | Cylindrical (non conformant if used with ellipsoid) |
+---------------------+----------------------------------------------------------+
| **Available forms** | Forward and inverse, spherical projection |
+---------------------+----------------------------------------------------------+
| **Defined area** | Global, but best used near the equator |
+---------------------+----------------------------------------------------------+
| **Alias** | webmerc |
+---------------------+----------------------------------------------------------+
| **Domain** | 2D |
+---------------------+----------------------------------------------------------+
| **Input type** | Geodetic coordinates |
+---------------------+----------------------------------------------------------+
| **Output type** | Projected coordinates |
+---------------------+----------------------------------------------------------+
Usage
########
Example::
$ echo 2 49 | proj +proj=webmerc +datum=WGS84
222638.98 6274861.39
Parameters
################################################################################
.. note:: All parameters for the projection are optional.
.. include:: ../options/R.rst
.. include:: ../options/x_0.rst
.. include:: ../options/y_0.rst
Mathematical definition
#######################
The formulas describing the Mercator projection are all taken from G. Evenden's libproj manuals [Evenden2005]_.
Forward projection
==================
.. math::
x = \lambda
.. math::
y = \ln \left[ \tan \left(\frac{\pi}{4} + \frac{\phi}{2} \right) \right]
Inverse projection
==================
.. math::
\lambda = {x}
.. math::
\phi = \frac{\pi}{2} - 2 \arctan \left[ e^{-y} \right]
Further reading
###############
#. `Wikipedia <https://en.wikipedia.org/wiki/Web_Mercator>`_
|