Skip to content

Commit

Permalink
Update script.py
Browse files Browse the repository at this point in the history
  • Loading branch information
OliviaButters authored Sep 26, 2024
1 parent 2057dbb commit c3ec792
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions script.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@

vector = gpd.read_file(vector_output)
clipped = gpd.clip(vector,boundary)
clipped = clipped[clipped.geometry.type != 'GeometryCollection']

# Print to a gpkg file
clipped.to_file(os.path.join(outputs_path, location + '_clip.gpkg'),driver='GPKG',index=False)
Expand Down

0 comments on commit c3ec792

Please sign in to comment.