Skip to content

Commit

Permalink
Get unique values from intersecting_ids
Browse files Browse the repository at this point in the history
  • Loading branch information
vikineema committed Nov 30, 2023
1 parent 3dc174c commit 5b6eef0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions deafrica_conflux/group_polygons.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ def get_intersecting_polygons_ids(
polygons_gdf, region, how="inner", predicate="intersects"
)[id_field].to_list()

# Get the unique values.
intersecting_polygons_ids = list(set(intersecting_polygons_ids))

return intersecting_polygons_ids


Expand Down

0 comments on commit 5b6eef0

Please sign in to comment.