Advertisement
Guest User

Untitled

a guest
Mar 5th, 2015
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. #Delete Identical Features based on Field Name and Rig Number field, not deleting field names with null values.
  2. FC = r'C:ScriptsDrilling_Rig_DeduplicationDrilling_Rigs.gdbMERGED_RIGS'
  3. cursor = arcpy.UpdateCursor(FC)
  4. for row in cursor:
  5. fieldValue = row.FIELD_NAME
  6. if row.FIELD_NAME is not None:
  7. arcpy.DeleteIdentical_management(FC, ["FIELD_NAME","RGNMBRCLC"])
  8. else:
  9. print "nothing left to delete"
  10. del row, cursor
  11.  
  12. print "dedup process done"
  13. print arcpy.GetMessages()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement