Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
677 views
in Technique[技术] by (71.8m points)

mapbox - Vector Tile metadata generation faulty, ogr2ogr and tippecanoe vector tile generation

recently I was able to use a .osm.pbf file to generate 5 geojson files using ogr2ogr, which were later used to generate a .mbtiles file using tippecanoe; using the following commands:

ogr2ogr -f GeoJSON outputPoints.json input.osm.pbf points
ogr2ogr -f GeoJSON outputLines.json input.osm.pbf lines
// using these for Points, Lines, Multipolygons, MultiLinestrings, and other_relations

tippecanoe -zg -o output.mbtiles --drop-densest-as-needed outputPoints.json outputLines.json
// using all 5 input files

Using all 5 json files to generate the mbtiles worked fine, I obtained the meta data from the mbtiles using mbutil, once I had done some additional extracting and formatting of the other files generated from the mbtiles file, I uploaded this into a tileserver (to be specific "tileserver PHP").

Immediately I was met with a metadata json error, upon investigation of the metadata I realised that its nothing like the other metadata json files ive seen before, Its a lot bigger and contained a lot of info.

Im not certain how or what to do with it but its wont work on tileserver php, could anyone help me understand where I may have gone wrong with this. Id also like to point out, upon removing some of the metadata its worked on the server though its only displays basic stuff, where as I would like to see the roads, waterways, etc within the server.

Stackoverflow wont let me attach the metadata itself and its too big of a file to take a snapshot off.

Any ideas where this could have gone wrong? or how to show this file to you?

Edit

heres a link to a tippecanoe issue ive made, this shows the metadata in full, https://github.com/mapbox/tippecanoe/issues/898

question from:https://stackoverflow.com/questions/65901933/vector-tile-metadata-generation-faulty-ogr2ogr-and-tippecanoe-vector-tile-gener

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...