Skip to content

How to Avoid Polygons Overlap

For polygon layers, QGIS DocumentationQGIS offers options to control the overlapping. In the Snapping toolbar, you can set if you want to allow or avoid overlaps when digitising new features.

Mergin Maps mobile app follows this setting: if you create a polygon that overlaps existing geometries in the layer, the polygon will be cropped and snapped to the existing features.

You can apply this option for the active layer or use advanced configuration to define which layers should be avoided when digitising new polygons.

Avoid overlap on active layer

To use the Avoid overlap option in your Mergin Maps project:

  1. Open your project in QGIS

  2. Make sure that the Snapping toolbar is visible in the toolbar panel.

    If not, click on the toolbar panel and activate the Snapping toolbar.

    Activated Snapping toolbar in QGIS

  3. In the Snapping toolbar, select the Avoid overlap on Active Layer option or Follow Advanced Configuration

    QGIS Snapping toolbar - Avoid overlap on Active Layer

  4. Save and synchronise your project.

Now this option will be used when digitising new polygons both in QGIS and the mobile app:

Mergin Maps mobile app avoid polygon overlap

Follow advanced configuration to control overlapping

It is also possible to set advanced configuration to control overlapping of multiple polygon layers. This is useful if you want to digitise polygons that will be cropped and snapped to existing features from multiple layers.

  1. Open your project in QGIS

  2. In the Snapping toolbar use Open Snapping Options... to open the Project Snapping SettingsQGIS Snapping toolbar - Open Snapping Options

  3. In Project Snapping Settings, switch to Advanced Configuration and choose Follow Advanced Configuration for overlap control.

    Now select relevant layers in the Layer column and tick the Avoid Overlap option for those layers that should use this overlap control option.

    QGIS Snapping toolbar - Advanced configuration

  4. Save and synchronise your project