Skip to main content

create_rigid_operation

Function create_rigid_operation 

Source
pub fn create_rigid_operation(
    tx: &mut Transaction,
    source_crs: EntityId,
    target_crs: EntityId,
    coordinates: (f64, f64),
    height: Option<f64>,
) -> GeorefResult<EntityId>
Expand description

Stage an IFC4X3 IfcRigidOperation with length coordinates: a translation with no rotation or scale.

FirstCoordinate and SecondCoordinate are IfcMeasureValue, a SELECT, and SameCoordinateType requires both to be IfcLengthMeasure or both IfcPlaneAngleMeasure; an untyped REAL satisfies neither. So they are written typed, as IFCLENGTHMEASURE(..). The reader lowers this form to a translation when the target is an IfcProjectedCRS; for latitude/longitude offsets on an IfcGeographicCRS use create_angular_rigid_operation.

The target is not checked here: IfcRigidOperation carries no TargetCRSOnlyProjected rule.

ยงErrors

Refuses a non-finite coordinate or height.