Michael Kirk
Michael Kirk
(reminder that this still needs a changelog entry, but otherwise feel free to merge)
Are you waiting on anything else before merging this @rmanoka? If it's helpful, I can provide the changelog entry if that's the only thing we're waiting on.
Unblocked, since #542 is complete.
> it doesn't file PRs for semver-compatible bumps (e.g. updating to 1.26.2 when Cargo.toml says 1.26.0) more so in a library crate, where the exact versions are the user's choice...
Does anyone have any thoughts on how to go about this? Or have any examples of other implementations?
from http://www.faqs.org/faqs/graphics/algorithms-faq/ > Subject 1.02: How do I find the distance from a point to a line? Has a good euclidean answer (JTS uses this under the hood for `geom_a.distance(geom_b)`)....
I think this only kicks the can down the road a bit, since `closest_point` is itself computed with assumptions on euclidean space. We'd be getting the haversine meter distance to...
I'm thinking we'd need something specially formulated for the spherish model of the earth. Maybe I finally need to read the chamberlain duquette paper? https://trs.jpl.nasa.gov/bitstream/handle/2014/41271/07-0286.pdf
I wasn't familiar with the term before, but "cross track distance" is the distance between a point and a great circle. http://www.movable-type.co.uk/scripts/latlong.html#cross-track https://gis.stackexchange.com/questions/209540/projecting-cross-track-distance-on-great-circle geographiclib (karney geodesics): https://sourceforge.net/p/geographiclib/discussion/1026621/thread/299518a3e4/ Maybe that's useful.
One idea for point_line distance that relies on proj, but otherwise might not introduce too much new machinery: ``` fn haversine_distance(point: Point, line: Line) -> meters { // https://en.wikipedia.org/wiki/Azimuthal_equidistant_projection //...