For ArcGIS users. Some useful ArcPy scripts for batch applying symbology, definition query and map export. Especially useful for creating animated maps or videos, when bulk modification and export of large numbers of layers is required.
The script arcpy_batch_map_export.py contains three code blocks:
For a given MXD file (in layout mode), and a given .LYR file holding template symbology, the script applies the symbology to all layers in the MXD and saves.
Sets an individual definition query for each layer, to only display features with certain attributes. The queries can be defined in a dictionary, or could be set based on the layer name or similar.
Loops oer the layers, sets each layer to "visible" and exports the map to a .PNG file.