Skip to main content
Question

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


If yes how?

3 replies

jakemolnar
Forum|alt.badge.img

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.


  • Author
  • March 22, 2019

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


jakemolnar
Forum|alt.badge.img
ramy_bdr wrote:

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?

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings