Example #1
0
    def get_current(self):
        """Get the current working region of this process
        and store it into this Region object

        Previous calls to set_current() affects values returned by this function.
        Previous calls to read() affects values returned by this function
        only if the current working region is not initialized.

         Example:

         >>> r = Region()
         >>> r.north
         40.0

         >>> r.north = 30
         >>> r.north
         30.0
         >>> r.get_current()
         >>> r.north
         40.0

        """
        libgis.G_get_set_window(self.byref())
Example #2
0
 def __init__(self):
     self._region = libgis.Cell_head()
     libgis.G_get_set_window(c.byref(self._region))
Example #3
0
 def get_current(self):
     libgis.G_get_set_window(self.c_region)
Example #4
0
 def get_current(self):
     """Set the current GRASS region to the Region object"""
     libgis.G_get_set_window(self.c_region)