HOW TO

Convert multiple KML layers to a shapefile

Last Published: July 21, 2023

Summary

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.

Procedure

  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).

Article ID:000026382

Software:
  • ArcGIS Pro 2 8 x
  • ArcGIS Pro 2 x
  • ArcGIS Pro 2 7 x

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Related Information

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options