pub struct GeoReference {
pub crs_name: Option<String>,
pub geodetic_datum: Option<String>,
pub vertical_datum: Option<String>,
pub map_projection: Option<String>,
pub eastings: f64,
pub northings: f64,
pub orthogonal_height: f64,
pub x_axis_abscissa: f64,
pub x_axis_ordinate: f64,
pub scale: f64,
}Expand description
Georeferencing information extracted from IFC model
Fields§
§crs_name: Option<String>CRS name (e.g., “EPSG:32632”)
geodetic_datum: Option<String>Geodetic datum (e.g., “WGS84”)
vertical_datum: Option<String>Vertical datum (e.g., “NAVD88”)
map_projection: Option<String>Map projection (e.g., “UTM Zone 32N”)
eastings: f64False easting (X offset to map CRS)
northings: f64False northing (Y offset to map CRS)
orthogonal_height: f64Orthogonal height (Z offset)
x_axis_abscissa: f64X-axis abscissa (cos of rotation angle)
x_axis_ordinate: f64X-axis ordinate (sin of rotation angle)
scale: f64Scale factor (default 1.0)
Implementations§
Source§impl GeoReference
impl GeoReference
Sourcepub fn has_georef(&self) -> bool
pub fn has_georef(&self) -> bool
Check if georeferencing is present
Sourcepub fn local_to_map(&self, x: f64, y: f64, z: f64) -> (f64, f64, f64)
pub fn local_to_map(&self, x: f64, y: f64, z: f64) -> (f64, f64, f64)
Transform local coordinates to map coordinates
Trait Implementations§
Source§impl Clone for GeoReference
impl Clone for GeoReference
Source§fn clone(&self) -> GeoReference
fn clone(&self) -> GeoReference
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GeoReference
impl Debug for GeoReference
Auto Trait Implementations§
impl Freeze for GeoReference
impl RefUnwindSafe for GeoReference
impl Send for GeoReference
impl Sync for GeoReference
impl Unpin for GeoReference
impl UnsafeUnpin for GeoReference
impl UnwindSafe for GeoReference
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