Closed michelk closed 2 years ago
I made a reproducible example:
I tried serde_derive
, which didn't help.
And it also happens with Polyline-records.
A quick guess without testing but just looking at the code its that you use integer_field
which is something for FoxPro2
files so your file .dbf
is not purely a dBase
file and I think that the shapefile spec implicitely says that the dbf
file should be a dBase
not FoxPro2 dBase
.
Try replace the interger_field with numeric field
Unfortunately, with add_numeric_field
I still get
dbfdump _build/testdata_polygon.dbf
DBFOpen(_build/testdata_polygon.dbf,"r") failed.
Transfered because its a dbase
issue.
I've had a deeper look at this, and the problem is that we did not count the deletion flag
field size in the total record size written in the header.
Issue #18 described the same problem
Thanks, now it works :)
Cool, i'll make a release this week as it's an important fix
I wrote a function to export a triangular mesh to a shapefile.
All files are written (shp, shx, dbf) and the shp-file could be opened with QGIS.
This works, but the dbf-file couldn't be opened:
Any idea what the problem could be?
EDIT: There is a full example, see below.
Thanks.