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

no tolist() and only linemerge if no. arcs > 1 #107

Merged
merged 1 commit into from
Aug 20, 2020
Merged

Conversation

mattijn
Copy link
Owner

@mattijn mattijn commented Aug 20, 2020

In the shared-paths mode (shared_coords=False) the linestrings are stored as shapely.geometry.LineStrings in Dedup-phase. In the shared-coords mode (shared_coords=True), the linestrings are stored as numpy.array in Dedup-phase, where the code tries force as list for the shapely.ops.linemerge(), but this is not necessary. The linemerge both accept numpy arrays and shapely linestrings.

Further only tries to linemerge if there are at least two arcs in the geometry.

This PR fix #106.

@mattijn
Copy link
Owner Author

mattijn commented Aug 20, 2020

Btw, this PR introduced test no. 200 🥳

@mattijn mattijn mentioned this pull request Aug 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"AttributeError: 'LineString' object has no attribute 'tolist'" with shared_coords=False
1 participant