<div dir="ltr"><div>Hi Pietro, thanks for the explanation<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 17, 2015 at 7:38 AM, Pietro <span dir="ltr"><<a href="mailto:peter.zamb@gmail.com" target="_blank">peter.zamb@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear Paulo,<br>
<br>
as explained by Vaclav:<br>
<br>
"If you change region in C or using ctypes in Python, it is affecting<br>
only the current process." [0].<br>
<br>
Therefore the pygrass Region, that it is using C through ctypes, it is<br>
working only on the current process.<br>
<br>
"On the hand, if you change region using g.region, only region for<br>
subprocesses is changed but library functions are not affected. So, g.region<br>
will affect pygrass.modules.Module but not pygrass.raster, pygrass.vector<br>
and others." [1]<br>
<br>
I hope this make the things clearer.<br>
<br>
Best regards<br>
<br>
Pietro<br>
<br>
[0] <a href="https://lists.osgeo.org/pipermail/grass-dev/2014-February/067543.html" target="_blank">https://lists.osgeo.org/pipermail/grass-dev/2014-February/067543.html</a><br>
[1] <a href="https://lists.osgeo.org/pipermail/grass-dev/2014-July/070200.html" target="_blank">https://lists.osgeo.org/pipermail/grass-dev/2014-July/070200.html</a><br>
</blockquote></div><br></div>