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 26, 2023
1 parent 99172bc commit 7a4648a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions swmmio/utils/spatial.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +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':
if geomtype == 'polygon':
w.poly([row.coords])

w.close()

# add projection data to the shapefile,
Expand Down

0 comments on commit 7a4648a

Please sign in to comment.