GeospatialPython / pyshp

This library reads and writes ESRI Shapefiles in pure Python.
MIT License
1.1k stars 259 forks source link

Simplify writing of different shapetypes #153

Closed karimbahgat closed 6 years ago

karimbahgat commented 6 years ago

Seems to be some confusion and inconvenience from having a few methods to write many different types of shapes, and having to set the shapetype with a constant, which is easy to not realize or forget (e.g. #149, #102).

Switch so there's only one method for each shapetype, no constants needed, allowing for better input validation as well.

karimbahgat commented 6 years ago

Fixed as of 0c182098e614e9274e638488a19af7a12674b532.