pub enum ProjectionMethod {
Show 23 variants
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,
k0: f64,
false_easting: f64,
false_northing: f64,
},
LambertConformalConicMichigan {
lon0: f64,
lat0: f64,
lat1: f64,
lat2: f64,
ellipsoid_scaling_factor: f64,
false_easting: f64,
false_northing: f64,
},
LambertConformalConic1SPVariantB {
lon0: f64,
lat0: f64,
k0: f64,
lat_false_origin: f64,
false_easting: f64,
false_northing: f64,
},
AlbersEqualArea {
lon0: f64,
lat0: f64,
lat1: f64,
lat2: f64,
false_easting: f64,
false_northing: f64,
},
LambertAzimuthalEqualArea {
lon0: f64,
lat0: f64,
false_easting: f64,
false_northing: f64,
},
LambertAzimuthalEqualAreaSpherical {
lon0: f64,
lat0: f64,
false_easting: f64,
false_northing: f64,
},
ObliqueStereographic {
lon0: f64,
lat0: f64,
k0: f64,
false_easting: f64,
false_northing: f64,
},
HotineObliqueMercator {
latc: f64,
lonc: f64,
azimuth: f64,
rectified_grid_angle: f64,
k0: f64,
false_easting: f64,
false_northing: f64,
variant_b: bool,
},
CassiniSoldner {
lon0: f64,
lat0: 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,
},
ColombiaUrban {
lon0: f64,
lat0: f64,
h0: f64,
false_easting: f64,
false_northing: f64,
},
KrovakNorthOrientated {
lon0: f64,
lat0: f64,
co_latitude_cone_axis: f64,
lat_pseudo_standard_parallel: f64,
k0: f64,
false_easting: f64,
false_northing: f64,
},
KrovakModifiedNorthOrientated {
lon0: f64,
lat0: f64,
co_latitude_cone_axis: f64,
lat_pseudo_standard_parallel: f64,
k0: f64,
false_easting: f64,
false_northing: f64,
},
EqualEarth {
lon0: f64,
false_easting: f64,
false_northing: f64,
},
AmericanPolyconic {
lon0: f64,
lat0: f64,
false_easting: f64,
false_northing: f64,
},
AzimuthalEquidistant {
lon0: f64,
lat0: f64,
false_easting: f64,
false_northing: f64,
},
GuamProjection {
lon0: f64,
lat0: f64,
false_easting: f64,
false_northing: f64,
},
PolarStereographicVariantC {
lon0: f64,
lat_ts: f64,
easting_false_origin: f64,
northing_false_origin: f64,
},
LabordeObliqueMercator {
lon0: f64,
lat0: f64,
azimuth: f64,
k0: 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
LambertConformalConicMichigan
Lambert Conic Conformal (2SP Michigan), EPSG method 1051: LCC 2SP with an ellipsoid scaling factor applied to the semi-major axis.
Fields
LambertConformalConic1SPVariantB
Lambert Conic Conformal (1SP variant B), EPSG method 1102: the cone is defined at the natural origin with a scale factor, while false easting/northing apply at a separate false origin.
Fields
AlbersEqualArea
Albers Equal Area Conic.
Fields
LambertAzimuthalEqualArea
Lambert Azimuthal Equal Area.
Fields
LambertAzimuthalEqualAreaSpherical
Lambert Azimuthal Equal Area (spherical).
Fields
ObliqueStereographic
EPSG Oblique Stereographic (Roussilhe / double stereographic).
Fields
HotineObliqueMercator
Hotine Oblique Mercator / Rectified Skew Orthomorphic.
Fields
CassiniSoldner
Cassini-Soldner.
Fields
Mercator
Standard Mercator (ellipsoidal, distinct from Web Mercator).
Fields
EquidistantCylindrical
Equidistant Cylindrical / Plate Carrée.
Fields
ColombiaUrban
Colombia Urban (EPSG method 1052): plane projection at the elevation
of the mapped city. h0 is the projection plane origin height in
meters.
KrovakNorthOrientated
Krovak (North Orientated), EPSG method 1041: oblique conformal conic with east/north axis orientation, so Czech and Slovak coordinates are negative. Longitudes are referenced to the base CRS’s prime meridian.
Fields
KrovakModifiedNorthOrientated
Krovak Modified (North Orientated), EPSG method 1043: Krovak plus the S-JTSK/05 polynomial distortion correction whose coefficients are defining constants of the EPSG method.
Fields
EqualEarth
Equal Earth (EPSG method 1078): pseudocylindrical equal-area world projection through the authalic latitude.
Fields
AmericanPolyconic
American Polyconic (EPSG method 9818): each parallel projected as the arc of a tangent cone.
Fields
AzimuthalEquidistant
Azimuthal Equidistant (EPSG methods 1125 and 9832): true distance and azimuth from the projection centre.
Fields
GuamProjection
Guam Projection (EPSG method 9831): the simplified azimuthal equidistant used by the Guam and Yap island grids.
Fields
PolarStereographicVariantC
Polar Stereographic variant C (EPSG method 9830): defined by a standard parallel, with the false origin on that parallel instead of at the pole (Terre Adelie grids).
Fields
LabordeObliqueMercator
Laborde Oblique Mercator (EPSG method 9813): the Madagascar grid’s conformal-sphere oblique construction.
Trait Implementations§
Source§impl Clone for ProjectionMethod
impl Clone for ProjectionMethod
Source§fn clone(&self) -> ProjectionMethod
fn clone(&self) -> ProjectionMethod
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ProjectionMethod
Source§impl Debug for ProjectionMethod
impl Debug for ProjectionMethod
Source§impl PartialEq for ProjectionMethod
impl PartialEq for ProjectionMethod
impl StructuralPartialEq 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
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>
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>
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