Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cody-scott/arcpy_multiprocessing_template

Template for multiprocessing in arcpy. Structure and helper code for creating multiprocess tools and toolboxes for arcpy.
https://github.com/cody-scott/arcpy_multiprocessing_template

arcgis arcpy

Last synced: 12 days ago
JSON representation

Template for multiprocessing in arcpy. Structure and helper code for creating multiprocess tools and toolboxes for arcpy.

Awesome Lists containing this project

README

        

example has full example of the code implemented
multi_worker has outline

If passing arcpy classes convert to well known text geometries to pass in and handle appropriately.
Will need to convert these from Geometries to WKT and back before sending.

Can only send native python classes, hence no arcpy geometry.

Can't share between processes.

Need to consider what you're doing and structure the rest of your code appropriately.
Example would be writing to geodatabases. Can't do it multiprocess, so need to create multiple, then have those return, then write something to merge them all back into one.
Could write to shapefiles instead.

Can't write rasters to the same folder. Need to write each one to its own subfolder.

"code" is the single tool template

Toolbox is the python toolbox example.

Code should be transferable between the single use and the toolbox