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)
def to_shapely(self): return ShapelyBox(*(self.shapely_format()))