Regularize Building Footprints in QGIS: 4 Ways
Published

To regularize building footprints in QGIS, run Orthogonalize from the Processing Toolbox, under Vector geometry. It is the closest native match to ArcGIS Pro's Regularize Building Footprint: it moves every corner within 15° of square to exactly 90°. QGIS has no single tool with Esri's four methods, so diagonals, curves and pixel staircases each need their own route.
I ran it on the 532 OpenStreetMap buildings of Sully-sur-Loire, a Loire valley town with a moated château. Exact right angles went from 31% to 81% of corners. The same run changed the area of 189 buildings by more than 5% and made 88 pairs of neighbouring buildings overlap. Square corners have a cost, and this post shows where it lands.
The short answer
| Your footprints | Method | What you get |
|---|---|---|
| Open data or hand-traced, corners a few degrees off | Method 1: Orthogonalize, tolerance 5° to 10° | Exact 90° corners, small shape changes |
Pixel outlines from a model or from Polygonize | Method 2: Simplify, then Orthogonalize | Fewer vertices, squarer, further from the true outline |
| Footprints that must follow the street | Method 3: Parallelizer plugin | Each polygon rotated to the nearest edge |
| A building mask from your own model | Method 3: GeoAI plugin | Polygons orthogonalized while vectorized |
| Imagery, no footprints yet | Method 4: detection (ours) | Walls snapped to 90° and 45° |
What Regularize Building Footprint does in ArcGIS Pro
Esri's tool sits in the 3D Analyst toolbox and needs the 3D Analyst extension at every licence level. It cleans building polygons, often the raw output of a feature extraction, with one of four methods: Right Angles (90° only), Right Angles and Diagonals (45° and 90°), Any Angles, which may use an NVIDIA card, and Circle (the best-fitting circle).
Tolerance caps how far the outline may move, in the layer's units. Diagonal Penalty makes diagonals more or less likely, and an optional Alignment Feature rotates each polygon to the nearest line. A feature that cannot be regularized is copied as it was, with STATUS set to 1.
Here is what each option maps to in QGIS 3.44:
| ArcGIS Pro option | Closest in QGIS | What differs |
|---|---|---|
| Right Angles | Orthogonalize | An angle tolerance, not a distance tolerance |
| Right Angles and Diagonals | No native tool | Orthogonalize keeps a 45° corner but never snaps to one |
| Any Angles | Simplify (Douglas-Peucker) | Cuts vertices, does not choose edge directions |
| Circle | Minimum enclosing circles | Covers the whole polygon, not a best fit |
| Alignment Feature | Parallelizer plugin | Free, from the plugin manager |
| Compactness ratio for round buildings | Roundness | Same formula: 4π × area / perimeter² |
STATUS field for failures | None | Compare areas before and after yourself |
The distance tolerance is the difference that matters most. Esri's tool will not move an edge further than the distance you set. Orthogonalize has no such cap, and in my test one vertex moved 6.9 m. A request for the Esri tool in QGIS has been open on GitHub since March 2022.
The test: 532 buildings in Sully-sur-Loire
I took every OpenStreetMap building inside a 590 × 550 m box over the centre of Sully-sur-Loire (Loiret): 532 footprints, median six vertices each, traced in France mostly from the cadastre. Under them sits the IGN orthophoto at 20 cm, flown on 28 May 2023.
Then I built a second, rough version of the same buildings. I burned each footprint into a 50 cm raster and ran Polygonize on it, which gives the pixel staircase you get from a building mask: median 52 vertices per building instead of 6. Every method below ran on both versions in QGIS 3.44.8.
Method 1: Orthogonalize
Orthogonalize (native:orthogonalize) shifts vertices so every angle becomes a right angle or a straight line. It can also edit features in place, so keep the original layer to compare against.
Open the tool
Processing > Toolbox, thenVector geometry > Orthogonalize, and pick the footprint layer.Set the angle tolerance
Maximum angle tolerance (degrees) defaults to 15. A vertex further than that from 90° or 180° is left alone. On open data, start at 5° to 10°, for reasons the table below shows.
Run to a temporary layer
Leave Maximum algorithm iterations at 1,000, run, and toggle the result over the original before you save.
Check the result
Run
Fix geometries, thenCheck geometry > Overlapson the output. On my run it flagged 269 overlaps where the original had none.
On the footprints as downloaded, it does what it promises. Before the run, 31% of the 3,434 corners were within 1° of square. After it, 81% were. The 45° corners stayed where they were, 71 before and 74 after, because 135° sits outside the tolerance.
What 15° costs
The tool works on each building alone and has no limit on how far a vertex may travel. A wall that meets the street at 80° on purpose is within 15°, so it gets forced to 90° and the whole outline shifts to stay closed. The median vertex moved 25 cm, but 76 buildings moved by more than a metre somewhere.

