Bug
Bug ID Number | BUG-000106416 |
---|---|
Submitted | July 7, 2017 |
Last Modified | November 16, 2022 |
Applies to | ArcGIS CityEngine |
Version found | 2017.0 |
Operating System | Windows OS |
Operating System Version | 7.0 64 Bit |
Status | 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.
Bug ID: BUG-000106416
Software:
Get help from ArcGIS experts
Download the Esri Support App