-
Notifications
You must be signed in to change notification settings - Fork 157
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
Header-only polygon_bounding_boxes and linestring_bounding_boxes, make_geometry_id_iterator
utility, and box<T>
class.
#820
Header-only polygon_bounding_boxes and linestring_bounding_boxes, make_geometry_id_iterator
utility, and box<T>
class.
#820
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good. Just questions about computing the keys on the fly and needs document.
cpp/include/cuspatial/experimental/detail/polygon_bounding_boxes.cuh
Outdated
Show resolved
Hide resolved
make_geometry_id_iterator
utility, and box<T>
class.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice additions to iterator_factory.cuh
I think I'll end up using some of them. I have a few questions about GeoArrow n+1
offset arrays and docs comments here and there.
cpp/tests/experimental/spatial/linestring_bounding_boxes_test.cu
Outdated
Show resolved
Hide resolved
… and use for bounding box tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still approving. I think the failure in the python tests are because the input offsets are length n
not n+1
, and that triggers the early return with all 0 results.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One small suggestion, but other than that LGTM 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving python
@gpucibot merge |
Description
cuspatial::box<T>
that has two vertices (defaultvec_2d<T>
), but is generic to work with 3D vertices in the future.make_geometry_id_iterator
iterator to eliminate currentgather/scatter/scan
sequence required to convert polygon offsets into unique polygon IDs for bounding box reduction keys. This fuses with thereduce_by_key
so saves memory.Closes #567
Closes #568
Checklist