Skip to content
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

fromGeoJson() truncates property names to 8 characters #2

Closed
davidbeers opened this issue Jul 18, 2019 · 6 comments
Closed

fromGeoJson() truncates property names to 8 characters #2

davidbeers opened this issue Jul 18, 2019 · 6 comments

Comments

@davidbeers
Copy link

Although the SHP spec permits attribute names up to 10 characters in length (see https://en.wikipedia.org/wiki/Shapefile#Data_storage) the conversion from GeoJSON to SHP truncates them to 8 characters.

@haoliangyu
Copy link
Owner

This is unfortunately an issue of the dependency shp-write. See mapbox/shp-write#74

@davidbeers
Copy link
Author

Thanks, I'm chiming in on the shp-write issue.

@haoliangyu
Copy link
Owner

Also see mapbox/dbf#33

@sheindel
Copy link

Hello! I'm not sure if this repo is still used/maintained, but we have finally resurrected both dbf and shp-write to resolve some of these long standing issues. Feel free to update the dependency if you see some value in it. The API should have remained the same (with a few improvements) but you may want to specify the outputType and the compression types in your call shp-write

@sheindel
Copy link

Please note that the package has changed from shp-write to @mapbox/shp-write due to changes in mapbox package organization

@haoliangyu
Copy link
Owner

@sheindel Thanks for reminding me of the update. This issue is addressed at v1.1.6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants