This simple repository shows how multiprocessing can be leveraged in ArcMap and ArcGIS Pro to reduce the processing times of geoprocessing tools. I hope to write more material on the topic in the future, but hope what I have assembled here can be of use. Interested users are encouraged to write to [email protected]. If you are an Arcadis user, you can reach me at [email protected].
HOW TO USE THIS DEMO:
- Open ArcMap or ArcGIS Pro
- Create a new toolbox
- Create a new script tool
- Set the script tool to point to "demo.py"
- Choose whether to run "demo" or "mp_demo" in the main body of the script.
- Run the script tool with no parameters. Compare the different processing times of "demo" vs "mp_demo"
- Inspect "advanced.py" and "advanced_daemon.py" to see how to do real geoprocessing tasks.
The included powerpoint shows diagrams and a brief explanation of how multiprocessing works in the context of ArcMap.