Description of the Least Squares Based Building Squaring Algorithm

Description of the algorithm

The squaring operation aims at the enhancement of man-made map features’ orthogonal regularity: the angles that are almost 90° or almost 180° should be exactly set to 90° (and to 180° respectively) to reduce the noise in shape perception. Squaring is a classical map generalization operation and several algorithms exist. This one is based on a least squares adjustment, that was used for map generalization by Harrie and Sester, or for conflation. Linear equations are computed with the (x,y) coordinates of the building vertices as variables. The equations translate the geometrical constraints on segments and angles to force almost right angles to be exactly right, while preserving the general shape of the building. The algorithm is fully descirbed in (Lokhat & Touya 2016).

Examples of generalization

Quite simple buildings from IGN data squared with least squares adjustment

Comparison between two squaring methods: the simple squaring and the least squares adjustment

When to use the algorithm?

The algorithm is dedicated to buildings and other orthogonal man-made map features (such as some sports fields). (Lokhat & Touya 2016) shows that this algorithm is particularly effective on datasets with complex buildings where more simple algorithms fail. Usually, in an agent-based system, it can be coupled with a simple squaring algorithm that is very quick for buildings with few vertices.

See Also