shapefile與kml文件相互轉(zhuǎn)換 一、shapefile 2 kml Arcgis9.2中3D Analyst Tools > Conversion > To KML -> Layer to KML/Map to KML,可以把shapefile文件轉(zhuǎn)成KML文件,然后在Google Earth的File中打開,就可以在Google Earth上顯示了! 二、kml 2 shapefile 1.點(diǎn)文件例:首先把所有的點(diǎn)在google earth中用save place as功能,保存為后綴名為kml的文件,然后借助一個(gè)軟件Free Version of GPS Track Maker( http://www./)把kml文件采用open file打開,然后另存為Waypoint+ Text Format(*.txt),再借助Excel把形成的txt文件導(dǎo)入進(jìn)去,處理一下,僅保留所需的經(jīng)緯度坐標(biāo),就可以在arcgis中重新生成點(diǎn)文件。 同理,對(duì)于在google earth中生成的多邊形,可以采用同樣的方法,把組成多邊形的點(diǎn)導(dǎo)出,然后在Arcgis中重新生成Google Earth中的多邊形。 2.從 /qa/kml2shp-eng.html中下載kml2shp.avx,將它復(fù)制到ArcView GIS3的的擴(kuò)展功能模塊路徑下(如D:\ESRI\AV_GIS30\ARCVIEW\EXT32),啟動(dòng)ArcView GIS,點(diǎn)擊菜單file→Extensions...,鉤選KML2Shape項(xiàng)。此時(shí),菜單中會(huì)多出一項(xiàng)Import from KML,點(diǎn)擊展開相應(yīng)的工具,可以將points, lines ,polyons等不同類型的KML文件轉(zhuǎn)換為shape圖層。 3.其他方法:KML to ArcMap Converter http://www./2005/11/25/kml-to-arcmap-converter/ KML2SHP Conversion http://arcscripts./details.asp?dbid=14980 Batch conversion from KML to ESRI shapefile using Arcview http:///qa/kml2shp-eng.html |
|