Skip to main content

relate_site_elevation

Function relate_site_elevation 

Source
pub fn relate_site_elevation(
    site: &SiteReference,
    map: Option<&ProjectToMap>,
    site_origin_z: f64,
    tolerance: f64,
) -> GeorefResult<SiteElevationCheck>
Expand description

Relate site.ref_elevation to map’s OrthogonalHeight and the target CRS’s VerticalDatum.

site_origin_z is the height of the IfcSite placement origin in the project’s world coordinate system, in metres: 0.0 for a site placed at the world origin. tolerance is in metres, finite and non-negative; SITE_ELEVATION_TOLERANCE_M is the suggested value.

Refuses a non-finite site_origin_z or an invalid tolerance with GeorefError::InvalidParameter, and a map conversion paired with an IFC2X3 site with GeorefError::UnsupportedSchema.