All Projects → mapbox → mbtiler

mapbox / mbtiler

Licence: MIT license
C++ MBTile example

Programming Languages

C++
36643 projects - #6 most used programming language
Makefile
30231 projects

mbtiler

A demo of MBTile writing in C/C++

This module and program have been developed on OS X. The SQLite library is cross-platform and porting this code to Windows or Linux should not be difficult, but no compilation or testing on Windows or Linux has been done.

The mbtiler demo program takes 2 arguments: MBTiles dataset name and description. It reads one image tile from the tests/data directory and inserts that into the MBTiles dataset.

$ ./mbtiler "test" "MBTiler test dataset"

The resulting MBTile dataset metadata:

$ echo "select * from metadata;" | sqlite3 test.mbtiles;
name|test
type|overlay
version|1.0.0
description|MBTiler test dataset
format|png

The resulting tiles:

$echo "select * from tiles;" | sqlite3 test.mbtiles
15|16979|21196|�PNG

NB: Traversal of a tile tree is platform-specific and has not been implemented.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].