Saturday 14 May 2016

arcgis desktop - Can concurrent processes be run in a single model?



In model builder (for Arc GIS 10) is it possible to run two or more geoprocessing operations concurrently?


For example I have to run repair geometry on 2 files and then merge them. Currently it repairs topo of file A and then file B and then merges them. Each file takes about 30h to repair. Can I get it to concurrently repair A & B, wait for both to be complete and then merge them.


At the moment I have to open two instances of arc catalog and run the repair tool on a file in each and once complete do a merge which means that I have to come in to office to check when both are complete...on a quad core, each repair process only uses 1 core at a time.


The above example is simple but if multi-threading is possible where multiple operations are run concurrently (if they don't depend on each other) and wait for the depended files to be complete before the next process is run.


Thanks,



Answer



No, but you may be interested in this Geoprocessing Blog post about using multiprocessing in Python.


You could create a Python script tool that handles the multiprocessing part and call that in ModelBuilder, however I think that it needs to run "out of process" for multiprocessing to work correctly.


Here's an example of a multiprocessing script tool: Find Duplicates in Big Data


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...