操作方法

操作方法:在 ArcGIS Pro 中将 shapefile 转换为 KML

Last Published: November 30, 2023

摘要

Keyhole Markup Language (KML) is an XML-based format for storing geographic data, and is a common format for sharing data with non-GIS users. It can be composed of point, line, polygon features, and raster imagery with either a .kml or .kmz file extension. This article provides the steps to convert single or multiple shapefiles to a KML file in ArcGIS Pro.

过程

  1. Add the shapefiles to the map. Refer to ArcGIS Pro: Add a shapefile to the map for instructions.
Note:
KML and KMZ files must be in the coordinate system GCS_WGS_1984, WKID 4326. If the input data is on another datum than WGS 1984, run the Project tool in ArcToolbox > Data Management Tools > Projections and Transformations to apply the correct datum transformation.
If raster data will be included in the data being converted use the Project Raster tool.  This is critical if a datum transformation is required in the Project tool. Refer to the Knowledgebase article: Select the correct geographic (datum) transformation when projecting between datums to access the list of datum transformations.
  1. To convert multiple shapefiles to a KML file, group all the shapefiles in the Content pane. Skip this step if converting only one shapefile.
    1. Press Ctrl and click to select the desired shapefiles.
    2. Right-click a selected shapefile, and click Group. The selected shapefiles are grouped into New Group Layer.
  2. In the Geoprocessing pane, click Toolboxes, and navigate to Conversion Tools > KML > Layer To KML.
  3. In the Layer drop-down list, select the shapefile or the layer group containing the shapefiles.
  4. Set a name and location for the Output File.
  5. Set other parameters as desired, and click Run.
An image of the Layer To KML pane.

The converted KML file is located in the specified output location with a .kmz extension (compressed or zipped KML files). The image below shows the KMZ file opened in ArcGIS Earth.

An image of the KML file in ArcGIS Earth
Note:
To extract the KML files from the KMZ file, use a file extractor such as WinZip or WinRAR.

文章 ID: 000023141

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

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

下载 Esri 支持应用程序

相关信息

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

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项