[GRASS-SVN] r55599 - grass/trunk/lib/python/pygrass/vector
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Apr 3 01:14:00 PDT 2013
Author: zarch
Date: 2013-04-03 01:14:00 -0700 (Wed, 03 Apr 2013)
New Revision: 55599
Modified:
grass/trunk/lib/python/pygrass/vector/basic.py
Log:
Add new items method to the Bbox class.
Modified: grass/trunk/lib/python/pygrass/vector/basic.py
===================================================================
--- grass/trunk/lib/python/pygrass/vector/basic.py 2013-04-03 08:13:52 UTC (rev 55598)
+++ grass/trunk/lib/python/pygrass/vector/basic.py 2013-04-03 08:14:00 UTC (rev 55599)
@@ -124,7 +124,12 @@
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"""
def __init__(self, boxlist=None):
More information about the grass-commit
mailing list