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)
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.