Skip to main content

coordinate_operation_for

Function coordinate_operation_for 

Source
pub fn coordinate_operation_for(
    view: &GeorefView<'_>,
    source: EntityId,
) -> GeorefResult<Option<EntityId>>
Expand description

The one coordinate operation whose SourceCRS is source: the HasCoordinateOperation inverse, read in a schema-pinned view.

Ok(None) means source is a valid source with no operation.

ยงErrors

GeorefError::MissingEntity when source is not in the model; GeorefError::WrongType / GeorefError::UnsupportedOperation when it is not an IfcCoordinateReferenceSystemSelect member in the pinned release; GeorefError::RuleViolation when more than one operation names it, or a sub-context has any.