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] polyline -> linestring? #520

Closed
isVoid opened this issue May 5, 2022 · 6 comments · Fixed by #788
Closed

[FEA] polyline -> linestring? #520

isVoid opened this issue May 5, 2022 · 6 comments · Fixed by #788
Assignees
Labels
feature request New feature or request

Comments

@isVoid
Copy link
Contributor

isVoid commented May 5, 2022

In general, polyline and linestring both refers to a data structure that contains multiple points with the line segments that connect the points. Linestring is standardized in GIS systems through OGC-SFS and provides a lot more relevant search results in google search as compared to search with polyline.

After introduction of #510 there will be two different names of the same concept. I would propose naming polyline with linestring in the code base to avoid confusion.

@isVoid isVoid added feature request New feature or request Needs Triage Need team to review and classify labels May 5, 2022
@harrism
Copy link
Member

harrism commented May 10, 2022

Did "polyline" already exist in the codebase?

@isVoid
Copy link
Contributor Author

isVoid commented May 10, 2022

Yes, in cpp:

std::unique_ptr<cudf::table> compute_polyline_bounding_boxes(cudf::column_view const& poly_offsets,

std::unique_ptr<cudf::table> quadtree_point_to_nearest_polyline(

in python:

def polyline_bounding_boxes(poly_offsets, xs, ys, expansion_radius):

def quadtree_point_to_nearest_polyline(

@isVoid
Copy link
Contributor Author

isVoid commented May 10, 2022

Linestring isn't the first time showing up in the code base either:

elif isinstance(geometry, LineString):

@github-actions
Copy link

github-actions bot commented Jun 9, 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.

@thomcom
Copy link
Contributor

thomcom commented Jun 13, 2022

I support this renaming. I think polyline is possibly older, and has moved toward linestring. Primarily I'm pretty sure it just heralds from a slightly different GIS community than ours. Linestring it is, for me.

@github-actions
Copy link

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.

@jarmak-nv jarmak-nv moved this to Todo in cuSpatial Aug 2, 2022
@harrism harrism removed the Needs Triage Need team to review and classify label Aug 24, 2022
@harrism harrism self-assigned this Oct 24, 2022
@harrism harrism moved this from Todo to In Progress in cuSpatial Nov 8, 2022
@harrism harrism moved this from In Progress to Review in cuSpatial Nov 8, 2022
@rapids-bot rapids-bot bot closed this as completed in #788 Nov 9, 2022
rapids-bot bot pushed a commit that referenced this issue Nov 9, 2022
Replaces all uses of "polyline" (and abbreviations) globally in cuspatial with "linestring" for consistency.  

Fixes #520

Authors:
  - Mark Harris (https://github.com/harrism)

Approvers:
  - Michael Wang (https://github.com/isVoid)

URL: #788
Repository owner moved this from Review to Done in cuSpatial Nov 9, 2022
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: Done
Development

Successfully merging a pull request may close this issue.

3 participants