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

Made a more effecient and accurate version of drop_slivers for clip #20

Merged
merged 1 commit into from
Dec 2, 2019

Conversation

nkorinek
Copy link

Added in changes suggested by joris and updated tests to reflect how the new output works.

@nkorinek
Copy link
Author

@lwasser this is failing the same tests that it was last time (those three ones in test_sindex) but besides that looks good to go (and much cleaner)

# Assert returned data is a geometry collection given sliver geoms
assert "Polygon" in clip.geom_type[0]
# Assert returned data is a not geometry collection
assert (clip.geom_type == "Polygon").any()
Copy link
Owner

Choose a reason for hiding this comment

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

ok awesome. i didn't think [0] was the way to go... .any() should do the trick!!

@lwasser lwasser merged commit 6e7b462 into lwasser:add-clip Dec 2, 2019
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.

2 participants