Closed
Description
openedon Apr 6, 2023
Version
23.04
On which installation method(s) does this occur?
Rapids-Compose
Describe the issue
Point polygon distance computes wrong result for some input.
Minimum reproducible example
In [30]: points = cuspatial.GeoSeries([
...: MultiPoint([(0, 2)]), MultiPoint([(2, 3), (2, 1)])])
In [31]: polys = cuspatial.GeoSeries([Polygon([(2, 0), (0, 0), (1, 2), (2, 0)]), Polygon([(2, 0), (3, 2), (1, 2), (2, 0)])])
In [32]: cuspatial.pairwise_point_polygon_distance(points, polys)
Out[32]:
0 0.000000
1 0.447214
dtype: float64
# Expected output:
# 0.894427190999916
# 0.0
Relevant log output
No response
Environment details
No response
Other/Misc.
No response
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Metadata
Assignees
Type
Projects
Status
Done