KML To Layer (Conversion)

This ArcGIS 3.1 documentation has been archived and is no longer updated. Content and links may be outdated. See the latest documentation.

Summary

Converts a .kml or .kmz file into feature classes and a layer file. The layer file maintains the symbology of the input .kml or .kmz file.

Learn more about KML support in ArcGIS

Usage

  • This tool creates a file geodatabase containing a feature class in a feature dataset. The feature class name will be named point, line, polygon, or multipatches, depending on the original features of the input file. At the same folder level as the file geodatabase will be a layer file that can be added to a map to draw the features. This layer file draws features based on their schema of point, line, or polygon, while maintaining the original KML symbology.

    Each feature class created will have attributes that contain information about the input file. The original folder structure, name, and pop-up information, as well as fields that help define how the features sit on a surface, all make up the attributes of each feature.

  • Rasters, or ground overlays, will be converted to a mosaic dataset in the file geodatabase. The source raster in its native format is in the GroundOverlays folder at the same level as the output file geodatabase. Ground overlays are not converted by default. Use the Include Ground Overlay parameter to create rasters.

    License:

    Use of the Include Ground Overlay parameter to create a mosaic dataset requires a Desktop Standard license.

    Note:

    Converting overlays using the KML To Layer tool may take a long time, depending on the source data. All available rasters and overlays in the KML will be converted. All of the imagery will be converted if a KML references a service that provides imagery. Highly detailed imagery may take a long time to convert due its file size.

  • Output will be generated in the WGS84 coordinate system. The output features can be reprojected to another coordinate system using the Project tool.

  • Input up to KMZ version 2.2 of the OGC KML standard is mostly supported. Point locations that use the address tag (by way of geocoding) are not supported. A valid latitude and longitude location is required in the source KML.

  • The ArcGIS Pro 1.3 release introduced native support for KML and KMZ as data sources. To perform geoprocessing operations on a KML layer, it must be converted to features in a file geodatabase. Using the KML to Layer tool, select the KML layer from the Contents menu and drag it into the Input KML File parameter of the tool. After it has been converted, perform the geoprocessing operation on the new output.

Parameters

LabelExplanationData Type
Input KML File

The .kml or .kmz file that will be converted.

File; KML Layer
Output Location

The destination folder for the file geodatabase and layer file (.lyrx).

Folder
Output Data Name
(Optional)

The name of the output file geodatabase and layer file. The default is the name of the input file.

String
Include Ground Overlay
(Optional)

Specifies whether ground overlays from the KML (raster, air photos, and so on) will be included in the output.

Use caution if the KMZ points to a service that serves raster imagery. The tool will attempt to convert the raster imagery at all available scales. This process may be lengthy and possibly overwhelm the service.

  • Checked—Ground overlay will be included in the output.
  • Unchecked—Ground overlays will not be included in the output. This is the default.
Boolean

Derived Output

LabelExplanationData Type
Output Layer File

The output layer file.

Group Layer
Output File Geodatabase

The output geodatabase containing a feature class in a feature dataset.

Workspace

Licensing information

  • Basic: Limited
  • Standard: Yes
  • Advanced: Yes

Related topics