MBTiles

MBTiles,第1张

概述 MBTiles 是一种地图瓦片存储的数据规范,它使用SQLite数据库,可大大提高海量地图瓦片的读取速度,比通过瓦片文件方式的读取要快很多,适用于Android、IPhone等智能手机的离线地图存储。 官方地址:http://mbtiles.org —— 规范说明 The MBTiles format makes it easy to manage and share thousands or MBTiles 是一种地图瓦片存储的数据规范,它使用sqlite数据库,可大大提高海量地图瓦片的读取速度,比通过瓦片文件方式的读取要快很多,适用于AndroID、IPhone等智能手机的离线地图存储。

官方地址:http://mbtiles.org —— 规范说明

The MBTiles format makes it easy to manage and share thousands or even millions of map tiles.

MBTiles is a specification for storing tiled map data in sqlite databases for immediate use and for transfer. The files are designed for portability of thousands,hundreds of thousands,or even millions of standard map tile images in a single file.


1 Features Fast
Transferring an MBTiles file is faster than transferring millions of tile images when loading them onto USB stick,mobile device,or when transferring over a network. The Trade-off in database access versus filesystem access when using MBTiles is,in our experIEnce,negligible. Offline
Because MBTiles files are self contained,they can used without an Internet connection. Compatible
Images are stored as blob data,so tiles can be read by most sqlite clIEnts. There are manyimplementations of MBTiles from different organizations -- notablyTileMill,TileStream,Arc2Earth,TileStache,and MapBox for iPad. Open
MBTiles is an open-source specification. The specification text itself requires attribution,but there are absolutely no restrictions or requirements placed on implementations. 2 Example

Download the Haiti Terrain Grey tileset. Then,open the MBTiles file in the sqlite clIEnt.

sqlite3 haiti-terrian-grey.mbtiles

Next,run this sql statment.

SELECT * FROM tiles WHERE zoom_level = 5;

This displays a row for each tile on zoom level five.

5|8|17|????
5|8|18|????
5|9|17|????
5|9|18|????
5|10|17|????
5|10|18|????

The ???? characters represents PNG images stored as blob data.

3 Implementations 3.1 Compliant python: raster2mb (write) python: mbutil (read/write) python: landez (write) (uses mbutil) python: TileStache (code) (read/write) - a full,high-quality tile server Arc2Earth (write) python: mapproxy (announcement) (read/write) 3.2 Others objc: MapDBImporter (write) java/androID: MBTilesDroidSpitter (example) (read) objc/iPhone: Maptual (read) java/AndroID: Locus (read) windows compatible vIEwer: MBTilesViewer (read) java/AndroID: Nutiteq SDK 3.3 Applications MapBox for iPad (read) Js: TileMill (write) objc: route-me - using theRMMBTilesTileSource connector (example) (read) TileMill OS X QuickLook & Spotlight plugins (read)

Last edited by willwhite,September 15,2011

总结

以上是内存溢出为你收集整理的MBTiles全部内容,希望文章能够帮你解决MBTiles所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/sjk/1176820.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-06-02
下一篇 2022-06-02

发表评论

登录后才能评论

评论列表(0条)

保存