[Qgis-user] Calculate intersecting area of two layers in a virtual field. Context of @geometry in overlay_intersects()

2024-04-12 Thread Klaus Affeldt via QGIS-User
Hello Abi, good hint. Especially if you have large datasets one should better use static processes instead of the dynamic overlay functions. Mit freundlichen Grüßen Ihre PV ANSPERGER mbH Klaus Affeldt Zentrale Kamp-Lintfort Südstraße 25 47475 Kamp-Lintfort Tel. +49 2842 9635-14 https://www.an

[Qgis-user] Calculate intersecting area of two layers in a virtual field. Context of @geometry in overlay_intersects()

2024-04-10 Thread Abi Mansley via QGIS-User
Hello List, Hello Bruno and Klaus - (Long time lurker, first time poster) Easy way to get the area of intersecting polygons is to do the "union" from the vector drop down menu. Make sure there is something in the attribute table that helps you know which layer is which. Then you get a layer whi

[Qgis-user] Calculate intersecting area of two layers in a virtual field. Context of @geometry in overlay_intersects()

2024-04-05 Thread Bruno Streit via QGIS-User
[Qgis-user] Calculate intersecting area of two layers in a > virtual field. Context of @geometry in overlay_intersects() > Message-ID: <5bcb1461d75f470bb86c03fc07b2c...@ansperger.de> > Content-Type: text/plain; charset="iso-8859-1" > > Hello Bruno, >

[Qgis-user] Calculate intersecting area of two layers in a virtual field. Context of @geometry in overlay_intersects()

2024-04-04 Thread Klaus Affeldt via QGIS-User
Hello Bruno, try it the other way around: coalesce( area( intersection( @geometry, collect_geometries( overlay_intersects( 'forest', @geometry ) ) ) ), 0 ) In addition you can use the inner part in the geometry generator. So yo

[Qgis-user] Calculate intersecting area of two layers in a virtual field. Context of @geometry in overlay_intersects()

2024-04-04 Thread Bruno Streit via QGIS-User
Dear list Great, how powerful expressions are in QGIS! I have two polygon layers, one with parcels and one with forests. In a virtual field of the layer parcels I'm trying to calculate the area covered with forest. I can sum the area of intersecting forests in a virtual field with the follwing