Bug
Bug-ID-Nummer | BUG-000106416 |
---|---|
Eingereicht | July 7, 2017 |
Zuletzt geändert | November 16, 2022 |
Gilt für | ArcGIS CityEngine |
Gefunden in Version | 2017.0 |
Betriebssystem | Windows OS |
Betriebssystemversion | 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:
Unterstützung durch ArcGIS-Experten anfordern
Esri Support App herunterladen