pysal.lib.cg.get_bounding_box

pysal.lib.cg.get_bounding_box(items)[源代码]

查找几何图形列表的边界框

参数:
项目:列表

皮萨尔形状

返回:
Rectangle

实例

>>> bb = get_bounding_box([Point((-1, 5)), Rectangle(0, 6, 11, 12)])
>>> bb.left
-1.0
>>> bb.lower
5.0
>>> bb.right
11.0
>>> bb.upper
12.0