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

shp.Create always removes last three characters of filename #26

Closed gertcuykens closed 6 years ago

gertcuykens commented 6 years ago
layer, err := shp.Create("layer/test.shp", shp.POLYLINE)

works but doing

layer, err := shp.Create("layer/test", shp.POLYLINE)` instead results in something unexpected:
teshp
teshx
tedbf
fawick commented 6 years ago

Thanks for your report, I think I know what's going on here. I hope to have a fix for this tonight.

fawick commented 6 years ago

Fixed with 215a5781289c857f70b19c2740e65d81de343b50.

fawick commented 6 years ago

I just released that commit 215a5781289c857f70b19c2740e65d81de343b50 as v0.1.1.