Skip to content

Replace cuspatial#681

Merged
rapids-bot[bot] merged 10 commits intorapidsai:branch-25.06from
AjayThorve:replace-cuspatial
May 6, 2025
Merged

Replace cuspatial#681
rapids-bot[bot] merged 10 commits intorapidsai:branch-25.06from
AjayThorve:replace-cuspatial

Conversation

@AjayThorve
Copy link
Copy Markdown
Member

Since cuspatial is being discontinued, We'd like to remove the dependency on cuspatial for the point-in-polygon method used in cuxfilter, specifically for lasso selection.

This PR fixes #678.

cc @jakirkham @bdice

@AjayThorve AjayThorve requested review from a team as code owners May 2, 2025 23:40
@AjayThorve AjayThorve requested a review from jameslamb May 2, 2025 23:40
@AjayThorve AjayThorve added non-breaking Non-breaking change feature request New feature or request improvement Improvement / enhancement to an existing function and removed feature request New feature or request labels May 2, 2025
Column name for the y-coordinates of the points.
polygon_coords : list of tuples or similar array-like
Coordinates of the polygon vertices, e.g., [(x1, y1), (x2, y2), ...].
The polygon should be closed.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"closed" -- does this mean that the last vertex coordinates must be equal to the first vertex coordinates -- or that it assumes there is a line segment between the last and first vertex?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, closed here in this context means first and last vertex coordinates must be equal. The way lasso selection is setup in cuxfilter, the polygon will always be closed.

output dashboard

Comment thread python/cuxfilter/charts/core/non_aggregate/utils.py
Comment thread python/cuxfilter/charts/core/non_aggregate/utils.py Outdated
Comment thread python/cuxfilter/charts/core/non_aggregate/utils.py Outdated
Comment thread python/cuxfilter/tests/charts/core/non_aggregate/test_utils.py Outdated
@bdice
Copy link
Copy Markdown
Contributor

bdice commented May 6, 2025

@AjayThorve Please also remove cuSpatial references from these files:

... and grep for anything else, please!

@AjayThorve AjayThorve requested a review from a team as a code owner May 6, 2025 19:29
@review-notebook-app
Copy link
Copy Markdown

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@github-actions github-actions bot added the ci label May 6, 2025
Copy link
Copy Markdown
Member

@exactlyallan exactlyallan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Copy Markdown
Contributor

@bdice bdice left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing! Thank you so much.

@jakirkham
Copy link
Copy Markdown
Member

/merge

@rapids-bot rapids-bot bot merged commit 737f9c8 into rapidsai:branch-25.06 May 6, 2025
35 checks passed
@jakirkham
Copy link
Copy Markdown
Member

Thanks all! 🙏

bdice added a commit to rapidsai/workflows that referenced this pull request May 6, 2025
cuSpatial will not be published in 25.06:
https://docs.rapids.ai/notices/rsn0045/

This PR drops cuSpatial from the nightly builds/tests.

Depends on rapidsai/cuxfilter#681 and
rapidsai/integration#757.
rapids-bot bot pushed a commit that referenced this pull request Jun 18, 2025
Previously cuSpatial was a dependency of cuxfilter. However the logic was rewritten to drop cuSpatial and drop the dependency in PR ( #681 ) as part of 25.06. However a few cuSpatial references were either missed or snuck back in 25.08. So this cleans them up

Authors:
  - https://github.com/jakirkham

Approvers:
  - Ajay Thorve (https://github.com/AjayThorve)
  - Bradley Dice (https://github.com/bdice)

URL: #700
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci conda improvement Improvement / enhancement to an existing function non-breaking Non-breaking change Python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEA] Remove cuspatial dependency for point-in-polygon in cuxfilter

4 participants