mapbox / mapbox/vt2geojson

convert between geojson and pbf

Open
#21 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
156
Forks
32
PR merge metrics
No merged PRs in 30d

Description

I use vt2geojson to extract the transportation layers in the pbf file,Is there a way to convert this geojson back to pbf?
```
vt2geojson({
uri: './5-19-12.pbf',
layer: 'transportation',
z: 5,
x: 19,
y: 12
}, function (err, geoJson) {
if (err) throw err;
console.log(geoJson)
});
```

Contributor guide

Open the contributing guide

Research direction

Start with the vt2geojson(...) entry point and its handling of the transportation layer in the supplied PBF tile. Check whether the project exposes any serialization path from GeoJSON to PBF; done would be a documented, working reverse conversion, with behavior for the shown z/x/y tile and layer made clear.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
data
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.