jonas-p / go-shp

Go library for reading and writing ESRI Shapefiles. Pure Golang implementation based on the ESRI Shapefile technical description.
MIT License
255 stars 67 forks source link

Check for field overflow when writing attributes #22

Closed tdilo closed 6 years ago

tdilo commented 6 years ago

Currently, writing overlong data to fields corrupts data in the subsequent field(s) or records.

Return an error instead when the size of the data to write exceeds the available storage space of the field.