示例#1
0
 def test_from_shapely(self):
     shape = ShapelyBox(self.xmin, self.ymin, self.xmax, self.ymax)
     output_box = Box.from_shapely(shape)
     self.assertEqual(output_box, self.box)
示例#2
0
 def to_shapely(self):
     return ShapelyBox(*(self.shapely_format()))