Post processing MBTiles with MBPipe
Bug #1144649 reported by
Ben Wyss
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenQuake Platform |
Fix Committed
|
Undecided
|
Ben Wyss |
Bug Description
Post processing MBTiles with MBPipe
first note, I don't think you need MBPipe, you just need sqlite3
second note, don't use dump:
echo 'dump' | sqlite3 tilesA.mbtiles | sqlite3 tilesB.mbtiles
go into the db that will be the destination db:
sqlite3 <destination.
then:
PRAGMA journal_
PRAGMA page_size=80000;
PRAGMA synchronous=OFF;
ATTACH DATABASE '<source tileset>' AS source;
REPLACE INTO grid_utfgrid SELECT * FROM source.
REPLACE INTO keymap SELECT * FROM source.keymap;
REPLACE INTO grid_key SELECT * FROM source.grid_key;
REPLACE INTO images SELECT * FROM source.images;
REPLACE INTO map SELECT * FROM source.map;
Changed in openquake: | |
status: | Confirmed → Fix Committed |
no longer affects: | openquake |
Changed in oq-platform: | |
status: | New → Fix Committed |
assignee: | nobody → Ben Wyss (bmwyss) |
To post a comment you must log in.
see: https:/ /bugs.launchpad .net/openquake/ +bug/1153958