Some complex polygon features are not exported to KML correctly.
上次发布: August 25, 2014ArcGIS for Desktop
漏洞 ID 编号
NIM065190
已提交
February 16, 2011
上次修改时间
June 5, 2024
适用范围
ArcGIS for Desktop
找到的版本
10.0
状态
Known Limit
经开发团队审核,已确定此问题与不受 Esri 控制的软件的已知限制有关。 问题的“其他信息”部分可能包含进一步说明。
附加信息
Some KML clients cannot draw features with more than 30k vertices
解决办法
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