cuspatial icon indicating copy to clipboard operation
cuspatial copied to clipboard

[FEA] Make return value order of quadtree_point_to_nearest_polyline match quadtree_point_in_polygon

Open harrism opened this issue 3 years ago • 4 comments

In fixing #489 we noticed the following.

cuspatial::quadtree_point_in_polygon returns two values: offsets of polygons, then offsets of points.
https://github.com/rapidsai/cuspatial/blob/6a34c21ac13708303cda7c2fb9c49fbb42d04ed5/cpp/include/cuspatial/spatial_join.hpp#L94-L96

cuspatial::quadtree_point_to_nearest_polyline returns these in the opposite order. (point offset then polyline offset)

https://github.com/rapidsai/cuspatial/blob/6a34c21ac13708303cda7c2fb9c49fbb42d04ed5/cpp/include/cuspatial/spatial_join.hpp#L139-L145

We should make the order match, or adopt structured data with named fields, which could be done as a part of an API refactor to remove dependency on libcudf (#474).

CC @trxcllnt

harrism avatar Feb 15 '22 22:02 harrism

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[bot] avatar Mar 17 '22 23:03 github-actions[bot]

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.

github-actions[bot] avatar Jun 15 '22 23:06 github-actions[bot]

@trxcllnt would you be able to knock this out while adding the header-only API?

harrism avatar Aug 01 '22 23:08 harrism

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[bot] avatar Sep 01 '22 00:09 github-actions[bot]