Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Delete Identical Features based on Field Name and Rig Number field, not deleting field names with null values.
- FC = r'C:ScriptsDrilling_Rig_DeduplicationDrilling_Rigs.gdbMERGED_RIGS'
- cursor = arcpy.UpdateCursor(FC)
- for row in cursor:
- fieldValue = row.FIELD_NAME
- if row.FIELD_NAME is not None:
- arcpy.DeleteIdentical_management(FC, ["FIELD_NAME","RGNMBRCLC"])
- else:
- print "nothing left to delete"
- del row, cursor
- print "dedup process done"
- print arcpy.GetMessages()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement