|
@@ -221,4 +221,10 @@ class Region(object):
|
|
|
def set_default(self):
|
|
|
self.adjust()
|
|
|
if libgis.G_put_window(self.c_region) < 0:
|
|
|
- raise GrassError("Cannot change region (WIND file).")
|
|
|
+ raise GrassError("Cannot change region (WIND file).")
|
|
|
+
|
|
|
+ def bbox(self):
|
|
|
+ from pygrass.vector.basic import Bbox
|
|
|
+ return Bbox(north=self.north, south=self.south,
|
|
|
+ east=self.east, west=self.west,
|
|
|
+ top=self.top, bottom=self.bottom)
|