Remove whole polygons intersecting a different feature layer of polygons with a certain attribute type, except when OSM classifies them as footway
Hi everyone,
I’m working in QGIS and struggling with a spatial logic issue. I’ll try to describe it clearly.
Data I have:
- Parcels polygons (that includes the streets but is not labeled as such to differentiate between whether street or cadastral building plot)
- Street polygons from another separate feature layer (with an attribute type = 'street')
- OSM roads layer (lines) with highway classification
What I want to do:
I want to delete entire parcel polygons if they intersect street polygons (type = 'street').
BUT:
If that same street polygon corresponds to an OSM road classified as:
footway, path, pedestrian, steps
then I do NOT want to delete the parcel.
So logically:
The problem:
If I use the tool Difference, QGIS cuts the parcel geometry instead of deleting the whole feature.
If I use Select by Location (intersects), it often selects too many parcels because of shared boundaries.
So I need a way to:
Remove entire features (not cut geometry)
Apply a spatial condition involving three layers
Include an exclusion condition based on OSM road type
What I’ve tried:
Difference: cuts polygons (not desired)
Select by location (intersects): too many parcels selected
Extracting OSM footways and subtracting them from street polygons first: partially works but gets messy
My question:
What is the cleanest way in QGIS to:
Remove parcel polygons that intersect street polygons from a different layer
But ignore those street areas that correspond to OSM footways
Any suggestions or workflow ideas would be greatly appreciated
Image example:
The cut out areas from the pink polygons, are according to the street parcels, streets, but according to OSM "path", so I just want to ignore the street and keep original parcel boundary; however if OSM is something like highway and street parcel is also street, I wanna delete the whole parcel entirely.
Processing img 5lu2wsasmqjg1...
Posted Feb 15, 2026, 10:53 PM UTC