pub struct CrsTransform;Expand description
CRS utility functions for Part 2 support
Implementations§
Source§impl CrsTransform
impl CrsTransform
Sourcepub fn supported_crs_uris() -> Vec<String>
pub fn supported_crs_uris() -> Vec<String>
Return the list of CRS URIs natively supported by the server.
Sourcepub fn bbox_to_wgs84(
bbox: [f64; 4],
source_crs: &str,
) -> Result<[f64; 4], FeaturesError>
pub fn bbox_to_wgs84( bbox: [f64; 4], source_crs: &str, ) -> Result<[f64; 4], FeaturesError>
Convert a bbox from source_crs to WGS 84 (CRS84 axis order lon/lat).
- CRS84 / EPSG:4326 / EPSG:4258: identity (axis order normalised to lon/lat)
- EPSG:3857: inverse Web Mercator
- Other CRS URIs: returns
FeaturesError::InvalidCrs
Sourcepub fn is_supported(uri: &str) -> bool
pub fn is_supported(uri: &str) -> bool
Check whether the given URI is known to this server.
Auto Trait Implementations§
impl Freeze for CrsTransform
impl RefUnwindSafe for CrsTransform
impl Send for CrsTransform
impl Sync for CrsTransform
impl Unpin for CrsTransform
impl UnsafeUnpin for CrsTransform
impl UnwindSafe for CrsTransform
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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