doc = DOM.parse(sddraft) #turn on caching in the configuration properties configProps = doc.getElementsByTagName('ConfigurationProperties')[0] propArray = configProps.firstChild propSets = propArray.childNodes for propSet in propSets: keyValues = propSet.childNodes for keyValue in keyValues: if keyValue.tagName == 'Key': print "found Key" print str(keyValue.firstChild.data) if keyValue.firstChild.data == "KeepExistingMapCache": print "found keep existing cache prop" #keep existing caching keyValue.nextSibling.firstChild.data = 'true' elif keyValue.firstChild.data == "isCached": print "found is cached prop" #turn on caching keyValue.nextSibling.firstChild.data = 'true' elif keyValue.firstChild.data == "antialiasingMode": keyValue.nextSibling.firstChild.data = 'Fast'
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.