if int(gp.GetCount_management(featureLayer).getoutput(0)) > 0: do this else: do that
if int(gp.GetCount_management(gp.describe(featureLayer).catalogpath).getoutput(0)) > int(gp.GetCount_management(featureLayer).getoutput(0)): do this else: do that
selectedOidList = [int(oid) for oid in gp.describe(featureLayer).fidset.split(";")]
result = gp.GetCount_management(featureLayer) count = int(result)
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.