Set a geo reference
Give a model its position on earth from the Location section of its popup: extract it from IfcSite, IfcMapConversion, an EPSG code or a WKT string, correct it on the map, or write it into the IFC file.
A Geo reference places a model version on earth: a latitude, a longitude, an elevation and a rotation, stored with the Version. The steps below set that stored value and do not change the IFC file; how-to/using-bimworks/set-a-geo-reference#write writes the georeference into the file itself, as a new version. The same calls exist in the SDKs (Set the geo reference).
Before you start#
The model must be processed, and you need write access to it. Know which method applies: an IFC4 model exported with IfcMapConversion carries its own CRS; older models often hold projected coordinates in the placement of IfcSite, in which case you need to know the EPSG code of the system they are in (for example EPSG:28992 for the Dutch RD New). Geo-referencing in IFC explains the three methods.
Steps#
- In the Models tree click the model's name to open its popup, and choose the Location section. The map shows the model's footprint (the Visualization menu switches between the projection and the minimum bounding rectangle), a red marker for the anchor point and a blue marker for the model's local zero. The fields above the map show the current latitude, longitude, elevation (metres) and rotation (degrees counter-clockwise from true north, as the map shows it; a rotation read from an IfcMapConversion is measured against its coordinate system's grid and shown converted).
- Open Extract GeoReference and pick the method:
- Extract from IfcSite (Lat/Lon/Ele) reads the latitude and longitude attributes of
IfcSite. It is quick but rarely accurate, because most exporters do not fill them in carefully. - Extract from IfcMapConversion (>= IFC4) reads the map conversion the model carries. This is the recommended method when the model has one.
- Extract from IfcMapConversion PSet (IFC2X3) reads the same information from the property set some IFC2X3 exporters write.
- Under Site Coordinates, pick the country preset (Hong Kong, Estonia, the Netherlands, Latvia, the United Kingdom, Germany) whose system the
IfcSiteplacement is expressed in, or Custom EPSG Code for any other system (EPSG:followed by the code). - Custom WKT takes a WKT definition for a system that is not in the EPSG registry.
- Get browser location uses your device's position, which is only useful as a rough start.
- Extract from IfcSite (Lat/Lon/Ele) reads the latitude and longitude attributes of
- Correct it. Every extraction is stored immediately and redrawn on the map. Type a better latitude, longitude, elevation or rotation in the fields; each change is saved when you leave the field, and the 3D viewer updates the model in place.
The rotation is applied around the anchor point (the red marker), not around the model's local zero. A value you type is from true north; a georeference you edit here counts as one from true north from then on, without the model turning. Setting a rotation does not change what the IFC file says; the two are combined when the model is placed.
Write it into the IFC file#
The stored value above is BIM.works' own. To make the IFC file carry its position, so that other software reads it too, write an IfcMapConversion into the model. This makes a new version, and needs an IFC4 or later model: convert an IFC2X3 model first with Convert to IFC4… in the menu of its version.
- In the Location section, the line IFC file says what the file holds now: its coordinate system, eastings, northings, height and rotation, or No IfcMapConversion.
- Choose Write to IFC file…. (The same dialog is Set georeference… in the menu of a version.)
- Under Take the values from, pick where the numbers come from:
- This model's map conversion, to change the one the file has;
- Another model…, to copy the map conversion of a model that has one. This is how the discipline models of one project get the georeference of the one that is right: they share an origin, so the same numbers apply. The axis direction is copied exactly;
- The stored georeference, which converts the stored value above into the coordinate system in the first field;
- Enter by hand: the coordinate system (a projected EPSG code, for example
EPSG:28992), the map position of the model's origin in metres, and the rotation of its X axis, counter-clockwise from east.
- Under Apply to, tick the other models of the folder that should get the same georeference. A model that is still IFC2X3 cannot be ticked. A warning on a row means its model context has another world coordinate system, so its origin is not the same point.
- Choose Check. The table shows, per model, the stored georeference now and after the commit, and warnings such as a TrueNorth that points elsewhere. The map shows where each model's origin will be, with a short line along its X axis.
- Enter a comment and choose Commit. Every ticked model gets a new version with the map conversion in its file; the stored georeference of each follows it, an alignment stays. Models that are loaded in the 3D viewer are replaced by their new version.
The statement behind the dialog is GEOREFERENCE (reference/bul#georeference).
Check#
Switch the right panel to Map: the footprint lies where the building stands. In the 3D viewer, the GIS tab can now add a basemap or terrain under the model (Geo mode).