What is the tile data column in MBTiles?
The tile_data blob column contains raw image data in binary. A subset of image file formats are permitted: See the UTFGrid specification for implementation details of grids and interaction metadata itself: the MBTiles specification is only concerned with storage. The database can have optional tables named grids, grid_data.
What can be stored in a PNG file?
The PNG standard defines a PNG file, essentially a series of chunks, some of which are required (and contain the image data). Others, however, are optional. For example, there’s a chunk for storing gamma information or histogram data.
Is the MBTiles magic number valid for SQLite?
Tilesets are expected to be valid SQLite databases of version 3.0.0 or higher. Only core SQLite features are permitted; tilesets cannot require extensions. MBTiles databases can optionally use the officially assigned magic number to be easily identified as MBTiles.
What kind of data can be stored in MBTiles?
As a container format, MBTiles can store any tiled data, so data can be stored that an implementation cannot do anything with. Relying on metadata keys not defined in the specification can cause compatibility problems.
What do you need to know about the MBTiles spec?
The tile_data column MUST contain the raw binary image or vector tile data for the associated tile as a blob. See the UTFGrid specification for implementation details of grids and interaction metadata itself: the MBTiles specification is only concerned with storage. The database MAY have tables named grids and grid_data.
What do you need to know about MBTiles tileset?
All text in text columns of tables in an mbtiles tileset MUST be encoded as UTF-8. The database MUST contain a table or view named metadata. This table or view MUST yield exactly two columns of type text, named name and value.