locationtech/spatial4j

Shortest distance between Shape (LineString) and a Point

mst94 opened this issue · 2 comments

mst94 commented

Is it possible to get the distance to the closest segment of a LineString to a Point?

In JTS, it is possible, but in Spatial4J I don't figure it out how to do it exactely.
2023-08-23 14_49_41-Window

I don't think so. Spatial4j is more focused on predicates like intersection, contains, within. There is point-to-point distance via DistanceCalculator but not point to line.

mst94 commented