Skip to content

Instantly share code, notes, and snippets.

@jflann
jflann / select_identical.py
Created May 31, 2019 11:46
Alt. Esri Find Identical
import arcpy
def select_identical(lyr,fld):
d = {}
f_lyr = arcpy.MakeFeatureLayer_management(lyr)
with arcpy.da.SearchCursor(f_lyr,['OID@',fld]) as cursor:
for row in cursor:
fld_value = row[1]
oid = row[0]
if fld_value not in d: