I have created a Vector tile server using TileserverGL/Tessera. I have exported a few MBTiles layers through Tippecanoe. I must have to use Multiple MBTiles. Then I have designed the map through a JSON file. Now I want to create a similar design Raster Tile Server. How can I get a Raster MBTiles with a similar design?
1 Answer
Tricky but works,
You can merge multiple mbtiles to single mbtiles file then
use:
tileserver-gl {filename}.mbtiles
to serve mbtiles as pbf
(can launch multiple tileserver with different files but will need to configure that in your style)
for pbf to raster:
docker run --rm -itd --name rastermap -v $(pwd):/data -p 9090:80 klokantech/tileserver-gl -c config.json --verbose
config.json as:
{
"styles": {
"basic": {
"style": "Style.json",
"tilejson": {
"type": "overlay",
"minzoom": 0,
"maxzoom": 23
}
}
}}
where Style.json is your style file.It must contain pbf source as new lanched mbtiles tileserver.
-
I have merged different mbtiles but the problem is higher zoomscale. Few of my tiles have maxZoom 13, few have 18. if I join all those mbtiles have 13 zoom scale doesn't appear after 13 zoom scale Commented Jul 30, 2019 at 7:58
-
-
@Devils Dream for the problem with higher zoomscale you can use github.com/TileStache/TileStache where the different layers can have different mbtiles sources ,then all layers merged into one composite layer. Commented Jul 30, 2019 at 8:38
-
If I use TileStache then what will be the procedure to reproduce the raster from Vector Tiles? Commented Jul 30, 2019 at 8:41
-
1@Devils Dream In Style.json you can add source of pbf tiles as tilestache host url and then followed by pbf to raster. Commented Jul 30, 2019 at 8:46