๐ Advanced Polygon Editing
This feature allows you to select polygons from any visible overlays and create new foreground geometries based on spatial relationships between them. This works with file-based OGR overlays, spatial database overlays, or combinations of both.
๐น Available Advanced Polygon Operations
You can access these from the Add menu:
Polygon Union
Polygon Intersection
Polygon Difference
Union from Area Overlay
Selecting two polygons from visible overlays and applying one of these operations will create a new polygon in the foreground overlay based on the chosen spatial operation.
๐ Operation Details
1. Spatial Union
Purpose: Combines the total area of two polygons into a single new polygon, without altering the originals.
๐ Steps:
Select Foreground Overlay
Choose the foreground overlay where the new merged polygon will be stored.Select Two Polygons
Click on the first polygon.
Click on the second polygon to confirm selection.
Result:
A new polygon is created (red outline) representing the combined area of both polygons.
The original polygons in their respective overlays remain unchanged.
2. Spatial Intersection
Purpose: Creates a new polygon containing only the overlapping (common) area between two polygons, without changing the originals.
๐ Steps:
Select Foreground Overlay
Choose the foreground overlay where the new intersected polygon will be stored.Select Two Polygons
Click on the first polygon.
Click on the second polygon to confirm selection.
Result:
A new polygon is created (red outline) showing only the shared area between the two selected polygons.
The original polygons in their respective overlays remain unchanged.
3. Spatial Difference ("Cookie Cutting")
Purpose: Creates a new polygon containing only the portion of the first polygon that does not overlap with the second polygon.
๐ Steps:
Select Foreground Overlay
Choose the foreground overlay where the new โcookie-cutโ polygon will be stored.Select Two Polygons (Order Matters!)
First click on the polygon you want to keep part of (source polygon โ usually shown in orange).
Then click on the polygon you want to cut away from the first (cutting polygon โ usually shown with a blue outline).
Result:
A new polygon is created (red outline) showing only the area from the first polygon that does not intersect the second polygon.
The original polygons remain unchanged.
โ Important: If you select polygons in the wrong order, youโll remove the wrong area. Always select the โkeepโ polygon first, then the โcutโ polygon.
๐ ๏ธ Edit Polygon Options (Right-Click Menu)
When editing polygons, right-click to access:
Merge Polygon
Intersect Polygon
Cut with Polygon
Process:
Left-click inside the polygon to select (must overlap or touch current polygon).
On the confirmation dialog, click the green tick to confirm.
Repeat to add more polygons for the current spatial operation.
To change the operation, repeat the selection with the new spatial operation.
Example:
Merge: The base polygon is extended by the area of the added polygon(s).
Cut: The base polygon is reduced by subtracting the overlapping area.
๐ Union from Area Overlay
This option lets you create or edit a polygon, then merge polygons from a selected background overlay before saving.
Adding a New Polygon and Performing Union:
Select your foreground overlay.
Click Add Polygon button.
Draw or snap a polygon, then click Finish (donโt save yet).
Select Union from Area overlay from the Add menu.
Choose a background overlay in the popup and click OK.
The union of your polygon with polygons from the background layer will be constructed and displayed.
Click Save Graphic Record.
Creating a Union from an Existing Polygon and Background Layer:
Select foreground overlay with the existing polygon.
Click Add Polygon, snap to the existing polygon, then Finish (donโt save).
Select Union from Area overlay from the Add menu.
Choose the background overlay and click OK.
Click inside polygons from the background overlay to select them (confirm each with the green tick).
The merged polygon will be displayed.
Click Save Graphic Record.
โ ๏ธ Important Notes
After saving, you can still:
Use Merge Polygon to add missing polygons.
Use Cut with Polygon to remove unwanted parts.
If the source polygon fails the GeometryIsValid test, a warning will appear.
During union, any invalid intersecting polygons in the background overlay are ignored.
Comments
0 comments
Article is closed for comments.