pub struct TransverseMercator { /* private fields */ }
std
only.Expand description
An implementation of the Transverse Mercator map projection.
This implementation uses the expansions contained within DMA TM 8358.2
, however, 8358.2 has
issues with how the ‘Meridional Distance’ is calculated. As such, to get full proper nanometer
accuracy, the [crate::geo::ellipsoid::DeakinHunterKarneyMeridianCalculator
] is used to calculate meridian arc length.
Using the map center returned by Default is not recommended, as it is unlikely to be useful to your specific application. Recommend ALWAYS setting a map projection center to be within +/- 6 degrees of your chosen area of interest. 6 degrees gives an excellent error factor, and as you get further from the map center, the error increases exponentially.
Implementations§
Trait Implementations§
Source§impl Clone for TransverseMercator
impl Clone for TransverseMercator
Source§fn clone(&self) -> TransverseMercator
fn clone(&self) -> TransverseMercator
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for TransverseMercator
impl Debug for TransverseMercator
Source§impl Default for TransverseMercator
impl Default for TransverseMercator
Source§impl Projection for TransverseMercator
impl Projection for TransverseMercator
Source§fn project_to_cartesian(
&self,
coord: &EllipticalCoordinate,
) -> CartesianCoordinate
fn project_to_cartesian( &self, coord: &EllipticalCoordinate, ) -> CartesianCoordinate
Projects (Lat, Lon, Alt) into TM (X-East, Y-North, Z-Up)
Source§fn project_to_elliptical(
&self,
coord: &CartesianCoordinate,
) -> EllipticalCoordinate
fn project_to_elliptical( &self, coord: &CartesianCoordinate, ) -> EllipticalCoordinate
Projects TM (X-East, Y-North, Z-Up) into (Lat, Lon, Alt)