Error while using shp-write at nodeJs server side to convert GeoJson to Shp file
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 321
- Forks
- 195
- PR merge metrics
- No merged PRs in 30d
Description
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](https://github.com/mapbox/shp-write) this throws error

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 ?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the shp-write documentation and reproduce the reported Node.js server-side conversion using the supplied GeoJSON FeatureCollection. Inspect the linked screenshot and compare behavior across shp-write and shp-write-update versions; done means identifying the source of the error and documenting a working GeoJSON-to-Shapefile conversion path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100