pub struct CRS { /* private fields */ }Expand description
Representation of a Coordinate Reference System
Implementations§
Source§impl CRS
impl CRS
Sourcepub fn new(code: &str) -> Result<Self, MyError>
pub fn new(code: &str) -> Result<Self, MyError>
Try constructing a new instance and ensure that CRS has a non-trivial extent of validity which will be later used to validate geometry coordinates.
Sourcepub fn check_point(&self, coord: &[f64]) -> Result<(), MyError>
pub fn check_point(&self, coord: &[f64]) -> Result<(), MyError>
Check if the given point coordinates are w/in the area-of-validity of this.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CRS
impl RefUnwindSafe for CRS
impl !Send for CRS
impl !Sync for CRS
impl Unpin for CRS
impl UnwindSafe for CRS
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