Skip to content
AI Segmentation
QGIS
Guide

Regularize Building Footprints in QGIS: 4 Ways

Published

Building footprints of Sully-sur-Loire over an aerial photo, each filled green, yellow or red by how much Orthogonalize changed its area, with the château and its round towers in red at the top.
Orthogonalize at its default 15° on the OpenStreetMap footprints of Sully-sur-Loire. Red buildings changed area by more than 5%: the château, the courtyard blocks and anything not quite rectangular. Counts cover all 532 buildings of the test area, slightly larger than this view. OSM (ODbL), IGN orthophoto 2023 (Etalab 2.0), QGIS 3.44.8.

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 footprintsMethodWhat you get
Open data or hand-traced, corners a few degrees offMethod 1: Orthogonalize, tolerance 5° to 10°Exact 90° corners, small shape changes
Pixel outlines from a model or from PolygonizeMethod 2: Simplify, then OrthogonalizeFewer vertices, squarer, further from the true outline
Footprints that must follow the streetMethod 3: Parallelizer pluginEach polygon rotated to the nearest edge
A building mask from your own modelMethod 3: GeoAI pluginPolygons orthogonalized while vectorized
Imagery, no footprints yetMethod 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 optionClosest in QGISWhat differs
Right AnglesOrthogonalizeAn angle tolerance, not a distance tolerance
Right Angles and DiagonalsNo native toolOrthogonalize keeps a 45° corner but never snaps to one
Any AnglesSimplify (Douglas-Peucker)Cuts vertices, does not choose edge directions
CircleMinimum enclosing circlesCovers the whole polygon, not a best fit
Alignment FeatureParallelizer pluginFree, from the plugin manager
Compactness ratio for round buildingsRoundnessSame formula: 4π × area / perimeter²
STATUS field for failuresNoneCompare 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.

  1. Open the tool

    Processing > Toolbox, then Vector geometry > Orthogonalize, and pick the footprint layer.

  2. 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.

  3. Run to a temporary layer

    Leave Maximum algorithm iterations at 1,000, run, and toggle the result over the original before you save.

  4. Check the result

    Run Fix geometries, then Check geometry > Overlaps on 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.

Bar chart of corner angles before and after Orthogonalize: 31% of corners within 1° of square before, 80.9% after, and the share over 15° from square falling from 18.6% to 13.3%.
Each corner's distance from 90°, before (grey) and after (blue) Orthogonalize at 15°. The middle bins empty into the first one. The right-hand bar is the corners outside the tolerance, mostly 45° corners and curves, which the tool leaves alone.

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.

Two close views over aerial imagery. Left, the château of Sully-sur-Loire: the white original outline follows the round towers, the red orthogonalized outline cuts into them. Right, a courtyard building whose red outline is much smaller than the white original.
White: the OSM footprint. Red: after Orthogonalize at 15°. The round towers of the château are cut into, and the courtyard building on the right loses 27% of its area because its walls are not at right angles.

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 toleranceCorners within 1° of squareMedian area changeBuildings changed over 5%Invalid outputs
As downloaded31%0
5°62%1.2%920
10°73%2.1%1530
15° (default)81%2.6%1892
30°86%3.8%2308

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 outlinesMedian verticesCorners within 5° of squareOverlap with the true outline (median IoU)Median area changeNeighbour pairs overlapping
As polygonized52Every step is 90°0.940.4%0
Orthogonalize only52No change0.940.4%0
Simplify 0.5 m, then Orthogonalize835%0.923.6%162
Simplify 1 m448%0.922.4%104
Simplify 1 m, then Orthogonalize474%0.867.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%.

The church and town hall block of Sully-sur-Loire over aerial imagery. Before: yellow pixel-staircase outlines. After Simplify 1 m and Orthogonalize: straight yellow outlines that drift off the white dashed original, with spikes on the church and overlaps between houses. (Simplify 1 m + Orthogonalize)
The church and town hall block of Sully-sur-Loire over aerial imagery. Before: yellow pixel-staircase outlines. After Simplify 1 m and Orthogonalize: straight yellow outlines that drift off the white dashed original, with spikes on the church and overlaps between houses. (Pixel outlines)
Pixel outlinesSimplify 1 m + Orthogonalize
Drag to compare
Yellow: the building outlines. White dashes: the OSM footprint they were made from. After the chain, the church grows spikes and the row houses at the bottom left overlap. IGN orthophoto 2023, 160 × 100 m.

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.

  1. Draw a zone and type the object

    Pick the imagery layer, draw a zone, type buildings, then click Detect objects.

  2. Filter in Keep

    Set the Confidence floor and a Size range so sheds and skylights drop out.

  3. 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.

Detected building outlines on aerial imagery, most corners meeting at right angles, with stepped edges along attached roofs.
Detected buildings, close in, before any cleanup. Most corners already meet at 90°. The stepped edges follow real roof lines between attached buildings.

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 footprintsDo thisThen check
Traced from a cadastre, as OSM is in much of FranceOrthogonalize at 5° to 10°Overlaps, and the area of your largest buildings
Hand-digitized, a few degrees offOrthogonalize at 15°Toggle the result over the imagery
Round towers, tanks, silosLeave them out: Roundness above 0.9Minimum enclosing circles if you need a circle
Attached houses that share wallsOrthogonalize at 5°, or not at allOverlaps, every time
Pixel outlines from a maskSimplify at 1 to 2 pixel sizes, then Orthogonalize, or regularize while vectorizingArea change against the mask
Must line up with the streetParallelizerThe 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.

Try AI Agent for free

Keep reading

The same 80 m square of a French town street at 0.2 m, where every parked car is visible, and at 1.5 m, where the cars blur into a few pixels.
AI SegmentationQGISGuide

Detect Objects Using Deep Learning in QGIS

QGIS has no Detect Objects tool, but three plugins do it. Steps for each, worked on parked cars in one French town, and the resolution each model needs.

Lilien AugerLilien Auger
·