<div dir="ltr">Hi Moritz,<br><br>No I mean to process in parallel the stats over many vector entities for example areas. Immagine a large raster with many polygons that want to know the mean or max value in the area.<br><br>Ciao,<br><br>Lorenzo</div><div class="gmail_extra"><br><div class="gmail_quote">2018-06-14 13:20 GMT+02:00 Stefan Blumentrath <span dir="ltr"><<a href="mailto:Stefan.Blumentrath@nina.no" target="_blank">Stefan.Blumentrath@nina.no</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Yes, access to attributes would be a challenge / bottleneck for parallelisation, esp. if you have many areas in your vector map. Note that not only SQLite but also DBF is still supported (which puts some limitations)...<br>
<br>
Please note also: <a href="https://trac.osgeo.org/grass/ticket/3523" rel="noreferrer" target="_blank">https://trac.osgeo.org/grass/<wbr>ticket/3523</a> for some suggestions for speeding up v.rast.stats (without parallelisation).<br>
Once multiple raster map input is supported, statistics could be computed in parallel for each raster map and then finally uploaded to the attribute table in one single process...<br>
Yet, the region adjustment performed by v.rast.stats would then have to be handled differently from current solution...<br>
<br>
I would say it is worth a ticket...<br>
<br>
If you want a text file, you could use r.univar directly, no? <br>
<br>
Cheers<br>
Stefan<br>
<div><div class="h5"><br>
-----Original Message-----<br>
From: grass-dev <<a href="mailto:grass-dev-bounces@lists.osgeo.org">grass-dev-bounces@lists.<wbr>osgeo.org</a>> On Behalf Of Moritz Lennert<br>
Sent: torsdag 14. juni 2018 13:05<br>
To: Lorenzo Bottaccioli <<a href="mailto:lorenzo.bottaccioli@gmail.com">lorenzo.bottaccioli@gmail.com</a><wbr>>; GRASS developers list <<a href="mailto:grass-dev@lists.osgeo.org">grass-dev@lists.osgeo.org</a>><br>
Subject: Re: [GRASS-dev] v.rast.stats parallel process<br>
<br>
On 14/06/18 12:24, Lorenzo Bottaccioli wrote:<br>
> Hi all,<br>
> <br>
> There is any chance that the v.rast.stats will be paralellized?<br>
<br>
You mean to treat several rasters at the same time ?<br>
<br>
It shouldn't be too complicated to write a wrapper script for this. I would imagine the biggest problem to be the handling of the access to the attribute database file. Not sure that you can have concurrent access to this file by several parallel processes. If this is an issue, we would probably have to add the option to output v.rast.stats results to text files and then load content of these files into at the attribute table of the vector map at the end...<br>
<br>
Moritz<br>
</div></div>______________________________<wbr>_________________<br>
grass-dev mailing list<br>
<a href="mailto:grass-dev@lists.osgeo.org">grass-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/grass-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/grass-dev</a><br>
</blockquote></div><br></div>