toWm (latlon,
lon=None,
earth=6378137.0,
Wm=<class 'pygeodesy.webmercator.Wm'>,
**name_Wm_kwds_radius)
|
|
Convert a lat-/longitude point to a WM coordinate.
- Arguments:
latlon - Latitude (degrees ) or an (ellipsoidal or spherical)
geodetic LatLon point.
lon - Optional longitude (degrees or None ).
earth - Earth radius (meter ), datum or ellipsoid (Datum,
a_f2Tuple, Ellipsoid or Ellipsoid2), overridden by
latlon 's datum if present.
Wm - Optional class to return the WM coordinate (Wm)
or None .
name_Wm_kwds_radius - Optional name=NN (str ),
optional, additional Wm keyword arguments,
ignored if Wm is None and DEPRECATED keyword
argument radius=earth , use
earth .
- Returns:
- The WM coordinate (
Wm ) or if Wm
is None , an EasNorRadius3Tuple(easting, northing,
radius) .
- Raises:
ValueError - If earth is invalid, if lon
value is missing, if latlon is not scalar, or
if latlon is beyond the valid WM range and rangerrrors is True .
|