geobuf2json failed,this is bug
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1k
- Forks
- 86
- PR merge metrics
- No merged PRs in 30d
Description
json2geobuf water.json > data.pbf success!
geobuf2json data.pbf > water.json is failed!
C:\Users\admin\AppData\Roaming\npm\node_modules\geobuf\node_modules\pbf\index.js:191
else throw new Error('Unimplemented type: ' + type);
Error: Unimplemented type: 7
at Object.Pbf.skip (C:\Users\admin\AppData\Roaming\npm\node_modules\geobuf\node_modules\pbf\index.js:191:20)
at Object.Pbf.readFields (C:\Users\admin\AppData\Roaming\npm\node_modules\geobuf\node_modules\pbf\index.js:41:45)
at decode (C:\Users\admin\AppData\Roaming\npm\node_modules\geobuf\decode.js:17:19)
at C:\Users\admin\AppData\Roaming\npm\node_modules\geobuf\bin\geobuf2json:12:16
at ConcatStream. (C:\Users\admin\AppData\Roaming\npm\node_modules\geobuf\node_modules\concat-stream\index.js:36:43)
at emitNone (events.js:72:20)
at ConcatStream.emit (events.js:166:7)
at finishMaybe (C:\Users\admin\AppData\Roaming\npm\node_modules\geobuf\node_modules\concat-stream\node_modules\readable-stream\lib\_stream_writable.js:475
:14)
at endWritable (C:\Users\admin\AppData\Roaming\npm\node_modules\geobuf\node_modules\concat-stream\node_modules\readable-stream\lib\_stream_writable.js:485
:3)
at ConcatStream.Writable.end (C:\Users\admin\AppData\Roaming\npm\node_modules\geobuf\node_modules\concat-stream\node_modules\readable-stream\lib\_stream_w
ritable.js:455:41)
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
Reproduce the commands with the reported water.json input, then trace the failure from bin/geobuf2json through decode.js and pbf/index.js, where the unimplemented type 7 error is raised. Determine whether the generated data can be decoded successfully and document a verified round-trip result.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- cli, data
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100