mapbox / mapbox/shp-write

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

Open
#93 1 comment 0 reactions 0 assignees View on GitHub

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
![Screenshot 2023-08-05 110329](https://github.com/mapbox/shp-write/assets/111981576/2e597107-6c2f-40b7-886f-368ec5e1b104)
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.