-
Notifications
You must be signed in to change notification settings - Fork 158
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]: Need a libcuspatial count_equal_points(lhs, rhs)
function.
#1020
Comments
Not sure if I understand the input.
|
The output is an allpairs count equals result:
One implementation pseudocode might be:
|
These are interleaved xy buffers. |
So this looks like an all pairs equals count for two point arrays, or two multipoints. Do you just need this for single point array or multipoint array as well? |
I only need it for single point array, I can convert any other geometry type into that as needed. |
So the X and y arrays are not x- and y-coordinates? Can you make the original request example less confusing by not naming them X and y? |
Do you want the count of matches of each point in the LHS to points of the RHS? Or do you just want true/false if each point in the LHS exists in the RHS? Two different algorithms with different costs... |
No, I can see how that is confusing. mp1 and mp2 are multipoint arrays with interleaved xy coordinates. I'm not sure yet if I need the count of matches or if I just need to know if any point in mp1 exists in mp2. I think I need both, but I'm working through implementations and haven't covered them all yet. One example is
Another example is
The second example can be implemented easily in python, but the former example can't be implemented without pythonic iteration. |
For this I think you only need a |
I would think Thrust set operations would be useful for these. |
Is this a new feature, an improvement, or a change to existing functionality?
New Feature
How would you describe the priority of this feature request
Critical (currently preventing usage)
Please provide a clear description of problem you would like to solve.
As I've been implementing binary predicates I've discovered that there are plentiful cases wherein I need the ability to count the number of points in one buffer that are equal to the number of points in another buffer. While numerous equality comparisons are possible and fast in python, I can't without iteration compare a series of points, pairwise,with all other points in a buffer for equality.
For example,
This feature is useful for many binary predicates, and can't be trivially implemented in python.
Describe any alternatives you have considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: