| Home | Trees | Indices | Help |
|
|---|
|
|
Web Mercator (WM) class Wm and functions parseWM and toWm.
Pure Python implementation of a Web Mercator (aka Pseudo-Mercator) class and conversion functions for spherical and near-spherical earth models.
References Google Maps / Bing Maps Spherical Mercator Projection, Geomatics Guidance Note 7, part 2 and Implementation Practice Web Mercator Map Projection.
Version: 18.02.02
| Classes | |
|
Wm Web Mercator (WM) coordinate. |
|
| Functions | |||
|
|||
|
|||
| Function Details |
Parse a string representing a WM coordinate, consisting of easting, northing and an optional radius.
Example: >>> u = parseWM('448251 5411932') >>> u.toStr2() # [E:448251, N:5411932] |
Convert a lat-/longitude point to a WM coordinate.
Example: >>> p = LatLon(48.8582, 2.2945) # 448251.8 5411932.7 >>> w = toWm(p) # 448252 5411933 >>> p = LatLon(13.4125, 103.8667) # 377302.4 1483034.8 >>> w = toWm(p) # 377302 1483035 |
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Mon Mar 5 16:16:49 2018 | http://epydoc.sourceforge.net |