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

Refactor directed_hausdorff_distance and haversine_distance into GeoSeries Interface #924

Merged

Conversation

isVoid
Copy link
Contributor

@isVoid isVoid commented Feb 14, 2023

Description

Closes #921, closes #920

Also Fixes #917

This PR refactors all functions in distance.py to accept geoseries as input. It also adds two interfaces to GeoSeries: from_points_xy and from_multpoints_xy. Since geospatial data source can vary, these APIs ensures flexibility when constructing a geoseries.

This PR also removes some stale demo files that uses these APIs.

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@isVoid isVoid requested a review from a team as a code owner February 14, 2023 02:19
@isVoid isVoid requested a review from trxcllnt February 14, 2023 02:19
@isVoid isVoid self-assigned this Feb 14, 2023
@github-actions github-actions bot added the Python Related to Python code label Feb 14, 2023
@isVoid isVoid requested review from thomcom and harrism and removed request for trxcllnt February 14, 2023 02:20
@isVoid isVoid mentioned this pull request Feb 14, 2023
3 tasks
@harrism harrism changed the title Refactors directed_hausdorff_distance and haversine_distance into GeoSeries Interface Refactor directed_hausdorff_distance and haversine_distance into GeoSeries Interface Feb 14, 2023
Copy link
Member

@harrism harrism left a comment

Choose a reason for hiding this comment

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

Nice improvement. One question.

python/cuspatial/cuspatial/core/geoseries.py Outdated Show resolved Hide resolved
@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@isVoid isVoid added feature request New feature or request 3 - Ready for Review Ready for review by team breaking Breaking change labels Feb 14, 2023
Co-authored-by: H. Thomson Comer <thomcom@gmail.com>
@isVoid
Copy link
Contributor Author

isVoid commented Feb 14, 2023

/merge

@rapids-bot rapids-bot bot merged commit d4bdb6b into rapidsai:branch-23.04 Feb 14, 2023
@isVoid isVoid removed the feature request New feature or request label Feb 15, 2023
@isVoid isVoid added the improvement Improvement / enhancement to an existing function label Feb 15, 2023
rapids-bot bot pushed a commit that referenced this pull request Feb 15, 2023
Provides public GeoSeries methods to create single-type GeoSeries for linestrings and polygons in addition to the points and multipoints methods added in #924.

Authors:
  - H. Thomson Comer (https://github.com/thomcom)
  - Michael Wang (https://github.com/isVoid)

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

URL: #928
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 - Ready for Review Ready for review by team breaking Breaking change improvement Improvement / enhancement to an existing function Python Related to Python code
Projects
Status: Todo
3 participants