import arcpy EingabeTabelle = r"C:\tmp\Test.gdb\YourTable" field = "Liste" whereClause = field + " IS NULL" updCurs = arcpy.UpdateCursor(EingabeTabelle, whereClause) for row in updCurs: if not row.getValue(field): updCurs.deleteRow(row)
up_curs = arcpy.UpdateCursor(EingabeTabelle,"Liste IS NULL") for row in up_curs: if not row.getValue(Liste): row.deleteRow(row)
up_curs = arcpy.UpdateCursor(fc,"FIELD IS NULL") for row in up_curs: if not row.getValue(FIELD): row.deleteRow(row)
arcpy.MakeFeatureLayer_management(fc,layer) arcpy.SelectLayerByAttribute_management(layer,"FIELD IS NULL") desc = arcpy.Describe(layer) feat_count = int(arcpy.GetCount_management(parcel).getOutput(0)) feat_ids = desc.FIDSet if feat_count > 0 and len(feat_ids) > 0: arcpy.DeleteFeatures_management(layer)
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.