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

#189 aggregation polygon overlap #191

Merged
merged 6 commits into from
Oct 31, 2023

Conversation

Santonia27
Copy link
Collaborator

Update aggregation function to assert no polygon overlaps.

Improve notebook and configuration files.

@Santonia27 Santonia27 added the enhancement New feature or request label Oct 26, 2023
@@ -52,19 +53,9 @@ def join_exposure_aggregation_multiple_areas(
op="intersects",
how="left",
)

assert exposure_gdf["Object ID"].is_unique, "Error! Polygons overlap! Please clean your data from overlaping features."
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nice! I didn't know about the is_unique function

@frederique-hub frederique-hub merged commit 4c07018 into main Oct 31, 2023
1 check passed
@frederique-hub frederique-hub deleted the #189_aggregation_polygon_overlap branch October 31, 2023 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants