Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

mapbox/mbtiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

C++ MBTile example

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •