PROBLEM

Warning messages are returned when using the Layer To KML tool in ArcMap

Last Published: March 5, 2021

Description

When converting a polygon feature layer to a KMZ file using the Layer To KML tool in ArcMap, the geoprocessing tool runs successfully, but returns the following warning message:

Warning: 
001385: Feature (OID = <value>) in layer (<value>) has more than 30,000 vertices. This feature may not display in all KML viewers.

The warning message in the Results window when using the Layer To KML geoprocessing tool to convert a polygon feature layer to a KMZ file

Viewing the KMZ layer in other ArcGIS products is successful. In the example below, viewing the KMZ layer in ArcGIS Earth displays all the polygon features

Viewing the KMZ layer in ArcGIS Earth showing all of the polygon features

However, when viewing it in a third-party KML viewer, not all the polygon features are displayed. In the example below, some of the polygon features are not displayed in Google Earth Pro.

Viewing the KMZ layer in Google Earth Pro that does not show all of the polygon features

Cause

The issue occurs when there are more than 30,000 vertices of polygon features

Note: To calculate the number of vertices for each polygon features in a layer, refer to How To: Count the vertices for line or polygon features in ArcMap for more information.

Solution or Workaround

In ArcMap, simplify the polygon feature layer to reduce the vertices using the Generalize tool, and convert it to a KMZ file using the Layer To KML tool.

Note: 
Alternatively, open the KMZ file in another ArcGIS product such as ArcGIS Earth or ArcGIS Pro to view polygon feature layers with more than 30,000 vertices.
  1. Launch ArcMap, and open the desired project with an ArcGIS Desktop Standard or Advanced license.
  2. Open the Search window, and search for the Generalize (Editing) tool. Refer to ArcMap: Using the Search window to search for tools for steps to do this.

The Search window showing the Generalize (Editing) tool in the search result

  1. Configure the Generalize tool parameters as follows:
    1. Select the polygon feature layer from the Input Features drop-down list. In this example, HYDROMETRIC_WATERSHEDS is selected.
    2. Optionally, specify the value for Tolerance (optional). Refer to ArcMap: Syntax for more information. In this example, the tolerance value is set to 0.001 decimal degrees.
    3. Click OK.
The Generalize dialog box showing the input feature with the tolerance value set to 0.001
  1. Convert the polygon feature layer using the Layer To KML tool. Open the Search window, and search for the Layer To KML (Conversion) tool. Refer to ArcMap: Using the Search window to search for tools for steps to do this.
The Search window showing the Layer To KML (Conversion) tool in the search result
  1. Configure the Layer To KML tool parameters as follows:
    1. Select the polygon feature layer from the Layer drop-down list. In this example, HYDROMETRIC_WATERSHEDS is selected.
    2. In Output File, click the browse Image of the browse icon icon to save the KMZ file in the desired location, and provide a name for the file.
    3. Optionally, specify the value for Layer Output Scale (optional). By default, the value is set to 0.
    4. Click OK.
The Layer To KML dialog box showing the default values to convert the input polygon feature layer to a KMZ file
  1. When the Layer To KML tool runs successfully, a pop-up notification is displayed on the system tray. Click the pop-up notification to open the Results window. The geoprocessing tool runs successfully without returning any warning messages.
The Results window of the Layer to KML geoprocessing tool showing that it completed successfully without returning any warning messages that there are more than 30,000 vertices

The image below shows all the polygon features of the KMZ file are displayed in Google Earth Pro.

Google Earth Pro displaying all the polygon features of the KMZ file

Article ID: 000025041

Software:
  • ArcGIS Earth
  • ArcMap

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