@@ -539,7 +539,7 @@ def test_shift_points():
539539 ).shift_points (point_idxs = 1 , dy = - 10 )
540540 assert (
541541 assymetrical_chan .geom .wkt
542- == "POLYGON ((0 0 , 75 -10 , 75 16 , 8 16 , 8 184 , 75 184 , 75 200 , 0 200 , 0 0 ))"
542+ == "POLYGON ((0 200 , 75 200 , 75 184 , 8 184 , 8 16 , 75 16 , 75 -10 , 0 0 , 0 200 ))"
543543 )
544544
545545
@@ -553,18 +553,19 @@ def test_mirror_section():
553553 ).shift_points (point_idxs = 1 , dy = - 10 )
554554 assert (
555555 assymetrical_chan .mirror_section (axis = "x" ).geom .wkt
556- == "POLYGON ((0 190 , 75 200 , 75 174 , 8 174 , 8 6 , 75 6 , 75 -10 , 0 -10 , 0 190 ))"
556+ == "POLYGON ((0 -10 , 75 -10 , 75 6 , 8 6 , 8 174 , 75 174 , 75 200 , 0 190 , 0 -10 ))"
557557 )
558558 assert (
559559 assymetrical_chan .mirror_section (axis = "y" ).geom .wkt
560- == "POLYGON ((75 0 , 0 -10 , 0 16 , 67 16 , 67 184 , 0 184 , 0 200 , 75 200 , 75 0 ))"
560+ == "POLYGON ((75 200 , 0 200 , 0 184 , 67 184 , 67 16 , 0 16 , 0 -10 , 75 0 , 75 200 ))"
561561 )
562- p = "POLYGON ((100 0, 25 -10, 25 16, 92 16, 92 184, 25 184, 25 200, 100 200, "
563- p += "100 0))"
562+ p = "POLYGON ((100 200, 25 200, 25 184, 92 184, 92 16, 25 16, 25 -10, 100 0, "
563+ p += "100 200))"
564+
564565 assert (
565566 assymetrical_chan .mirror_section (axis = "y" , mirror_point = (50 , 50 )).geom .wkt == p
566567 )
567- p = "POLYGON ((0 100, 75 110 , 75 84, 8 84, 8 - 84, 75 - 84, 75 -100 , 0 - 100, 0 100))"
568+ p = "POLYGON ((0 - 100, 75 -100 , 75 - 84, 8 - 84, 8 84, 75 84, 75 110 , 0 100, 0 - 100))"
568569 assert (
569570 assymetrical_chan .mirror_section (axis = "x" , mirror_point = (50 , 50 )).geom .wkt == p
570571 )
0 commit comments