Closed simonw closed 1 year ago
Here's an example found via GitHub code search: https://github.com/maptiler/planetiler/blob/dab37f572e1b352cb3216b5115671f6f69e8d73c/planetiler-core/src/main/java/com/onthegomap/planetiler/mbtiles/Mbtiles.java#L46
public final class Mbtiles implements Closeable {
// https://www.sqlite.org/src/artifact?ci=trunk&filename=magic.txt
private static final int MBTILES_APPLICATION_ID = 0x4d504258;
...
config.setApplicationId(MBTILES_APPLICATION_ID);
For the record, 0x4d504258
is the same value as 1297105496
.
https://www.sqlite.org/src/artifact?ci=trunk&filename=magic.txt
Suggests that
PRAGMA application_id = INTEGER;
be used to set this for MBTiles: