Skip to content

Commit

Permalink
Update spatial.py
Browse files Browse the repository at this point in the history
  • Loading branch information
CwhGIS authored Sep 25, 2023
1 parent 90cfcfe commit 99172bc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions swmmio/utils/spatial.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,8 @@ def write_shapefile(df, filename, geomtype='line', prj=None):
w.line([row.coords])
if geomtype == 'point':
w.point(*row.coords[0])
if geomtype== 'polygon':
w.poly([row.coords])

w.close()

Expand Down

0 comments on commit 99172bc

Please sign in to comment.