-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Name headers are truncated #74
Comments
No. It's a limitation of the DBF file format unfortunately. See this https://support.esri.com/en/technical-article/000007920 |
I have the same problem. The doc on the DBF file format says the limitation is 10 characters, but shp-write truncates field names to 8 characters. |
It looks like this is a bug already reported in the mapbox/dbf package: mapbox/dbf#11 |
Search for this line in the library js file f.name.split('').slice(0, 8) and replace 8 with 10. Then I could able to see the 10 character name in the shape file. Too simple right !!! |
This is now fixed in |
Good news: v0.4.2 is now available with this fix from dbf. Less good news: Mapbox changed their deployment organization so this package is now hosted under a different package @mapbox/shp-write |
Hi,
I've a data set with name headers that are truncated to 8 chars length, however, the body data is displayed correctly. Is there any way to output more than 8 chars in headers, just like in body?
Thanks!
Cheers,
Maxi
The text was updated successfully, but these errors were encountered: