[GRASS-SVN] r54259 - grass/trunk/lib/python/pygrass
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Dec 10 02:25:20 PST 2012
Author: zarch
Date: 2012-12-10 02:25:20 -0800 (Mon, 10 Dec 2012)
New Revision: 54259
Modified:
grass/trunk/lib/python/pygrass/region.py
Log:
Fix, region methods: zoom and align after the module is called update the region attributes
Modified: grass/trunk/lib/python/pygrass/region.py
===================================================================
--- grass/trunk/lib/python/pygrass/region.py 2012-12-10 10:06:29 UTC (rev 54258)
+++ grass/trunk/lib/python/pygrass/region.py 2012-12-10 10:25:20 UTC (rev 54259)
@@ -195,10 +195,12 @@
def zoom(self, raster_name):
"""Shrink region until it meets non-NULL data from this raster map:"""
self._set_param('zoom', str(raster_name))
+ self.get_current()
def align(self, raster_name):
"""Adjust region cells to cleanly align with this raster map"""
self._set_param('align', str(raster_name))
+ self.get_current()
def adjust(self, rows=False, cols=False):
"""Adjust rows and cols number according with the nsres and ewres
More information about the grass-commit
mailing list