Skip to main content

resolve_operation_source

Function resolve_operation_source 

Source
pub fn resolve_operation_source(
    view: &GeorefView<'_>,
    operation: EntityId,
) -> GeorefResult<OperationSource>
Expand description

Read and validate the SourceCRS of the coordinate operation operation in a schema-pinned view.

ยงErrors

GeorefError::WrongType when operation is not an IfcCoordinateOperation, or its source is not a member of IfcCoordinateReferenceSystemSelect; GeorefError::UnsupportedOperation when either type is not declared in the pinned release (an IfcGeographicCRS under IFC4); GeorefError::MissingAttribute / GeorefError::InvalidAttribute for an unset or non-reference SourceCRS; GeorefError::MissingEntity for a dangling one; GeorefError::RuleViolation for a sub-context source (NoCoordOperation) or a source with more than one operation (HasCoordinateOperation).