New answers tagged

4 votes

QGIS functions: aggregate and array_foreach not working for vertices

You can work around the array/aggregate issue by using nested array_foreach loops. It looks pretty ugly but it spits out the right results for your test dataset! The trick - which I've never tried ...
Tom Brennan's user avatar
  • 4,652
2 votes

QGIS functions: aggregate and array_foreach not working for vertices

First i tried this code, which works and get the countries BUT it's not ordered. Because the the intersection order is ordered by the polygons and not by the nodes. aggregate( layer:= '...
Xeppit's user avatar
  • 1,282
1 vote

Overlap Analysis (Line Data Overlapping Polygons)?

In field calculator you can try to use the follwing expression: length(intersection($geometry, aggregate(layer:='Polygon', aggregate:='collect', expression:=$geometry))) You could in addition use a ...
Xeppit's user avatar
  • 1,282
0 votes

How to calculate total area (or number of items in another layer) of multiple overlapping geometries without double counting in Oracle Spatial?

If you have n polygons, overlapping each other (or not), you should 'disolve' (in gis parlance) the polygons into one - in Oracle spatial this is done with the sdo_geom.sdo_union function: You get one ...
GregStef's user avatar
  • 103
2 votes
Accepted

How to properly perform zonal statistics with overlapping geometries

Looking at the source, the vector features are not dissolved or otherwise modified. Stats are extracted from each individual feature regardless of whether they happen to overlap, which seems to be ...
mikewatt's user avatar
  • 5,083

Top 50 recent answers are included