swmmio icon indicating copy to clipboard operation
swmmio copied to clipboard

export_to_shapefile

Open rhc123123 opened this issue 3 years ago • 1 comments

The following error occurs when performing a transformation SHP on a very simple model:

mymodel.export_to_shapefile('D:/admin') error: File "E:\APP\Anaconda3\envs\swmmio_env\lib\site-packages\swmmio\utils\spatial.py", line 219, in write_shapefile w.line(parts=[row.coords])

TypeError: line() got an unexpected keyword argument 'parts'

rhc123123 avatar Jul 26 '22 07:07 rhc123123

@rhc123123 thanks for identifying this issue! I believe this is due to an API change in pyshp. Regardless, I think i have a patch to this over in #138 .

aerispaha avatar Sep 27 '22 22:09 aerispaha