`
longgangbai
  • 浏览: 7325573 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

GIS的学习(四十五)【转】Integration of the MBTiles format on Android

阅读更多

     转载自

               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 100.x加载mbtiles文件

    arcgis for android 10.x加载mbtiles文件官方是有demo的,100.x加载mbtiles基本代码也类似,下面以水经注导出的天地图墨卡托投影的mbtiles为例实现加载显示。

    Android客户端-使用MBTliles离线地图包

    SuperMap iClient 6R Android客户端是一款强大的GIS(地理信息系统)解决方案,它支持MBTiles离线地图包的使用,为开发者提供了丰富的地图功能。MBTiles是一种将地图切片存储为SQLite数据库格式的离线地图标准,包含...

    使用c++17写的,将xyz格式的栅格瓦片转换为单个.mbtiles文件,便于数据迁移的程序。.zip

    在IT行业中,数据存储和迁移是一项关键任务,尤其是在地理信息系统(GIS)领域。XYZ格式的栅格瓦片是一种常见的地图切片存储方式,通常由多个小图像文件组成,每个文件代表地图上的一个特定区域。而MBTiles文件则是...

    GIS 学习网站 推荐

    ### GIS学习网站推荐 在地理信息系统(GIS)领域内,获取高质量的学习资源是至关重要的。以下将详细介绍六个最佳GIS学习网站的信息,这些网站涵盖了从基础知识到高级应用的多个层面,对于初学者和专业人士来说都是...

    看漫画学习GIS(gis学习漫画版)

    《看漫画学习GIS》是一本独特且创新的学习资料,它通过漫画的形式,使GIS学习变得更加生动有趣,尤其适合初学者和对GIS感兴趣的人群。 GIS的历史可以追溯到20世纪60年代,当时的主要应用集中在土地规划和资源管理...

    Remote.Sensing.and.GIS.Integration

    《Remote Sensing and GIS Integration》这本书为想要深入了解遥感与GIS集成应用的人提供了宝贵的资源。通过学习本书中的理论、方法及应用案例,读者不仅能够掌握遥感技术和GIS的基本原理,还能够学会如何有效地将这...

    gis学习文档gis学习文档gis学习文档

    本压缩包中的“gis学习文档”显然是一系列关于GIS学习的资料,旨在帮助用户掌握GIS的基本概念、操作技巧和应用方法。 GIS学习主要包括以下几个方面: 1. **GIS基础理论**:理解GIS的核心概念,如空间数据模型...

    Analysis of metropolis parking problems and solutions based on 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 ...

    android GIS ---GEOtools Googlemap ucmap 开发总结

    ### Android GIS 开发总结——GEOtools、Google Maps API、UCMap #### 一、引言 随着移动设备性能的提升和技术的发展,地理信息系统(GIS)在移动平台上的应用变得越来越广泛。Android作为全球最流行的移动操作系统...

    毕业论文安卓304移动平台GIS应用app+server.doc

    During the detailed design phase, developers focus on the implementation of individual components and their integration into the overall system. The usability and responsiveness of the Android app are...

    GIS(地理信息)+坐标转换+十进制度转度分秒(度分秒转十进制度)+公式

    GIS(地理信息)+坐标转换+十进制度转度分秒(度分秒转十进制度)+公式 GIS工作者,经常出现坐标格式转换的问题,将十进制度转换为度分秒格式(十进制度->度分秒)例如:87.509614 44.075376 ----->  87°30′34....

    Android代码-h2gis

    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 ...

    The worth of land useA GIS一emergy evaluation of natural

    ### 土地利用价值:基于GIS与能值分析的自然及人造资本评估 #### 概述 本研究探讨了意大利坎帕尼亚地区的自然资本与人造资本的价值,并通过地理信息系统(GIS)与能值分析(emergy synthesis)的方法进行了量化...

    GIS学习网站大全

    很全面的、各种各样的地理信息系统学习网站

    插件式gis学习源代码-转

    【GIS技术概述】 GIS,全称为地理信息系统(Geographic Information System),是一种集计算机硬件、软件、地理数据于一体的系统,用于采集、存储、管理、分析和展示所有类型地理信息。它结合了地图学、数据库技术...

    国内外很多gis网站(GIS学习者绝对有用)

    对于GIS的学习者来说,掌握有效的资源是非常关键的。以下是一些国内外非常有用的GIS网站,它们提供了丰富的GIS相关知识、工具和数据: 1. ArcGIS Online (https://www.arcgis.com/) Esri的ArcGIS Online是GIS行业...

    A Novel Method of Buffer Generation Based on Vector Boundary Tracing

    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 ...

Global site tag (gtag.js) - Google Analytics