Closed Jonty closed 4 years ago
Thanks for pointing out this uninformative error when the shapefile writer has no fields defined. However, according to ESRI, "the dBASE file must contain at least one field.", so we can't just skip the error. Instead, I just added a more informative exception when attempting to close a writer with no fields, to avoid writing invalid shapefiles, but adding you to the list of contributors. To truly write empty files, you will have to define at least one dummy field.
This is great, thanks!
e.g.