arcpy.SelectLayerByAttribute_management("Culvert_subset", "SUBSET_SELECTION", '''"STD_CND" in ('poor', 'Very Poor', '')''')
import arcpy arcpy.env.workspace = "W:\ENG\Geomatics\PROJECT\Python Script" arcpy.Buffer_analysis("5yrContract_subset", "Cont_Buff", "50 METERS", "FULL", "FLAT", "NONE") arcpy.SelectLayerByLocation_management("Culvert_subset", "INTERSECT", "Cont_Buff") arcpy.SelectLayerByAttribute_management("Culvert_subset","SUBSET_SELECTION", '''"STD_CND" in ('poor', 'Very Poor' '')''' Parsing error <type 'exceptions.SyntaxError'>: invalid syntax (line 8)
'"STD_CND" = poor' or '"STD_CND = Very Poor' or '"STD_CND" = ""'
'''"STD_CND" in ('poor', 'Very poor', '')'''
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.