cur = arcpy.UpdateCursor(FC) for row in cur: try: fieldVal = row.getValue(fieldOne) if fieldVal = xyz: value = row.setValue(newField, value)
cur = arcpy.UpdateCursor(FC) for row in cur: try: fieldVal = row.getValue(fieldOne) if fieldVal == xyz: value = row.setValue(newField, value) except Exception as err: Do something useful here or don't use try except at all
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.