pub struct CrsTransformer { /* private fields */ }Expand description
Transformer for coordinate reference system conversions
This is a placeholder structure. In a full implementation, this would integrate with oxigdal-proj or proj4rs for actual transformations.
Implementations§
Source§impl CrsTransformer
impl CrsTransformer
Sourcepub fn from_common(source: CommonCrs, target: CommonCrs) -> Result<Self>
pub fn from_common(source: CommonCrs, target: CommonCrs) -> Result<Self>
Creates a transformer from common CRS types
Sourcepub fn transform_coordinate(&self, coord: &Coordinate) -> Result<Coordinate>
pub fn transform_coordinate(&self, coord: &Coordinate) -> Result<Coordinate>
Sourcepub fn transform_coordinates(
&self,
coords: &[Coordinate],
) -> Result<Vec<Coordinate>>
pub fn transform_coordinates( &self, coords: &[Coordinate], ) -> Result<Vec<Coordinate>>
Transforms multiple coordinates efficiently
Sourcepub fn transform_point(&self, point: &Point) -> Result<Point>
pub fn transform_point(&self, point: &Point) -> Result<Point>
Transforms a point
Sourcepub fn transform_linestring(
&self,
linestring: &LineString,
) -> Result<LineString>
pub fn transform_linestring( &self, linestring: &LineString, ) -> Result<LineString>
Transforms a linestring
Sourcepub fn transform_polygon(&self, polygon: &Polygon) -> Result<Polygon>
pub fn transform_polygon(&self, polygon: &Polygon) -> Result<Polygon>
Transforms a polygon
Sourcepub fn transform_geometry(&self, geometry: &Geometry) -> Result<Geometry>
pub fn transform_geometry(&self, geometry: &Geometry) -> Result<Geometry>
Transforms a geometry
Auto Trait Implementations§
impl Freeze for CrsTransformer
impl RefUnwindSafe for CrsTransformer
impl Send for CrsTransformer
impl Sync for CrsTransformer
impl Unpin for CrsTransformer
impl UnsafeUnpin for CrsTransformer
impl UnwindSafe for CrsTransformer
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