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

[FEA] Pairwise Shortest Line between Linestrings #557

Open
jarmak-nv opened this issue Jun 8, 2022 · 2 comments
Open

[FEA] Pairwise Shortest Line between Linestrings #557

jarmak-nv opened this issue Jun 8, 2022 · 2 comments
Labels
feature request New feature or request

Comments

@jarmak-nv
Copy link
Contributor

Is your feature request related to a problem? Please describe.
cuSpatial as of 22.06 can now generate the minimum distance between two linestrings - it would be a nice addon if it could return the underlying linestring that is measured for distance.

Describe the solution you'd like
Rather than returning the distance between 2 given linestrings, this function would return the coordinates that make up the shortest distance between the two linestrings. In GIS workflows it can be valuable to visualize or work with the shortest line between the two features.

I think the edge cases should likely mirror postGIS:

The function will only return the first shortest line if more than one, that the function finds.

If linestring1 and linestring2 intersects in just one point the function will return a line with both start and end in that intersection-point.

If linestring1 and linestring2 are intersecting with more than one point the function will return a line with start and end in the same point but it can be any of the intersecting points.

The line returned will always start in linestring1 and end in linestring2.

The length of the line this function returns will always be the same as ST_Distance returns for linestring1 and linestring2.

Describe alternatives you've considered
This is a functional mirror to ST_ShortestLine from postGIS: https://postgis.net/docs/ST_ShortestLine.html

@jarmak-nv jarmak-nv added Needs Triage Need team to review and classify feature request New feature or request labels Jun 8, 2022
@github-actions
Copy link

github-actions bot commented Jul 8, 2022

This issue has been labeled inactive-30d due to no recent activity in the past 30 days. Please close this issue if no further response or action is needed. Otherwise, please respond with a comment indicating any updates or changes to the original issue and/or confirm this issue still needs to be addressed. This issue will be labeled inactive-90d if there is no activity in the next 60 days.

@github-actions
Copy link

github-actions bot commented Oct 6, 2022

This issue has been labeled inactive-90d due to no recent activity in the past 90 days. Please close this issue if no further response or action is needed. Otherwise, please respond with a comment indicating any updates or changes to the original issue and/or confirm this issue still needs to be addressed.

@jarmak-nv jarmak-nv moved this to Todo in cuSpatial Nov 3, 2022
@jarmak-nv jarmak-nv removed the Needs Triage Need team to review and classify label Mar 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
Status: Todo
Development

No branches or pull requests

1 participant