Add function to Shape class, ProjectDistanceTo (OtherGeometry)
This is the inverse of the LineInterpolatePoint function ()
Using the GEOS Project call, I have added a method to the Utils class, and then I’m calling that function from within the Shape class.
As such, a polyline Shape can query the distance along it’s edge to another geometry. The other geometry does not have to be on the line, and if the geometry is not on the line, it will return the distance to the point on the line that is nearest to the other geometry.
Using the Utils function, you can pass in a polyline Shape and any other Shape, to query the distance along the polyline to a point on the line that is nearest to the other Shape.
The documentation has also been updated to describe these two new methods.