[pdal] looping multiple bounding coordinates in PDAL

Nicolas Cadieux nicolas.cadieux at archeotec.ca
Tue Dec 10 11:09:24 PST 2019


Yes very easy,

That section is commented out for now in the script. By removing the #, 
you will be able to multi-thread.

Nicolas

On 2019-12-10 1:54 p.m., Jed Frechette wrote:
> On Tue, 10 Dec 2019 13:10:33 -0500 Nicolas Cadieux
> <nicolas.cadieux at archeotec.ca> wrote
>>   4. Runs this command in a loop (the loop is created by using "map" or
>>      "p.map" function that operates on the list of tif files)
> To easily make this multithreaded you can use the multiprocessing
> library. I've got a ton of code running similar types of command line
> tasks in parallel that all boil down to something like the following.
> In production, I tend to also keep a single threaded code path that
> will run the function in a loop for debugging purposes.
>
> from multiprocessing import Pool
>
> def do_task():
>      """Perform what ever standalone task you want to do here."""
>      pass
>
> pool = Pool()
> results = pool.apply_async(do_task)
> pool.close()
> pool.join()
>
>


More information about the pdal mailing list