tippecanoe icon indicating copy to clipboard operation
tippecanoe copied to clipboard

handling multiple vector.pbf

Open sonfire186 opened this issue 5 years ago • 2 comments

I have many vector.pbf how can I convert them to one big vector.pbf? Or how to convert all vector.pbf to GeoJSON?

sonfire186 avatar Jan 15 '20 04:01 sonfire186

Are these vector.pbfs from different vector tiles? If so, put them in a directory in zoom/x/y.vector.pbf format and use tippecanoe-decode to decode the directory to GeoJSON.

e-n-f avatar Jan 18 '20 01:01 e-n-f

He will write each tile like this { "type": "FeatureCollection", "properties": { "zoom": 16, "x": x, "y": y, "compressed": false }, "features": [{ "type": "FeatureCollection", "properties": { "layer": "admin", "version": 2, "extent": 4096 }, "features": [ { "type": "Feature", "properties": { "admin_level": 2 }, "geometry": { "type": "Polygon", "coordinates": [ I would like to get already normalized coordinates for objects.

{
  "type": "FeatureCollection",
  "features": [
    {
      "type": "Feature",
      "geometry": {
        "type": "Polygon",
        "coordinates": [
        ]
      },
      "properties": {
        "type": 3
      }
    }
  ]
}

sonfire186 avatar Jan 18 '20 15:01 sonfire186