Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

export_to_shapefile #134

Closed
rhc123123 opened this issue Jul 26, 2022 · 1 comment · Fixed by #138
Closed

export_to_shapefile #134

rhc123123 opened this issue Jul 26, 2022 · 1 comment · Fixed by #138
Labels

Comments

@rhc123123
Copy link

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'

@aerispaha
Copy link
Member

@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 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants