Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/cody-scott/arcpy_multiprocessing_template
- Owner: cody-scott
- Created: 2018-06-05T20:02:39.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-06-06T13:51:49.000Z (over 6 years ago)
- Last Synced: 2024-04-17T22:10:49.270Z (7 months ago)
- Topics: arcgis, arcpy
- Language: Python
- Size: 8.79 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
example has full example of the code implemented
multi_worker has outlineIf 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