A simple Go-based mbtiles reader.
Supports JPG, PNG, WebP, and vector tile tilesets created according to the mbtiles specification.
// Open an mbtiles file
db, err := mbtiles.Open("testdata/geography-class-jpg.mbtiles")
if err != nil { ... }
defer db.Close()
// read a tile into a byte slice
var data []byte
err = db.ReadTile(0, 0, 0, &data)
if err != nil { ... }
This was adapted from the mbtiles
package in mbtileserver to use the crawshaw.io/sqlite
SQLite library.