Subtract small polygon from larger one

38 views
Skip to first unread message

Edwin Humphries

unread,
Mar 26, 2025, 8:53:13 PM3/26/25
to QGIS Australia User Group
Hi all: Another newbie question.
As shown in the screenshot, I have a polygon (a parking area, in yellow) from which I want to subtract another (a flower bed, in red). Both have been imported as closed polylines fro a line layer into the polygon layer.
How do I do this, without manually recreating the hole in the polygon?
Thanks in advance.
2025-03-27 11_48_01-_Mona_Vale_Properties — QGIS.png

John Bryant

unread,
Mar 26, 2025, 9:03:14 PM3/26/25
to australian-qg...@googlegroups.com
Hi Edwin, I've found the "Clipper" plugin useful for this... select the overlapping polygon A you want to clip out of polygon B, choose Vector > Clipper > Clipper, delete polygon A, and voila.

image.pngimage.pngimage.png

There might be a nice way to use built-in tools but this has always been my go-to.

Cheers!
John

--
You received this message because you are subscribed to the Google Groups "QGIS Australia User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to australian-qgis-use...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/australian-qgis-user-group/08bb2da5-432c-4851-ab77-d5d3cef8c07dn%40googlegroups.com.

Andrew Jeffrey

unread,
Mar 26, 2025, 9:17:19 PM3/26/25
to australian-qg...@googlegroups.com
An alternative to Johns clipper plugin (thanks btw I didn't know about that one) - is the "Difference" tool in the processing toolbox, in combination with the "Edit features in place" mode.

Two Polygons - make the layer you want to remove the shape from the "Active" layer by selecting it like I have in my screen shot

image.png

Go to you processing toolbox, select the "Edit Feature in place" mode, and then search for the difference tool and select it.
image.png

In the difference tool select the layer which has the shape to be removed 
.
image.png

The result will be your target layer is in an edit session with the object removed. Once you save the edit on that layer it will be permanent.
image.png

End result after clearing selection.
image.png


Edwin Humphries

unread,
Mar 26, 2025, 10:26:02 PM3/26/25
to QGIS Australia User Group
Thanks John. Very simple
Reply all
Reply to author
Forward
0 new messages