Universal Transverse Mercator coordinate module.
todo: | add Universal Polar Stereographic (UPS) support |
---|
Universal Transverse Mercator (UTM) point class.
For outdoor robotics applications, Euclidean projections like UTM are easier to work with than latitude and longitude. This system is slightly more general than strict UTM. It is based on the Military Grid Reference System (MGRS), which can be extended to cover the poles, allowing well-defined transformations for every latitude and longitude.
This implementation uses the pyproj wrapper for the PROJ.4 Cartographic Projections Library.
Parameters: |
|
---|
Returns: | corresponding geographic_msgs/GeoPoint message. |
---|---|
Todo: | clamp message longitude to [-180..180] |
Returns: | corresponding geometry_msgs/Point message. |
---|---|
Todo: | clamp message longitude to [-180..180] |
Generate UTMPoint from latitude, longitude and (optional) altitude.
Latitude and longitude are expressed in degrees, relative to the WGS84 ellipsoid.
Parameters: |
|
---|---|
Returns: | UTMPoint object. |
Parameters: | msg – geographic_msgs/GeoPoint message. |
---|---|
Returns: | UTMPoint object. |
Find UTM zone and MGRS band for latitude and longitude.
Parameters: |
|
---|---|
Returns: | (zone, band) tuple. |
Raises: | ValueError if lon not in [-180..180] or if lat has no corresponding band letter. |
Todo: | handle polar (UPS) zones: A, B, Y, Z. |