[GRASS-dev] Problems using pygrass' Region()

Paulo van Breugel p.vanbreugel at gmail.com
Tue Feb 17 00:03:30 PST 2015


Hi Pietro, thanks for the explanation

On Tue, Feb 17, 2015 at 7:38 AM, Pietro <peter.zamb at gmail.com> wrote:

> Dear Paulo,
>
> as explained by Vaclav:
>
> "If you change region in C or using ctypes in Python, it is affecting
> only the current process." [0].
>
> Therefore the pygrass Region, that it is using C through ctypes, it is
> working only on the current process.
>
> "On the hand, if you change region using g.region, only region for
> subprocesses is changed but library functions are not affected. So,
> g.region
> will affect pygrass.modules.Module but not pygrass.raster, pygrass.vector
> and others." [1]
>
> I hope this make the things clearer.
>
> Best regards
>
> Pietro
>
> [0] https://lists.osgeo.org/pipermail/grass-dev/2014-February/067543.html
> [1] https://lists.osgeo.org/pipermail/grass-dev/2014-July/070200.html
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20150217/c8bf98e3/attachment.html>


More information about the grass-dev mailing list