在Google Maps v2 Android中解析和绘制GeoJSON [英] Parsing and plotting GeoJSON in Google Maps v2 Android

查看:281
本文介绍了在Google Maps v2 Android中解析和绘制GeoJSON的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的SD卡上有一个很大的27 MB geojson文件。我有大量的功能,几何等。
当我在网上搜索时,本机没有在Android版Google地图中找到对GeoJSON和Shape文件的任何支持。
我想绘制地图上的所有几何图形(稍后我们可以优化它以显示一些几何图形),例如点,线,多边形等。

我是否需要自己编写解析器,或者我没有在Google Maps API for Android中找到geojson支持?

>尝试使用Google Maps Android API实用程序库。它包含将解析和处理GeoJSON数据的类。 https://github.com/googlemaps/android-maps-utils


I have a nice big 27 MB geojson file lying on my SD Card. I has got a large number of features, geometry etc. As I was searching the web I didn't find any support for GeoJSON and Shape Files in Google Maps in Android natively. I want to plot all the geometry on the map (we can optimize it later to show some of the geometry) like point, line, polygon etc.

Do I need to write a parser on my own or did I fail to find support of geojson in Google Maps API for Android?

解决方案

Try using the Google Maps Android API utility library. It contains classes that will parse and handle your GeoJSON data. https://github.com/googlemaps/android-maps-utils

这篇关于在Google Maps v2 Android中解析和绘制GeoJSON的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