Loop through SQL expression in ArcPy? with Make Feature layer

المشرف العام

Administrator
طاقم الإدارة
im trying to create individual feature layers for each unique ID in a feature class. I keep getting this error:

ExecuteError: ERROR 000230: Failed selecting with UNIQUEID=(1.0,)Failed to execute (MakeFeatureLayer).

Here is my code:

fc1 = BEN_layer field1 = "UNIQUEID" cursor1 = arcpy.da.SearchCursor(fc1, (field1)) for id in cursor1: #extract out individual nest query = "UNIQUEID" + "=" + str(id) arcpy.MakeFeatureLayer_management(BEN_layer, "BEN", query)

أكثر...
 
أعلى