Skip to main content

create_well_known_text

Function create_well_known_text 

Source
pub fn create_well_known_text(
    tx: &mut Transaction,
    model: &Model,
    well_known_text: &str,
    coordinate_reference_system: EntityId,
) -> GeorefResult<EntityId>
Expand description

Stage an IfcWellKnownText: a CRS definition in OGC WKT.

The literal is written as given. WKT is its own grammar and this crate does not parse it: reformatting or normalising the text here would change a definition the authoring tool exported verbatim, and the receiving system is the one that parses it.

ยงErrors

Refuses a blank literal and a coordinate_reference_system that is not an IfcCoordinateReferenceSystem subtype.