Selaa lähdekoodia

Add new items method to the Bbox class.

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@55599 15284696-431f-4ddb-bdfa-cd5b030d7da7
Pietro Zambelli 12 vuotta sitten
vanhempi
commit
150e487964
1 muutettua tiedostoa jossa 5 lisäystä ja 0 poistoa
  1. 5 0
      lib/python/pygrass/vector/basic.py

+ 5 - 0
lib/python/pygrass/vector/basic.py

@@ -124,6 +124,11 @@ class Bbox(object):
                                               point.z if point.z else 0,
                                               self.c_bbox))
 
+    def items(self):
+        return [('north', self.north), ('south', self.south),
+                ('east', self.east), ('west', self.west),
+                ('top', self.top), ('bottom', self.bottom)]
+
 
 class BoxList(object):
     """Instantiate a BoxList class to create a list of Bounding Box"""