IFClite TypeScript API
    Preparing search index...

    Function georeferencingLevels

    @ifc-lite/georef-check — diagnose what is wrong with a model's georeferencing and say how to fix it. diagnoseGeoreference is a pure function from GeorefFacts to a GeorefReport; collectGeorefFacts reads those facts from a parsed IfcDataStore.

    • Levels of Georeferencing present in the file, per their published definition (Clemen & Görne 2019; the IFCGeoRefChecker documentation, https://github.com/dd-bim/City2BIM/wiki/IFCGeoRefChecker; restated by Jaud & Clemen, ISPRS Annals X-4/W5-2024). Each level stands on its own:

      • 10: an IfcPostalAddress referenced by an IfcSite or IfcBuilding;
      • 20: an IfcSite with RefLatitude and RefLongitude;
      • 30: a location or rotation stored in the placement of a spatial structure element whose IfcLocalPlacement has an empty PlacementRelTo (the checker's test: a Location coordinate other than zero). No distance rule: the level says where the value is stored, not that it is a map coordinate (see GeorefIndicators.placementAtMapMagnitude);
      • 40: the 3D model context's WorldCoordinateSystem off the origin, or an authored TrueNorth other than +y;
      • 50: an IfcMapConversion (or its IFC4X3 subtype IfcMapConversionScaled) onto a declared CRS. Only possible from IFC4: an IFC2X3 ePSet_MapConversion is the documented workaround, not this level (GeorefIndicators.ePSetConvention), and an IFC4X3 IfcRigidOperation is not an IfcMapConversion (GeorefIndicators.rigidOperation).

      Parameters

      Returns GeorefLevel[]