Skip to content

Commit 7afb231

Browse files
authored
Avoid polygons overlap (#636)
1 parent 80d9dcd commit 7afb231

14 files changed

+53
-0
lines changed

src/.vitepress/sidebar/en.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ export default {
5555
{ text: 'How to Set Photo Names Format', link: '/gis/photo-names/' },
5656
{ text: 'How to Enable Digitising', link: '/gis/enable_digitising/' },
5757
{ text: 'How to Set Up Snapping for Mergin Maps Mobile App', link: '/gis/snapping/' },
58+
{ text: 'How to Avoid Polygons Overlap', link: '/gis/avoid-overlap/' },
5859
{ text: 'Custom Projections', link: '/gis/proj/' },
5960
{ text: 'Supported Formats', link: '/gis/supported_formats/' }
6061
]

src/field/mobile-features/index.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,13 @@ If snapping is enabled, the crosshairs will turn purple and snap to vertices (le
147147

148148
3. Fill in the attributes and **Save** :heavy_check_mark: the changes
149149

150+
## Avoid polygons overlap
151+
In QGIS, you can set the option to avoid overlapping for polygons. This setting is stored in the <MainPlatformName /> project and used when editing features both in QGIS and the <MobileAppNameShort />.
152+
153+
See [How to Avoid Polygons Overlap](../../gis/avoid-overlap/) for more details.
154+
155+
![Mergin Maps mobile app avoid polygon overlap](../../gis/avoid-overlap/mobile-avoid-polygon-overlap.jpg "Mergin Maps mobile app avoid polygon overlap")
156+
150157
## Deleting features
151158

152159
1. Tap on a feature on the map or find it through [**Layers**](../../field/layers/)

src/gis/avoid-overlap/index.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# How to Avoid Polygons Overlap
2+
3+
For polygon layers, <QGISHelp ver="latest" link="user_manual/working_with_vector/editing_geometry_attributes.html#overlapping-control" text="QGIS" /> 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.
4+
5+
<MobileAppName /> 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.
6+
7+
You can apply this option for the [active layer](#avoid-overlap-on-active-layer) or use [advanced configuration](#follow-advanced-configuration-to-control-overlapping) to define which layers should be avoided when digitising new polygons.
8+
9+
## Avoid overlap on active layer
10+
To use the *Avoid overlap* option in your <MainPlatformName /> project:
11+
1. Open your project in QGIS
12+
2. Make sure that the **Snapping toolbar** is visible in the toolbar panel.
13+
14+
If not, click on the toolbar panel and activate the **Snapping** toolbar.
15+
16+
![Activated Snapping toolbar in QGIS](./qgis-activate-snapping-toolbar.jpg "Activated Snapping toolbar in QGIS")
17+
18+
3. In the **Snapping toolbar**, select the *Avoid overlap on Active Layer* option or [*Follow Advanced Configuration*](#follow-advanced-configuration-to-control-overlapping)
19+
20+
![QGIS Snapping toolbar - Avoid overlap on Active Layer](./qgis-avoid-overlap.jpg "QGIS Snapping toolbar - Avoid overlap on Active Layer")
21+
22+
4. Save and synchronise your project.
23+
24+
Now this option will be used when digitising new polygons both in QGIS and the <MobileAppNameShort />:
25+
26+
![Mergin Maps mobile app avoid polygon overlap](./mobile-avoid-polygon-overlap.jpg "Mergin Maps mobile app avoid polygon overlap")
27+
28+
## Follow advanced configuration to control overlapping
29+
30+
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.
31+
32+
1. Open your project in QGIS
33+
34+
2. In the **Snapping toolbar** use *Open Snapping Options...* to open the **Project Snapping Settings**
35+
![QGIS Snapping toolbar - Open Snapping Options](./qgis-snapping-options.jpg "QGIS Snapping toolbar - Open Snapping Options")
36+
37+
3. In **Project Snapping Settings**, switch to *Advanced Configuration* and choose *Follow Advanced Configuration* for overlap control.
38+
39+
Now select relevant layers in the *Layer* column and tick the *Avoid Overlap* option for those layers that should use this overlap control option.
40+
41+
![QGIS Snapping toolbar - Advanced configuration](./qgis-snapping-options-advanced-config.jpg "QGIS Snapping toolbar - Advanced configuration")
42+
43+
4. Save and synchronise your project
44+
136 KB
Loading
798 KB
Binary file not shown.
244 KB
Loading
364 KB
Binary file not shown.
109 KB
Loading
171 KB
Binary file not shown.
98.7 KB
Loading

0 commit comments

Comments
 (0)