InnerWeb
Skip to main content

Local coordinates and the plant layout when halls are joined

Locations recorded in local metres of one hall, loaded into a 1000 x 500 m plant layout, land in the wrong place and look correct only at first glance. This guide shows how to recognise such a case before the data is loaded, how the conversion to geographic coordinates works and how to check the result on control points.

0.01 m
maximum transformation error on 64 control points
Source: function card: location structure migration
1000 x 500 m
size of the plant view in the described case
Source: function card: location structure migration

Where coordinates from another frame come from

Location coordinates are sometimes recorded in the frame of another view. When each hall once had its own view with its own origin, the locations in those views count metres from a different point than the plant layout does.

Once the halls are joined into one plant, such coordinates go into the common layout without conversion. The result: a pin that stood by a filter in its hall lands several hundred metres away in the plant, or even outside the outline of the building.

How the model stores position

A hall acting as a view can be 1000 x 500 m, with georeferencing (anchor, rotation, scale) and an orthophoto of the plot. Buildings are areas inside the view. Georeferencing describes how local metres relate to the map, and without it the view cannot be a source of position in the plant.

An example of the effect: moving the buildings as separate views deleted the only view with calibration. The editor showed a message about missing georeferencing and the orthophoto switched off. That is why a view with calibration must be treated as an element that is not to be deleted when tidying the structure.

Dimensions of the plant view

Dimensions of the plant viewHorizontal bar chart: view length 1000 m, width 500 m02004006008001000metresView lengthView length: 1000 metres1000View widthView width: 500 metres500
Source: Function card: location structure migration, view of 1000 x 500 m

How to recognise coordinates from another hall before loading

First check whether the source view has georeferencing. A view without georeferencing cannot be a source of position in the plant, so data from such a view must be converted, or a reference point must be set by hand.

Then compare the range of coordinates with the dimensions of the 1000 x 500 m plant. If the values fit the size of one hall and a large part of the plant stays empty, that is a sign that the data comes from the local frame of the hall.

  • Check whether the source view has an anchor, rotation and scale.
  • Compare the range of coordinates with the outline of the building in the plant.
  • Identify three known points and compare their position on the orthophoto.
  • Reject the data if the points lie outside the outline of their own building.

The conversion has one source of truth

The conversion of local metres into geographic coordinates has one source of truth. The migration script must be a 1:1 port of this function, with a correction for the convergence of meridians for the PUWG 1992 system. A simplified version of the conversion of your own will produce an error that is not visible at short distances and grows with the size of the plant.

That is why the script does not invent its own formulas. We copy the function that the editor uses and add the correction for the convergence of meridians. This way a position from the migration and a position drawn by hand in the editor point to the same place.

Test on control points

Verification of the transformation on 64 control points gave a maximum error of 0.01 m after converting the outlines back. The method is simple: convert the outline into geographic coordinates, then back into local metres, and compare with the original.

Repeat this test after every change to the conversion function. If the result rises above the accepted tolerance, do not load the data into the plant until the cause has been explained.

Checklist

Video

Frequently asked questions

Can I delete the view with calibration after the buildings are moved?

No. Moving the buildings as separate views deleted the only view with calibration in the described case, and the orthophoto switched off. A view with georeferencing should stay as the plant's reference frame.

Why can the conversion not be simplified?

Because it must give the same result as the editor. The migration script has to be a 1:1 port of the function, with the correction for the convergence of meridians for PUWG 1992, otherwise the positions will drift apart.

How many control points are enough?

In the described case 64 points were used and a maximum error of 0.01 m was reached. Match the number to the size of the plant, so that the points cover all halls.

What should I do with data from a view without georeferencing?

Do not load it into the plant without conversion. First set a reference point and scale, and only then move the positions.

Check your coordinates before joining the halls

We will review the georeferencing and the coordinate range of your halls together. Book a conversation with the data and safety departments.

Let's talk