Is there a standard algorithm for finding the shortest distance from a point to an arbitrary extended shape (a MultiPolygon
, in GIS terms — might be concave, might have holes, might be a cluster of islands) on the surface of the Earth?
I'm aware of an algorithm to do this on the Euclidean plane, and I'm aware of an algorithm to find the shortest distance between two points on the surface of the Earth (the "geodesic inverse problem"), but I'm not having any luck with literature searches for point-to-extended-shape.
The best thing I've come up with so far is to project the extended shape into an azimuthal-equidistant projection centered on the point, and then use the Euclidean shortest-distance algorithm, but this is slow and also drags an entire map projection library into the application, which I would prefer to avoid for operational reasons.
If it matters, I don't particularly need to know the closest point on the boundary of the extended shape, just the distance.