I am trying to select Zones that intersect the dataframe (polygon). If there is only one return then I want to turn it into a sting. If there is multiple I want to turn it into a string with " ," (space then comma) in between each.
My code is as follow:
arcpy.MakeFeatureLayer_management(ZoneSHP, "ZoneLYR") arcpy.SelectLayerByLocation_management("ZoneLYR", "INTERSECT", "polygon"): with arcpy.da.SearchCursor(ZoneLYR, "Zone") as cursor: int(arcpy.GetCount_management(ZoneLYR).getOutput(0)) if getOutput == 1: Zone = row else: for row in curser: zone1 = ", " + row Zone = zone1[3:]