---
title: Geo-referencing in IFC
summary: The three ways an IFC file can say where a building is, what BIM.works reads from each, how the geo reference is stored, and what can go wrong.
order: 90
see-also: [explanation/alignment, how-to/geo, how-to/geo/get-the-geo-reference, how-to/geo/set-the-geo-reference, how-to/geo/extract-from-epsg-or-wkt, how-to/using-bimworks/set-a-geo-reference, how-to/viewer3d/geo-mode]
terms: [geo-reference, anchor-point, crs, wkt, bim-context, ifc-schema, version, gis-layer, alignment]
---

# Geo-referencing in IFC

A building model has a local origin somewhere near the project; the world has latitude and longitude. Geo-referencing is the link between the two, and IFC offers three different ways to express it, of varying precision and age. This page explains what each carries, what BIM.works extracts from it and when, and why a [[term:geo-reference]] in BIM.works is a pair — coordinates plus an anchor point — stored per version. The tasks themselves are in [[page:how-to/geo]].

## What a geo reference is

In BIM.works a geo reference has five numbers and a name: a coordinate reference system (an EPSG code), latitude, longitude, elevation and a rotation in degrees — how far the model's Y axis turns away from north. On its own that fixes a point on Earth; the [[term:anchor-point]], stored beside it in model coordinates, says which point of the model sits there. The pair is stored per [[term:version]], because a revision may move or be re-exported from a differently placed project, along with the EPSG code the reference was originally expressed in.

Reading it back converts to any target [[term:crs]], WGS 84 latitude and longitude by default. Internally BIM.works keeps the numbers as extracted and converts on demand with the EPSG registry, which is why the stored `original_epsg` matters: a Dutch model referenced in RD (EPSG:28992 or the compound EPSG:7415) is transformed, not re-interpreted, when a GIS layer in Web Mercator needs it.

## Three ways IFC carries it

**Latitude and longitude on the site.** Every schema since IFC2X3 gives `IfcSite` three attributes: `RefLatitude` and `RefLongitude` as lists of degrees, minutes, seconds and optionally millionths of a second, and `RefElevation`. This is the oldest and most widely written method, and the least precise: without the fourth component a second of arc is thirty metres, and the values are often left at an authoring tool's default. BIM.works reads all four components when present, takes the site's placement rotation when the site sits at the origin, and marks the result as WGS 84 with the site origin as anchor.

**A projected coordinate system in the site placement.** Surveyed projects place `IfcSite` (or the whole project) at real eastings and northings — six- and seven-digit coordinates in the national grid — without saying which grid. The numbers are precise; the CRS is implicit. BIM.works can interpret such a placement in a CRS you supply, as an EPSG code or as [[term:wkt|WKT]], and can also *guess* the CRS from the magnitude of the coordinates against the known extents of projected systems, which is what the automatic extraction does. Regional defaults for this case are what the [[term:bim-context]] provides.

**`IfcMapConversion` and `IfcProjectedCRS`.** IFC4 added a proper answer: the project's geometric context refers to an `IfcMapConversion` that names the target `IfcProjectedCRS` (with an EPSG name and a map unit) and gives eastings, northings, orthogonal height, a scale, and the X axis direction as abscissa and ordinate — a complete, precise, machine-readable transform. This is the method to ask for from authoring tools that can write IFC4, and the one BIM.works reads first. IFC2X3 has no such entity, so the community defined a workaround: a property set `ePset_MapConversion` on `IfcSite` with the same fields as properties. BIM.works reads that too.

## What is extracted, and when

Extraction happens at upload, according to the token's [[term:bim-context]]: the `DEFAULT` context tries `IfcMapConversion` and falls back to the site's latitude and longitude; the `NL`, `MKM`, `HONG_KONG` and `GB` contexts additionally interpret a bare site placement in their national grid (EPSG:7415, 3301, 2326 and 27700). Whatever is found becomes the version's geo reference.

