Automation

Cutting down on repetitive tasks, mitigating human error, and ensuring data completeness was made possible through geoprocessing tools created with Python scripts using ArcPy and other libraries.

Addressing
Water
Data Quality
Webmaps

WebMap Pop-up Editor

This tool sets each popup title to the name of the feature class. This is helpful for crowded webmaps where a legend is too difficult to sift through for each symbol.

This script logs into the active ArcGIS Pro portal (GIS('pro')) and takes a list of Web Map titles/keywords as input. For each user entry, it searches ArcGIS Online/Portal content for matching Web Map items, then picks the first result and pulls its JSON (webmap.get_data()), specifically the operationalLayers section.

It loops through the operational layers, and when it finds a GroupLayer, it iterates through its sublayers. For each sublayer that has popupInfo, it clears any existing popupInfo['expressionInfos'], then adds a new Arcade expression intended to return the layer name, and updates the popup title to reference that expression. Finally, it saves the modified Web Map JSON back to the item with webmap.update(data=webmap_data).

Previous
Previous

Data Quality