示例#1
0
 def bounds(self):
     """Returns minimum bounding region (minx, miny, maxx, maxy)"""
     # TODO(shapely-2.0) return empty tuple or (nan, nan, nan, nan)?
     if self.is_empty:
         return ()
     else:
         return tuple(shapely.bounds(self).tolist())
示例#2
0
文件: base.py 项目: mwtoews/shapely
 def bounds(self):
     """Returns minimum bounding region (minx, miny, maxx, maxy)"""
     return tuple(shapely.bounds(self).tolist())
示例#3
0
def test_bounds_dimensions(geom, shape):
    assert shapely.bounds(geom).shape == shape
示例#4
0
def test_bounds(geom, expected):
    assert_array_equal(shapely.bounds(geom), expected)