toUps8 (latlon,
lon=None,
datum=None,
Ups=<class 'pygeodesy.ups.Ups'>,
pole='',
falsed=True,
strict=True,
**name)
|
|
Convert a lat-/longitude point to a UPS coordinate.
- Arguments:
latlon - Latitude (degrees ) or an (ellipsoidal) geodetic
LatLon point.
lon - Optional longitude (degrees ) or None if
latlon is a LatLon .
datum - Optional datum for this UPS coordinate, overriding
latlon 's datum (Datum , Ellipsoid, Ellipsoid2 or a_f2Tuple).
Ups - Optional class to return the UPS coordinate (Ups) or
None .
pole - Optional top/center of (stereographic) projection
(str , 'N[orth]' or
'S[outh]' ).
falsed - If True , false both easting and northing
(bool ).
strict - Restrict lat to UPS ranges
(bool ).
name - Optional Ups name=NN
(str ).
- Returns:
- The UPS coordinate (
Ups ) or if
Ups is None , a UtmUps8Tuple(zone, hemipole, easting,
northing, band, datum, gamma, scale) where
hemipole is the 'N'|'S' pole, the UPS
projection top/center.
- Raises:
RangeError - If strict and lat outside
the valid UPS bands or if lat or
lon outside the valid range and rangerrors is True .
TypeError - If latlon is not ellipsoidal or if
datum is invalid.
ValueError - If lon value is missing or if
latlon is invalid.
See Also:
Karney's C++ class UPS.
|