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?

  • What design specifications did you create in the JSON file? – whyzar Jul 8 at 13:47
  • Mapbox Studio format (Style.json) not in carto CSS – Devils Dream Jul 10 at 9:16

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 – Devils Dream Jul 30 at 7:58
  • BTW, I was following the same approach either. – Devils Dream Jul 30 at 8:00
  • @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. – sanket ghenand Jul 30 at 8:38
  • If I use TileStache then what will be the procedure to reproduce the raster from Vector Tiles? – Devils Dream Jul 30 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. – sanket ghenand Jul 30 at 8:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.