pub enum ProjectionMethod {
WebMercator,
TransverseMercator {
lon0: f64,
lat0: f64,
k0: f64,
false_easting: f64,
false_northing: f64,
},
PolarStereographic {
lon0: f64,
lat_ts: f64,
k0: f64,
false_easting: f64,
false_northing: f64,
},
LambertConformalConic {
lon0: f64,
lat0: f64,
lat1: f64,
lat2: f64,
false_easting: f64,
false_northing: f64,
},
AlbersEqualArea {
lon0: f64,
lat0: f64,
lat1: f64,
lat2: f64,
false_easting: f64,
false_northing: f64,
},
Mercator {
lon0: f64,
lat_ts: f64,
k0: f64,
false_easting: f64,
false_northing: f64,
},
EquidistantCylindrical {
lon0: f64,
lat_ts: f64,
false_easting: f64,
false_northing: f64,
},
}Expand description
All supported projection methods with their parameters.
Angle parameters are stored in degrees. Conversion to radians happens at projection construction time (once), not per-transform.
Variants§
WebMercator
Web Mercator (EPSG:3857) — spherical Mercator on WGS84 semi-major axis.
TransverseMercator
Transverse Mercator (includes UTM zones).
Fields
PolarStereographic
Polar Stereographic.
Fields
LambertConformalConic
Lambert Conformal Conic (1SP or 2SP).
Fields
AlbersEqualArea
Albers Equal Area Conic.
Fields
Mercator
Standard Mercator (ellipsoidal, distinct from Web Mercator).
Fields
EquidistantCylindrical
Equidistant Cylindrical / Plate Carrée.
Trait Implementations§
Source§impl Clone for ProjectionMethod
impl Clone for ProjectionMethod
Source§fn clone(&self) -> ProjectionMethod
fn clone(&self) -> ProjectionMethod
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProjectionMethod
impl Debug for ProjectionMethod
impl Copy for ProjectionMethod
Auto Trait Implementations§
impl Freeze for ProjectionMethod
impl RefUnwindSafe for ProjectionMethod
impl Send for ProjectionMethod
impl Sync for ProjectionMethod
impl Unpin for ProjectionMethod
impl UnsafeUnpin for ProjectionMethod
impl UnwindSafe for ProjectionMethod
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more