def read(self, force_read=True): """ Read the region into this region object Reads the region as stored in the WIND file in the user's current mapset into region. 3D values are set to defaults if not available in WIND file. An error message is printed and exit() is called if there is a problem reading the region. <b>Note:</b> GRASS applications that read or write raster maps should not use this routine since its use implies that the active module region will not be used. Programs that read or write raster map data (or vector data) can query the active module region using Rast_window_rows() and Rast_window_cols(). :param force_read: If True the WIND file of the current mapset is re-readed, otherwise the initial region set at process start will be loaded from the internal static variables. :type force_read: boolean """ # Force the reading of the WIND file if force_read: libgis.G_unset_window() libgis.G_get_window(self.byref())
def get_default(self): libgis.G_get_window(self.c_region)
def get_default(self): """Set the default GRASS region to the Region object""" libgis.G_get_window(self.c_region)