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

Add argument to allow configuring whether to combine result segments in pairwise_linestring_intersection #1208

Open
isVoid opened this issue Jun 29, 2023 · 0 comments

Comments

@isVoid
Copy link
Contributor

isVoid commented Jun 29, 2023

According to @thomcom, contains fails with the following use case:

from shapely.geometry import LineString
l1 = LineString([(0, 0), (0.25, 0), (0.75, 0), (1, 0)])
l2 = LineString([(0, 0), (1, 0)])
print(l1.contains(l2))
print(l2.contains(l1))

The number of vertices differs currently for both inputs, because pairwise_linestring_intersection merges
the result for both cases and in the code path, there's no way distinguishing them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

1 participant