I am trying to calculate areas of overlapping polygons and there will never be more than two polygons. A person will generate a 2 series of coordinates that shape two overlapping polygons. I have limited excel abilities, and I kind of know how to manipulate and use macros but not really program them. Ive spent a few hours trying to get this thing to work but it isnt. I havent tweaked the macros I found on this and other forums, but I have brought them in to use. The macros are the following:
IntersectComplex:
PtInPoly:
My idea was to generate seperate columns with the intersecting points and points found within each others shapes, stack them into one column, order them counterclockwise using angles between the X and Y points and ranking, and calculate the area. It works sometimes but not all the time.
The issues always come up
-A intersection point is missed
-Points get drawn up incorrectly adding or subtracting from the actual area
Attached is an example of the area. Blue and orange lines are overlapping each other, and the grey is the result.
Is there a simpler way to do this?
Bookmarks