When the automatic result is wrong or absent, the same extractions can be run on demand and their result reviewed before it is stored: from the site's latitude and longitude, from `IfcMapConversion`, from the `ePset_MapConversion` workaround, from the site placement in a CRS you name by EPSG code or WKT, and the automatic guess. Each returns a geo reference, an anchor point and, where it knows one, the original EPSG code; storing it is a separate call, so the UI can show the result on the map first. [[page:how-to/geo/extract-from-epsg-or-wkt]] and [[page:how-to/using-bimworks/set-a-geo-reference]] walk through it. `IfcMapConversion` extraction refuses IFC2X3 files, because the entity does not exist in that [[term:ifc-schema]]; the property-set variant is the IFC2X3 path.

## Anchor point and rotation

Where the anchor lands depends on the method. Site latitude and longitude anchor the site origin; `IfcMapConversion` anchors the project origin, since its eastings and northings are the offset of that origin; the EPSG and WKT extractions anchor the site placement itself. A hand-set geo reference takes both together. Moving one without the other moves the model on the map, which is the usual cause of a building that is "a few hundred metres off": the coordinates were right for a different anchor.

Rotation comes from the X axis direction of the map conversion (`atan2(XAxisOrdinate, XAxisAbscissa)`) or from the site placement's `RefDirection`. Many files already have north-up geometry and a rotation of zero; some have the rotation baked into the placement, in which case extraction reports zero to avoid applying it twice. Elevation is the orthogonal height of the map conversion or the site's `RefElevation`, in metres after unit conversion; the datum question — whether a source's heights are ellipsoidal or above the geoid — surfaces when models meet terrain and 3D Tiles, and is handled per GIS layer rather than per model.

## Precision and pitfalls

The methods differ in what they can express. Latitude and longitude alone cannot distinguish a WGS 84 position from one in the national datum a survey used; the difference is metres, which is invisible on a map and fatal in a clash with terrain. A site placement without a CRS is exact numbers with an unknown meaning; the automatic guess works because the extents of projected systems rarely overlap for a given magnitude, but a country with several zones can fool it, and a model placed at 0,0 has nothing to guess from. `IfcMapConversion` avoids all of that when it is written correctly, and BIM.works honours its map unit and axis order; its `Scale` is not applied (the map unit already covers the unit ratio it carries; a grid scale factor beyond that is ignored), and `TrueNorth` on the context is ignored in favour of the X axis direction.

Units follow the IFC 4.3 reading, which is also how BIM.works writes a map conversion: eastings, northings and orthogonal height are in the map unit of the `IfcProjectedCRS` (in the project's length unit when it names none), and `Scale` takes a project length to the map unit, grid scale factor included. A millimetre model on a metre map therefore has a `Scale` of 0.001.

Two habits keep integrations robust: store the geo reference explicitly after checking it, rather than relying on what the upload found, and keep the `original_epsg` so a later conversion starts from the right system.

A model whose file has no georeference, or a wrong one, can get one written: the `GEOREFERENCE` statement puts an `IfcMapConversion` with an `IfcProjectedCRS` into an IFC4 model as a new version, and the stored geo reference follows it ([[page:how-to/using-bimworks/set-a-geo-reference#write]]).

## From geo reference to GEO mode

The 3D viewer has two placement modes. In LOCAL mode every model is placed by its own coordinates, which is right for the discipline models of one project that share an origin. In GEO mode every loaded model must have a geo reference; the viewer picks one as reference, lays a local east-north-up plane through its anchor and places every other model by the difference in geo position — all client-side, from the stored references. That is where [[term:gis-layer|GIS layers]] come in: map imagery, terrain and 3D Tiles are positioned on the same plane, so a correctly referenced model stands on its plot. [[page:how-to/viewer3d/geo-mode]] shows the switch; [[page:explanation/alignment]] explains the matrix that corrects models the geo reference cannot.
