转载自
http://www.makina-corpus.org/blog/integration-mbtiles-format-android
MapBox is a great GIS project with many great tools.
I was delighted when Makina Corpus allowed me to spend a few days to bring contributions back to the project.
I headed to integrate the Mapbox tile format on Android. Having a quick chat on #mapbox irc channel, revealed that no MBTiles Android component existed yet.
MBTiles embeds tiles in an SQLite database to improve performance, to share a unique file for offline maps, and to offer cross-platform capabilities as database handling is shared among all languages.
I added support for MBTiles to Android in two steps:
- Create a library with a visual example for debugging/fun purpose : load one tile at a time given user input and displaying metadata
- Create/Submit a patch for Osmdroid (A great library that many GIS/Android projects depend on, equivalent of Google MapView but not bound to GoogleMaps) with a simple example showing a map built from the tile set.
Thus, the code should be pretty straightforward as it's actually making a simple query to get the matching tile.
Only a few points stand by:
- You need to add a table with simple information to make your SQLite database Android compatible (not much doc about it)
-
The tileset is stored using the Google Specification (http://www.maptiler.org/google-maps-coordinates-tile-bounds-projection/) - Y-axis is inverted, a one-liner solves this
- I wrote a Metadata parser by spec that validates the metadata information contained in the database
For more in-depth information, have a look to my Github account:
My work was rewarded by a tweet from developmentseed / mapbox !
Thanks for this and for your awesome work,
Cheers !
分享到:
相关推荐
arcgis for android 10.x加载mbtiles文件官方是有demo的,100.x加载mbtiles基本代码也类似,下面以水经注导出的天地图墨卡托投影的mbtiles为例实现加载显示。
gis学习文档gis学习文档gis学习文档gis学习文档gis学习文档gis学习文档gis学习文档gis学习文档
The evolving capability of geographic information systems (GIS) makes it ...and GIS communities to push the integration of these two related technologies into a new frontier of scientific inquiry. rem
产品总体介绍 随着Android硬件设备的快速发展和嵌入式GIS应用需求的不断增长, 在Android应用领域急切需要专 业的GIS开发平台。北京穆图科技有限公司经过长期的移动GIS应用经验积累,顺应市场需求推出了自主研发 的...
This book provides relevant background on GIS that is useful in understanding its advanced applications in water resources engineering. The book has been developed with two ...integration with the GIS.
The worth of land useA GIS一emergy evaluation of natural
这里有6个最好的GIS学习网站的网址,要学习GIS的朋友们可以看看。学习GIS必备。因为我搜集了很久,这是本人的多年的心血,资源分要求稍稍高一些吧。。。
看漫画学习GIS,GIS历史及学习的好东西!(gis学习漫画版)(gis学习漫画版)(gis学习漫画版)
The rapid development of the social economy strongly promotes the urbanization and mo鄄 torization. Meanwhile , parking problems become serious due to the long鄄term imbalance between parking demands ...
GIS(地理信息)+坐标转换+十进制度转度分秒(度分秒转十进制度)+公式 GIS工作者,经常出现坐标格式转换的问题,将十进制度转换为度分秒格式(十进制度->度分秒)例如:87.509614 44.075376 -----> 87°30′34....
gis开发工程师必备知识点,教你什么是gis知识,清晰明了
managing spatial features and operations on the new Geometry type of H2, the Open Geospatial Consortium (OGC) Simple Features for SQL (SFSQL) functions and additional spatial functions that we (the ...
很全面的、各种各样的地理信息系统学习网站
分析了移动GIS开发的关键技术,重点讨论了面向对象方式下移动 GIS空间数据管理、空间数据可视化和空间数据查询的设计方法。 在 Android平台上研发了一套移动 GIS基础软件平台。
Utilizing the property that the distances from all points located on the borderline of buffer zone to corresponding buffer target are the same, this paper presents a novel method of buffer generation ...
inventory is based particularly on the use of SPOT, Thematic Mapper (or another RS data) multi-temporary data analysis combined with the use of another spatial data. Basic tool, used for such analysis...
几种常用GIS软件之间的数据转换方法 大家可以看看
一本关于Remote Sensing 和 GIS 应用的书,对于想从事遥感与GIS联合应用的人来说是一本不可或缺的好书。English version
The Design and Implementation of GIS
As this integration occurs, it is important to ensure that, (i) users of GIS recognize the limitations of spatial analysis, (ii) researchers continue to work on removing the existing impediments to ...