-
Notifications
You must be signed in to change notification settings - Fork 802
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implementation of webmerc projection #1080
Closed
Closed
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
c33d2ca
Implementation of Web Mercator projection
d1cfa5b
Better explanation of Web Mercator projection
500b346
Update webmerc.rst
70f6724
Review of parameters of Web Mercator projection
a531dc3
Update webmerc.rst
ab1e5f9
Update webmerc.rst
22ac611
Update webmerc.rst
c148d09
Update PJ_merc.c
38bb740
Override of ellipsoid and always using WGS84
45f9e0a
Update PJ_merc.c
f17ca0d
Renamed Web Mercator
c334fb2
Update pj_list.h
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
.. _webmerc: | ||
|
||
******************************************************************************** | ||
Web Mercator / Pseudo Mercator | ||
WGS 84 Web Mercator / WGS 84 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. | ||
The WGS 84 Web Mercator / WGS 84 Pseudo Mercator projection is a cylindrical map projection. | ||
It is defined only for ellipsoid WGS 84, motivated by the regular :ref:`merc` projection, but the equations for the ellispoid are chosen to be the same as equations for Mercator projection of a sphere, with radius same as semi-major axis of the WGS 84 ellipsoid. As a consequence it is not a conformal projection. | ||
|
||
From `Wikipedia <https://en.wikipedia.org/wiki/Web_Mercator>`_: | ||
|
||
|
@@ -21,21 +20,21 @@ From `Wikipedia <https://en.wikipedia.org/wiki/Web_Mercator>`_: | |
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 | | ||
+---------------------+----------------------------------------------------------+ | ||
+---------------------+-----------------------------------------------------------------+ | ||
| **Classification** | Non-conformal cylindrical projection of an WGS 84 ellipsoid | | ||
+---------------------+-----------------------------------------------------------------+ | ||
| **Available forms** | Forward and inverse, ellipsoidal projection | | ||
+---------------------+-----------------------------------------------------------------+ | ||
| **Defined area** | Global, low linear distortions near the equator | | ||
+---------------------+-----------------------------------------------------------------+ | ||
| **Alias** | webmerc | | ||
+---------------------+-----------------------------------------------------------------+ | ||
| **Domain** | 2D | | ||
+---------------------+-----------------------------------------------------------------+ | ||
| **Input type** | Geodetic coordinates | | ||
+---------------------+-----------------------------------------------------------------+ | ||
| **Output type** | Projected coordinates | | ||
+---------------------+-----------------------------------------------------------------+ | ||
|
||
|
||
Usage | ||
|
@@ -49,13 +48,8 @@ Example:: | |
Parameters | ||
################################################################################ | ||
|
||
.. note:: All parameters for the projection are optional. | ||
.. note:: Projection does not have any additional parameters. See `EPSG.io <http://epsg.io/3857>`_ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it is better to refer to Wikipedia here? The epsg.io site doesn't go into much detail. Also, it is easily mistaken as official outlet of the EPSG (which it is not). It is already mentioned under "Further reading". |
||
|
||
.. include:: ../options/R.rst | ||
|
||
.. include:: ../options/x_0.rst | ||
|
||
.. include:: ../options/y_0.rst | ||
|
||
Mathematical definition | ||
####################### | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it is better to just say that it is globally defined and not go into where distortions are at a minimum. The original text is just a copy of what's written for Mercator which is kind of not valid here anyway.