Skip to main content

resolve_project_to_map

Function resolve_project_to_map 

Source
pub fn resolve_project_to_map(
    model: &Model,
    id: EntityId,
    project_metres_per_unit: f64,
) -> GeorefResult<ProjectToMap>
Expand description

Resolve a project-to-map coordinate operation and normalize both frames to metres.

project_metres_per_unit is the project’s IfcUnitAssignment length scale. It is explicit here because project units are owned by the caller’s model loading boundary, while MapUnit is owned by the target CRS.

When the header pins IFC4 or IFC4X3 this is resolve_project_to_map_in on that view, so an IFC4X3-only entity in an IFC4 file is refused as undeclared. Without a usable header the IFC4X3 set is accepted unpinned: the attribute layouts coincide (see view.rs), but “not declared in this schema” cannot be told apart.