Question

Can I extract mbtiles to {z}/{x}/{y}.png ?

  • 22 March 2019
  • 3 replies
  • 47 views

If yes how?


3 replies

Badge

Instead of using the MBTiles reader, use the SQLite3 Non-Spatial reader.

You should find a table called "tiles". Read the "tiles" table and use an "AttributeFileWriter" transformer to write the "tile_data" attribute as "$(zoom_level)/$(tile_column)/$(tile_row).png".

With that workflow you should be all set! I've used similar workspaces many times to create GeoPackage tilesets.

But when I read the file, I always get error message as below no matter if i use reader with MBtiles or SQLite3.

I downloaded the MBtiles from https://openmaptiles.com/downloads/europe/sweden/stockholm/

/Ramy

Badge

But when I read the file, I always get error message as below no matter if i use reader with MBtiles or SQLite3.

I downloaded the MBtiles from https://openmaptiles.com/downloads/europe/sweden/stockholm/

/Ramy

Ah, maybe you are trying to read *vector* tiles? We have an upcoming MapBox Vector Tiles reader, but unless you're reading the raster dataset you won't find PNGs.

 

Anyway, I tried reading the data with SQLite3 reader and was successful; maybe your download was just corrupted?

 

Reply