KML To Layer

Title  KML To Layer

Summary

Converts a .kml or .kmz file into datasets in a geodatabase and a layer file. The layer file maintains the symbology of the input .kml or .kmz file.


Usage

Syntax

Parameter Explanation
in_kml_file

The .kml or .kmz file that will be converted to geodatabase datasets.

output_data (Optional)

A name that will be used for both the output geodatabase and layer file (.lyrx). The default is the name of the input file.You can specify the name of an existing geodatabase in the target folder, and the conversion will write new datasets into the existing geodatabase. If the geodatabase with the specified name does not exist, it will be created in the target folder.

include_groundoverlay (Optional)

Specifies whether ground overlays from the KML will be included in the output.Use caution if the KMZ points to a service that serves imagery. The tool will attempt to convert the raster imagery at all available scales. This process may be lengthy and possibly overwhelm the server or time out.Checked—Ground overlays will be included in the output.Unchecked—Ground overlays will not be included in the output. This is the default.

out_suffix (Optional)

A suffix that will be added to the names of all output feature datasets, feature classes, mosaic datasets, and layer files. If no suffix is specified, the name of the feature dataset in the output geodatabase will be Placemarks.

Code Samples

Tags

change, convert, export, google, google earth, import, key hole, keyhole, kml, kmz, layer, markup, network link, turn, xml

Credits

Use limitations