漏洞
漏洞 ID 编号 | BUG-000106416 |
---|---|
已提交 | July 7, 2017 |
上次修改时间 | November 16, 2022 |
适用范围 | ArcGIS CityEngine |
找到的版本 | 2017.0 |
操作系统 | Windows OS |
操作系统版本 | 7.0 64 Bit |
状态 | Under Consideration |
Use this python function to find attribute type mismatches: def findAttributeTypeMismatch(shapes): sceneAttributeList = [] sceneAttributeTypeList = [] badAttributes = [] badAttributeTypes = [] for shape in shapes: shapeAttributeList = ce.getAttributeList(shape) for attributeName in shapeAttributeList: attributeType = type(ce.getAttribute(shape, attributeName)) if attributeName not in sceneAttributeList: sceneAttributeList.append(attributeName) sceneAttributeTypeList.append(attributeType) else: expectedType = sceneAttributeTypeList[sceneAttributeList.index(attributeName)] if attributeType != expectedType: if attributeName not in badAttributes: badAttributes.append(attributeName) badAttributeTypes.append([expectedType,attributeType]) print badAttributeTypes return badAttributes.
漏洞 ID: BUG-000106416
软件:
获取来自 ArcGIS 专家的帮助
下载 Esri 支持应用程序