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.
- Parameters:
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).
Ups - Optional (sub-)class to return the UPS coordinate (Ups) or
None.
pole - Optional top/center of (stereographic) projection
(str, 'N[orth]' or
'S[outh]').
falsed - False both easting and northing (bool).
strict - Restrict lat to UPS ranges (bool).
name - Optional Ups name (str).
- Returns:
- The UPS coordinate (Ups) or a 8-tuple (zone, hemisphere, easting,
northing, band, datum, convergence, scale) if Ups is
None.
- Raises:
RangeError - If strict and lat outside the valid UPS bands or if
lat or lon outside the valid range and
rangerrrors set to True.
TypeError - If latlon is not ellipsoidal.
ValueError - If lon value is missing or if latlon is invalid.
See Also:
Karney's C++ class UPS.
|