操作方法

操作方法:将多个 KML 图层转换为 shapefile

Last Published: July 21, 2023

摘要

KML is an XML-based file format for displaying information in a geographic context. While KML information can be drawn in many Earth-based browsers (including ArcGIS Earth and ArcGIS Pro), there are limitations when using them for GIS analysis.

This article describes the method to combine multiple KML layers into a single, usable shapefile to allow advanced GIS analysis on the features within.

过程

  1. Use the Batch tool to convert KML files.
    1. In ArcGIS Pro, navigate to Analysis > Tools.
    2. In the Geoprocessing pane, search for KML To Layer in the search box.
In the Search box, search for KML To Layer tool
  1. Right-click the KML To Layer tool, and select Batch.
Right-click KML To Layer tool, select Batch
  1. In the Batch KML To Layer pane, under Choose a batch parameter, select the Make temporary batch tool option.
  2. Use the default details for Name and Location. Click Next.
Select the Make temporary batch tool option.
  1. Under Parameters, select all the KML layers for Batch Input KML File, and specify the location for Output Location. Click Run.
Select the shapefiles converted from the Batch Input KML File tool.
Note:
For the Batch Input KML File tool to work, do not remove %NAME% from Output Data Name.
The Output Data Name with %NAME%
  1. Use the Merge tool to combine the converted shapefiles.
    1. In ArcGIS Pro, navigate to Analysis > Tools.
    2. In the Geoprocessing pane, search for Merge in the search box. Select the tool.
Search for Merge tool in the Geoprocessing pane.
  1. In the Merge pane, under Parameters, select the shapefiles converted from the Batch Input KML File tool.
  2. Select the output location for Output Dataset. Click Run.
Note:
Ensure the selected layers contain the same geometry type (for example, merge all the polylines layers only).

文章 ID:000026382

接收通知并查找新问题或常见问题的解决方案

从我们全新的 AI 聊天机器人中获得简明答案和视频解决方案。

下载 Esri 支持应用程序

相关信息

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项