问题描述
我需要存储在融合表.shp文件(矢量数据文件),并从融合表,则得到他和机器人(使用谷歌地图API)使用它作为一个层/覆盖在我的MapView
I need to store a .shp file (vector data file) in Fusion table and then "get" him from the fusion table and use it as a layer/overlay on my MapView in android (using google map Api)
这可能吗?
如何做到这将是有益的样本...
is it possible ? a sample of how to do it will be helpful...
在此先感谢!汤姆。
推荐答案
这Gady P分享作品的URL,但这里有一些替代方案:
The url that Gady P shared works, but here are some alternative options:
您需要得到您的shape文件为KML格式。您可以使用该层在ArcGIS中KML工具。它可以在工具箱>系统工具箱>转换工具>从KML> KML找到图层。
You need to get your shapefile into KML format. You can either use the Layer to KML tool in ArcGIS. It can be found in Toolboxes > System Toolboxes > Conversion Tools > From KML > KML to Layer.
您也可以使用GDAL / ogr2ogr到shape文件转换为KML。我写了一个教程几个月前在GISCollective网站这样做...
You can also use GDAL/ogr2ogr to convert the shapefile to KML. I wrote a tutorial on doing this at the GISCollective website a few months ago...
的
这应该足以指导您如何将其转换为KML。
It should be enough to walk you through how to convert it to KML.
一旦你拥有了它转换为KML只是去谷歌驱动器和创建融合表,然后从电脑上传KML。
Once you have it converted to KML just go to Google Drive and create your Fusion Table, then upload the KML from your computer.
编辑:重新阅读我的教程,看来以后我给shape文件转换为KML的一个例子,所以这应该是正是你需要的。
After re-reading my tutorial, it seems I give an example of converting a shapefile to KML, so this should be exactly what you need
这篇关于SHP层融合表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!