ArcGIS Blog

Analytics

ArcGIS Pro

Streamline Your KML Workflows: Introducing the KML To Geodatabase Tool in ArcGIS Pro

By Xiao Xiao

Approximate Read Time: 3 minutes 

KML (Keyhole Markup Language)  is an XML-based file format used to display geographic data in ArcGIS Earth and Google Earth. Since KML’s inception for Google Earth in the early 2000s, the Open Geospatial Consortium (OGC) KML specification has evolved significantly. Unlike datasets in database, KML does not require all geographic features to follow a fixed structure. As a result, attribute values are often stored in ExtendedData elements.

Because KML and KMZ files remain one of the most common formats for sharing geographic information, reliable conversion workflows are essential for working in ArcGIS Pro.

The Challenge with Legacy KML Conversions

Historically, converting KML data in ArcGIS Pro presented challenges when extracting custom attributes stored in ExtendedData elements. The legacy KML To Layer tool placed tabular popup information into raw HTML strings within a single field. Isolating these structured values required manual text parsing, regex operations, or custom Python scripts. 

KMLTOLayer output table
KML To Layer output table

To address this issue and fulfill one of our top user requests, we introduced the KML To Geodatabase geoprocessing tool to automatically parse ExtendedData attributes directly into structured geodatabase fields. 

What’s New in the KML To Geodatabase Tool 

Starting in ArcGIS Pro 3.8, the KML To Geodatabase tool makes it easier to convert KML data and preserve its attributes in structured geodatabase fields.

KMLTOGDB TOOL UI
KML To GDB

Key Capabilities

The primary highlight of the new tool is native ExtendedData support: ExtendedData attributes within your KML are automatically parsed into individual, structured feature class attribute fields, eliminating the need for manual text or HTML parsing.

The tool also supports the following features:

  • Ground Overlay Raster Support (New in Pro 3.8) : Ground overlays containing raster imagery in your KML files are now fully supported and extracted during conversion. 
  • Automatic Feature & Raster Detection: Simply select your input KML or KMZ file. The tool scans the contents and automatically populates the corresponding output feature classes and raster datasets. 
  • Flexible Output Formats: Despite the name, outputs are not limited to File Geodatabases. The new tool supports Mobile Geodatabases, Enterprise Geodatabases, Shapefiles, and in-memory workspaces (memory\). 
  • Preserved Symbology: Output feature classes are added directly to your active map frame while maintaining the original symbology defined in the source KML. 

Tool Transition & Future Deprecation Notice

⚠️ Important Notice on Tool Deprecation: 

The legacy KML To Layer tool is planned for future deprecation. So, all future feature enhancements, performance optimizations, and primary maintenance efforts will focus exclusively on the KML To Geodatabase tool. 

When opening the legacy KML To Layer tool in ArcGIS Pro, you will see an informational banner recommending that you switch to the KML To Geodatabase tool. 

We strongly encourage all users to adopt KML To Geodatabase as their primary conversion tool for all attribute-heavy KML files, ground overlay rasters, and general geodatabase workflows. 

How to Get Started

Example: Convert a Native American Homeland file from KML to file geodatabase.

Data: Download the American Indian/Alaska Native Areas/Hawaiian Home Lands file to follow along. 

Open the KML To Geodatabase tool and follow the steps below: 

  1. Input KML (.kml or .kmz): Click the Browse button and select the cb_2018_us_aiannh_500k.kml file.
    Note: The tool automatically detects all feature types and raster overlays within the file and populates the output dataset parameters   
  2. Output Polygon Feature Class: Specify the target location.
    While named KML To Geodatabase, you can choose any geodatabase format (File, Mobile, Enterprise), shapefiles, or write to an in-memory workspace (memory\) for temporary processing. 
  3. Click Run. 
KMLTOGDB WORKFLOW
KML To GDB Workflow

Result: The output feature classes and raster automatically load into your active map frame with the original KML symbology preserved, and ExtendedData attributes fully mapped to native attribute fields. 

kmltogdb output
KML To GDB Output

Summary 

The KML To Geodatabase tool represents a major productivity shift for ArcGIS Pro users working with OGC KML data. By combining direct ExtendedData parsing, ground overlay raster support, flexible output options, and automatic schema population into a single, modern geoprocessing tool, you can now skip manual data cleanup and get straight to spatial analysis. Give the tool a try in your next project!

Share this article

Leave a Reply

Related articles