@@ -798,24 +798,6 @@ def test_to_bbox_dict_from_geometry(self):
798798 geometry = shapely .geometry .Polygon ([(4 , 2 ), (7 , 4 ), (5 , 8 ), (3 , 3 ), (4 , 2 )])
799799 assert to_bbox_dict (geometry ) == {"west" : 3 , "south" : 2 , "east" : 7 , "north" : 8 }
800800
801- def test_as_polygon (self ):
802- bbox = BBoxDict (west = 1 , south = 2 , east = 3 , north = 4 )
803- polygon = bbox .as_polygon ()
804- assert isinstance (polygon , shapely .geometry .Polygon )
805- assert shapely .geometry .mapping (polygon ) == {
806- "type" : "Polygon" ,
807- "coordinates" : (((3 , 2 ), (3 , 4 ), (1 , 4 ), (1 , 2 ), (3 , 2 )),),
808- }
809-
810- def test_as_polygon_across_anti_meridian (self ):
811- bbox = BBoxDict (west = 170 , south = 50 , east = - 170 , north = 51 , crs = 4326 )
812- polygon = bbox .as_polygon ()
813- assert isinstance (polygon , shapely .geometry .Polygon )
814- assert shapely .geometry .mapping (polygon ) == {
815- "type" : "Polygon" ,
816- "coordinates" : (((190 , 50 ), (190 , 51 ), (170 , 51 ), (170 , 50 ), (190 , 50 )),),
817- }
818-
819801 def test_as_geometry_basic (self ):
820802 bbox = BBoxDict (west = 1 , south = 2 , east = 3 , north = 4 )
821803 polygon = bbox .as_geometry ()
0 commit comments