Some complex polygon features are not exported to KML correctly.
Last Published: August 25, 2014ArcGIS for Desktop
Bug ID Number
NIM065190
Submitted
February 16, 2011
Last Modified
June 5, 2024
Applies to
ArcGIS for Desktop
Version found
10.0
Status
Known Limit
After review by the development team, it has been determined that this issue is related to a known limitation with the software that lies outside of Esri's control. The issue's Additional Information section may contain further explanation.
Additional Information
Some KML clients cannot draw features with more than 30k vertices
Workaround
Run the following script from the python window to determine if you have any polygons where a single feature has more than 30,000 vertices. You can then generalize or split the polygon.Note - ArcGIS Explorer does not have any issues with drawing KML that has a large number of vertices. The issue is specific to certain clients and their inability to draw more than 30k features.import arcpy, osoverLimit = []mxd = arcpy.mapping.MapDocument("current")df = arcpy.mapping.ListDataFrames(mxd)[0]for lyr in arcpy.mapping.ListLayers(mxd, '', df): inFeats = lyr.dataSource if arcpy.Describe(inFeats).shapeType == "Polygon": print lyr.name desc = arcpy.Describe(inFeats) rows = arcpy.SearchCursor(inFeats) shapeName = desc.ShapeFieldName for row in rows: feat = row.getValue(shapeName) if feat.pointCount > 30000: overLimit.append((lyr.name, row.getValue(desc.OIDFieldName), feat.pointCount)) del rows del shapeName del inFeats print "==================="if len(overLimit) == 0: print "Nothing over 30k"else: print overLimit