I have a program that (over a period of 60s) generates reachable volumes at 1s intervals and creates a reachable square at each second as a lat/lon array.
What I need to do is, using this series of 60 rectangles, is generate a single polygon such that all corners of all rectangles exist within that polygon and it covers the least area (the magenta line would be the example in the attached figure).
On approach I thought of would be, for all points in all rectangles, see if those points exist in any other rectangle. If they do then remove that point. Although I am unsure how to then order the remaining points to get a nice single polygon.
The array I have to play with is in the shape:
(60, 4, 2)