Dear listI try to set the Z values of all vertex of individual lines by a fixed value / attribute. All vertex of a single geometry are getting the same value. Somehow I tried to set the values through the geometry object I retrieve from the cursor. But the values are not written back to the geodatabase.updateRows = arcpy.UpdateCursor(targetLayer) for updateRow in updateRows: shapeObj = updateRow.getValue(shapeFieldName) # Multipart geometries. for partObj in shapeObj: for pointObj in partObj: # Only valid points. if (pointObj != None): # Setting the values of the z cooridnates to a fixed value. pointObj.Z = 9999 updateRow.setValue(shapeFieldName, shapeObj) updateRows.updateRow(updateRow)
I don't understand why the changed geometries are not written to the database. What would be the correct way to do it?I am looking forward to any hint and ideas.Best regards,Yvo