The round tower in the moat, a 54 m² circle, came back as a lens shape with half its area. The château lost 15%. Attached houses no longer share a wall, which is how 88 pairs of neighbours ended up overlapping by more than 1 m².
Lowering the tolerance keeps most of the gain and far less of the damage:
| Angle tolerance | Corners within 1° of square | Median area change | Buildings changed over 5% | Invalid outputs |
|---|---|---|---|---|
| As downloaded | 31% | 0 | ||
| 5° | 62% | 1.2% | 92 | 0 |
| 10° | 73% | 2.1% | 153 | 0 |
| 15° (default) | 81% | 2.6% | 189 | 2 |
| 30° | 86% | 3.8% | 230 | 8 |
Round buildings should not go in at all. Roundness (native:roundness) found the tower at once: 0.997, when the next building scored 0.82. It missed the château, whose towers sit on a long wall and score 0.11, so look at your landmarks by eye too.
Use it when: footprints are hand-traced or from open data, and you want right angles you can measure off.
Skip it when: buildings share walls and the topology must hold, or the layer holds round buildings you cannot filter out first.
Method 2: Simplify, for pixel outlines
Simplify (native:simplifygeometries) removes vertices. It offers Distance (Douglas-Peucker), Snap to grid and Area (Visvalingam), with a Tolerance in layer units, 1.0 by default. Open Vector geometry > Simplify, keep Distance (Douglas-Peucker), and start from one or two pixel sizes of the source.
On the pixel version, Orthogonalize alone changed nothing. Every step of a staircase is already a right angle, so there is nothing to snap. The usual chain is Simplify, then Orthogonalize, and here is what each step did to the 532 pixel outlines, measured against the footprints they came from:
| Pipeline on the 50 cm pixel outlines | Median vertices | Corners within 5° of square | Overlap with the true outline (median IoU) | Median area change | Neighbour pairs overlapping |
|---|---|---|---|---|---|
| As polygonized | 52 | Every step is 90° | 0.94 | 0.4% | 0 |
| Orthogonalize only | 52 | No change | 0.94 | 0.4% | 0 |
| Simplify 0.5 m, then Orthogonalize | 8 | 35% | 0.92 | 3.6% | 162 |
| Simplify 1 m | 4 | 48% | 0.92 | 2.4% | 104 |
| Simplify 1 m, then Orthogonalize | 4 | 74% | 0.86 | 7.7% | 181 |
IoU is the shared area divided by the combined area, so 1.0 means the outline sits exactly on the original. The chain makes outlines neater and less true. The squarest version, Simplify 1 m then Orthogonalize at 30°, reached 91% square corners with a median area change of 11%.


Use it when: outlines carry far more vertices than the building needs, as after Polygonize, and you can review the result building by building.
Skip it when: you need square corners and true areas together on pixel outlines. Neither tool alone gives you both.
Method 3: Free community plugins
I searched the QGIS plugin registry on 22 October 2026 and found no plugin with Esri's four methods. Two free plugins each cover one part of the job, and both install from Plugins > Manage and Install Plugins.
Parallelizer: Align Polygons and Lines, by Andrii Liekariev, rotates polygons parallel to the nearest road, line or polygon edge, the job of Esri's Alignment Feature. It runs as a batch Processing algorithm, or as a map tool: click a reference street, then click or drag over the footprints to rotate them.
GeoAI, by Qiusheng Wu, regularizes as it vectorizes. In its Semantic Segmentation, Instance Segmentation and Segment Anything panels, the vectorize step offers Regularize (buildings), which orthogonalizes the polygons, with an Epsilon tolerance (2.0 by default) and a Min Area filter. It works on a raster mask, the step between a model's output and a vector layer, not on footprints that are already polygons.
Use it when: footprints must follow the street line (Parallelizer), or you run your own building model in GeoAI and want clean polygons out of it.
Skip it when: you need diagonals or circles on an existing vector layer. Neither plugin sets out to do that.
Method 4: Detection that returns square corners
If the footprints don't exist yet, the cleanup can happen when they are detected. We make AI Segmentation, so this section is about our own tool. It uses its own detection models, tuned for aerial and satellite imagery, and runs them on our servers in Europe, so no graphics card is needed.
Draw a zone and type the object
Pick the imagery layer, draw a zone, type
buildings, then click Detect objects.Filter in Keep
Set the Confidence floor and a Size range so sheds and skylights drop out.
Tick Right angles in Shapes
Right angles snaps walls to 90° and 45° across the whole layer, the closest thing in QGIS to Esri's Right Angles and Diagonals. Then Export polygons writes a GeoPackage.

