Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shortest distance between Shape (LineString) and a Point #230

Open
mst94 opened this issue Aug 23, 2023 · 2 comments
Open

Shortest distance between Shape (LineString) and a Point #230

mst94 opened this issue Aug 23, 2023 · 2 comments

Comments

@mst94
Copy link

mst94 commented Aug 23, 2023

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

@mst94 mst94 changed the title Clostest distance between Shape (LineString) and a Point Shortest distance between Shape (LineString) and a Point Aug 23, 2023
@dsmiley
Copy link
Contributor

dsmiley commented Aug 24, 2023

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
Copy link
Author

mst94 commented Aug 24, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants