How can I find the closest edge point to a given point X, where X is a point either on the edge or at a vertex of a polygon? There are lots of answers and ways of finding this for points inside polygons, but I'm looking to find an answer for edge to edge.
- I want to find the closest point on the polygon perimeter from vertex E
- I want to find the closest point on the polygon perimeter from random point on the DE line.
Note: neither of the closest points in this example are on the same edge as either of the two points given, but easily could be in another example.
I'm currently using the Shapely python library for all of my other calculations, but cannot seem to find any way to get to this kind of solution.