Skip to main content
2 of 4
added 46 characters in body
Babel
  • 80.4k
  • 15
  • 97
  • 245

For a virtual layer, use this query:

select p1.id1, p2.id2, st_difference(p1.geometry, st_intersection(p1.geometry, p2.geometry)) as geom from polygon1 as p1, polygon2 as p2 
Babel
  • 80.4k
  • 15
  • 97
  • 245