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)
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.