I have a number of polygons which are in the form of a list of coordinates. Each of these polygons represents an area on a global map and each has a weight.
I need to find the area on the map where this weight is the highest. This means that where polygons overlap the weight will be the sum of the two polygons for the intersection area. I would like to make the calculation as efficient as possible. Any help would be greatly appreciated.
(A , B)
into three polygonsA / B
,B / A
andA intersection B
with the respective weightsweight(A)
,weight(B)
andweight(A) + weight(B)
and refresh the cluster. Repeat this until no further intersections are found and you're done. – Paul