repositorypackage
0.1.0
Repository: https://github.com/i0tool5/mbtiles-go.git
Documentation: pkg.go.dev
# README
MBTiles Reader for Go
A simple Go-based mbtiles reader.
Supports JPG, PNG, WebP, and vector tile tilesets created according to the mbtiles specification.
Example:
// 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 { ... }
Credits:
This fork uses the modernc.org/sqlite
SQLite library instead of crawshaw.io/sqlite
.