ソースを参照

Fix, region methods: zoom and align after the module is called update the region attributes

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@54259 15284696-431f-4ddb-bdfa-cd5b030d7da7
Pietro Zambelli 12 年 前
コミット
cbc9c53949
1 ファイル変更2 行追加0 行削除
  1. 2 0
      lib/python/pygrass/region.py

+ 2 - 0
lib/python/pygrass/region.py

@@ -195,10 +195,12 @@ class Region(object):
     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