joining together two mbtiles files

后端 未结 2 1205
轻奢々
轻奢々 2021-02-06 15:46

I haven\'t managed to find a way to join two *.mbtiles files together (first one contains zoom level from 0-16 and second one zoom level 17). I was working with different sqlite

2条回答
  •  暖寄归人
    2021-02-06 16:07

    If the two files have the same metadata, and if the tiles tables are actually tables and not views, you can simply append the data of one to the other table:

    /* open database1 as main database, then: */
    ATTACH 'database2' AS db2;
    INSERT INTO tiles SELECT * FROM db2.tiles;
    

提交回复
热议问题