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

Error while using shp-write at nodeJs server side to convert GeoJson to Shp file #93

Open
syncthreads-sammith opened this issue Aug 5, 2023 · 1 comment

Comments

@syncthreads-sammith
Copy link

syncthreads-sammith commented Aug 5, 2023

can shp-write be able to run at NodeJs server environment ,if yes can we use the way they mention in documentation i refer this documentation this throws error
Screenshot 2023-08-05 110329
below is the format of GeoJson I'm using
const goeJson = { "type": "FeatureCollection", "features": [ { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [ [ [-73.985791, 40.748817], [-73.985852, 40.748192], [-73.985424, 40.748176], [-73.985363, 40.748801], [-73.985791, 40.748817] ] ] }, "properties": { "name": "Polygon Feature 1", "description": "This is the first polygon feature." } } ] }
i dont understand what part of code is wrong, i have tried with multiple version of shp-write shp-write and shp-write-update
no use
how do we convert geoJson to shp file format ?

@sheindel
Copy link
Contributor

sheindel commented Aug 23, 2023

Have you tried this with our latest release v0.4.2?

Mapbox changed their deployment organization so this package is now hosted under a different package

@mapbox/shp-write (on NPM)

https://unpkg.com/@mapbox/shp-write@latest/shpwrite.js

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

2 participants