Most corners arrive square. For our building detection guide we ran Orthogonalize over 190 detected buildings and compared all 1,845 corners: 87.9% were within 1° of square before the run, the same share after, and the median vertex moved 1.7 cm. For scale, the Sully OSM footprints started at 31%. The rest were stepped terrace roofs, where the steps are real. Detection is free for 1.5 km² a month, then €39 a month for 50 km².
Use it when: you have imagery and no footprints, or the open data does not line up with your orthophoto.
Skip it when: the footprints already exist as vectors. Orthogonalize does that job for free.
Which settings for which footprints
| Your footprints | Do this | Then check |
|---|---|---|
| Traced from a cadastre, as OSM is in much of France | Orthogonalize at 5° to 10° | Overlaps, and the area of your largest buildings |
| Hand-digitized, a few degrees off | Orthogonalize at 15° | Toggle the result over the imagery |
| Round towers, tanks, silos | Leave them out: Roundness above 0.9 | Minimum enclosing circles if you need a circle |
| Attached houses that share walls | Orthogonalize at 5°, or not at all | Overlaps, every time |
| Pixel outlines from a mask | Simplify at 1 to 2 pixel sizes, then Orthogonalize, or regularize while vectorizing | Area change against the mask |
| Must line up with the street | Parallelizer | The angle against the kerb |
How I measured this
Everything ran on 22 October 2026 in QGIS 3.44.8, headless PyQGIS on a MacBook. The buildings are the OpenStreetMap ways and relations tagged building inside the box, downloaded the same day (ODbL). A corner is any vertex where the two edges meet at less than 170°. Area change compares each output building with its own original. Overlaps count pairs of neighbours sharing more than 1 m². The pixel version is a test I built, not the output of a real model, so it shows what the tools do to a staircase rather than how good any detector is. One town is one town: a new suburb of rectangular houses would lose far less.
What to remember
QGIS has no single Regularize Building Footprint tool. Orthogonalize matches Esri's Right Angles method, with an angle tolerance instead of a distance cap.
At its default 15°, it took Sully's exact right angles from 31% to 81% of corners, changed 189 of 532 buildings by more than 5% in area, and made 88 pairs of neighbours overlap. At 5°, it doubled the square corners and changed half as many buildings.
Take round buildings out first with Roundness, and check overlaps after.
On pixel outlines, Simplify then Orthogonalize gives neat rectangles that sit further from the real outline: IoU 0.94 down to 0.86 in my test.
Questions people ask
How do I square building polygons in QGIS?
Run Orthogonalize from the Processing Toolbox, under Vector geometry. It moves each vertex within the angle tolerance, 15° by default, to a right angle or a straight line. Lower the tolerance to 5° to 10° on open data, leave round buildings out first, and compare the result with the original before you save.
What is the QGIS equivalent of Regularize Building Footprint?
Orthogonalize for the Right Angles method, Minimum enclosing circles for round buildings, and the Parallelizer plugin for the Alignment Feature parameter. QGIS core has nothing for Right Angles and Diagonals or Any Angles. The ArcGIS Pro tool needs the 3D Analyst extension, while all of these are free.
Why did Orthogonalize make my buildings overlap?
It treats every polygon on its own. Two houses that share a wall get squared separately, and their common wall moves in two different directions. On Sully's 532 buildings that gave 88 overlapping pairs at the default tolerance. A lower tolerance moves less, and Check geometry > Overlaps finds what is left.
Does Orthogonalize work on curved buildings?
No. It only knows right angles and straight lines. A 54 m² round tower in Sully lost half its area and the château lost 15%. Run Roundness first and leave out the features above a threshold you pick: the tower scored 0.997 and ordinary houses about 0.75.
Detect building footprints in QGIS covers detection and filtering from start to finish, what a building footprint is explains why a roof outline is not a ground outline, and QGIS vs ArcGIS Pro compares the two beyond this one tool.
Do it in QGIS by asking for it
AI Agent carries out the task you describe, in your own QGIS project. Free, no card.
, run Orthogonalize from the Processing Toolbox, under 

