在Google地图上覆盖ESRI shapefile的最佳方法是什么? [英] Best way to overlay an ESRI shapefile on google maps?

查看:163
本文介绍了在Google地图上覆盖ESRI shapefile的最佳方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Google地图中覆盖shapefile的最佳方式是什么?

经过一些阅读后发现,将shapefile转换为KML并在Google地图中覆盖KML是一种选择。如果是这种情况,我如何将shapefile转换为KML?

我相信会有一些可用于此转换的开源工具。任何人都可以指向一种工具来将shapefile转换为KML,而不会丢失任何数据?解析方案

我喜欢使用(开源和gui friendly) Quantum GIS 将shapefile转换为kml。



Google Maps API仅支持 KML标准子集。一个限制是文件大小。



为了缩小文件大小,您可以 Quantum GIS 的简化几何图形功能。这个平滑多边形。



然后,你可以选择你的图层,并做一个另存为kml。



如果您需要处理一堆文件,可以使用来自osgeo4w shell的Quantum GIS的ogr2ogr命令来批处理。

最后,我建议将您的kml(与您最喜爱的压缩程序)减小文件大小并将其保存为kmz。


What is the best way to overlay a shapefile in Google Maps?

After some reading suggests that, converting shapefile into KML and overlaying KML in Google map is an option. If that is the case, how do I convert a shapefile into KMLs?

I believe there would be a few open source tools available for this conversion. Can anyone point to a tool to covert a shapefile to KML without any loss of data?

解决方案

I like using (open source and gui friendly) Quantum GIS to convert the shapefile to kml.

Google Maps API supports only a subset of the KML standard. One limitation is file size.

To reduce your file size, you can Quantum GIS's "simplify geometries" function. This "smooths" polygons.

Then you can select your layer and do a "save as kml" on it.

If you need to process a bunch of files, the process can be batched with Quantum GIS's ogr2ogr command from osgeo4w shell.

Finally, I recommend zipping your kml (with your favorite compression program) for reduced file size and saving it as kmz.

这篇关于在Google地图上覆盖ESRI shapefile的最佳方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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