I am trying to repeatedly change the region in a script. To get the current region I would normally use
>>>reg1 = grass.script.region() When using pygrass, I can also use >>>import grass.pygrass.gis.region as region >>>reg2 = region.Region() The first time I run this reg1 = reg2 Now, when I change the region, and run again: >>>reg3 = grass.script.region() The reg3 values reflect the new region settings. However, when I run >>>reg2 = region.Region() The reg4 values are the same as reg2 How do I get a Region object with the current / changed region settings?
_______________________________________________ grass-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-dev
