pub struct Transformer { /* private fields */ }Expand description
Coordinate transformer that handles transformations between CRS.
Implementations§
Source§impl Transformer
impl Transformer
Sourcepub fn source_crs(&self) -> &Crs
pub fn source_crs(&self) -> &Crs
Returns the source CRS.
Sourcepub fn target_crs(&self) -> &Crs
pub fn target_crs(&self) -> &Crs
Returns the target CRS.
Sourcepub fn transform(&self, coord: &Coordinate) -> Result<Coordinate>
pub fn transform(&self, coord: &Coordinate) -> Result<Coordinate>
Sourcepub fn transform_3d(&self, coord: &Coordinate3D) -> Result<Coordinate3D>
pub fn transform_3d(&self, coord: &Coordinate3D) -> Result<Coordinate3D>
Transforms a 3D coordinate.
Sourcepub fn transform_batch(&self, coords: &[Coordinate]) -> Result<Vec<Coordinate>>
pub fn transform_batch(&self, coords: &[Coordinate]) -> Result<Vec<Coordinate>>
Sourcepub fn transform_bbox(&self, bbox: &BoundingBox) -> Result<BoundingBox>
pub fn transform_bbox(&self, bbox: &BoundingBox) -> Result<BoundingBox>
Auto Trait Implementations§
impl Freeze for Transformer
impl RefUnwindSafe for Transformer
impl Send for Transformer
impl Sync for Transformer
impl Unpin for Transformer
impl UnsafeUnpin for Transformer
impl UnwindSafe for Transformer
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