Hi, I am working on trying to write a script to identify point data within a certain distance of each other. This point data is broken down into 6 types as well. These types have different xy tolerance values, so I am trying to assign the xy tolerance to each type, then loop through each of them and output the results into a separate table for each type. The issue is that ArcPro is just putting all of the original points into every output table and assigning them all to the same FEAT_SEQ. Every output table is identical. Any help would be appreciated!
*note: for privacy reasons, I have redacted the output gdb location
----------------------------------------------------------------------------------------------------------------------------
import arcpy
output_workspace = r"GDB_location.gdb"
location_domain = {
"Depot": 100,
"Station": 100,
"Stop": 5,
"Yard": 100,
"Switch": 5,
"Level_Crossing": 5,
}
try:
for location_type, xy_tolerance in location_domain.items():
output_feature_class = arcpy.CreateUniqueName(f"Identical_{location_type}", output_workspace)
arcpy.management.FindIdentical('Railway_POI_1', output_feature_class, ["shape"], location_domain[location_type])
print(f"Duplicated records for {location_type} have been identified and saved to {output_feature_class}.")
except arcpy.ExecuteError:
print(arcpy.GetMessages())