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 of pairwise_linestring_distance to use multilinestring_range, adds support to multilinestring distance #755

Conversation

isVoid
Copy link
Contributor

@isVoid isVoid commented Oct 28, 2022

Description

Note, this is the first part of pairwise_linestring_distance refactoring, part 1 of PR: #753

Depends on #752

Contributes to #706, #703

Closes #745

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 added 3 - Ready for Review Ready for review by team improvement Improvement / enhancement to an existing function breaking Breaking change libcuspatial Relates to the cuSpatial C++ library labels Oct 28, 2022
@isVoid isVoid requested a review from a team as a code owner October 28, 2022 20:10
@isVoid isVoid self-assigned this Oct 28, 2022
@isVoid isVoid requested review from trxcllnt, zhangjianting, thomcom and harrism and removed request for trxcllnt and zhangjianting October 28, 2022 20:10
thrust::next(_part_begin + _geometry_begin[i + 1]),
_point_begin,
_point_end};
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Curious what you're using this for. A constructor that returns a slice of a multilinestring_range?

Copy link
Contributor Author

@isVoid isVoid Oct 28, 2022

Choose a reason for hiding this comment

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

That's right. This is for the element accessor of multilinestirng_range. When you access a single element in multilinestring_range, you get a single multilinestring.

return _point_end;
}

} // namespace cuspatial
Copy link
Contributor

Choose a reason for hiding this comment

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

What is the difference between a multilinestring_range and a multilinestring_ref?

Copy link
Contributor Author

@isVoid isVoid Oct 28, 2022

Choose a reason for hiding this comment

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

Conceptually multilinestring_range is a non-owning object on an array of multilinestrings.

multilinestring_ref is just a non owning object to a single multilinestring. Iterating on multilinestring_range gives a multilinestring_ref.

isVoid and others added 2 commits October 28, 2022 15:51
Co-authored-by: H. Thomson Comer <thomcom@gmail.com>
@isVoid isVoid requested a review from thomcom October 28, 2022 23:09
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.

Looks very nice. Various small doc suggestions only.

@isVoid isVoid requested a review from harrism November 3, 2022 17:53
@isVoid
Copy link
Contributor Author

isVoid commented Nov 5, 2022

rerun tests

1 similar comment
@isVoid
Copy link
Contributor Author

isVoid commented Nov 7, 2022

rerun tests

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.

Looks good!

@harrism
Copy link
Member

harrism commented Nov 7, 2022

@gpucibot merge

@rapids-bot rapids-bot bot merged commit 870f103 into rapidsai:branch-22.12 Nov 7, 2022
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 libcuspatial Relates to the cuSpatial C++ library
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[BUG] linestring device code uses std::min when it should use min()
3 participants