()
| 95 | |
| 96 | |
| 97 | def test_serialize_flat_polygon(): |
| 98 | expected = [ |
| 99 | "(0.0, 1.0)\tPOLYGON_BEGIN SHELL_BEGIN\n", |
| 100 | "(2.0, 3.0)\n", |
| 101 | "(4.0, 5.0)\n", |
| 102 | "(0.0, 1.0)\tSHELL_END POLYGON_END\n", |
| 103 | ] |
| 104 | geoms = [Polygon(shell=[(0, 1), (2, 3), (4, 5), (0, 1)])] |
| 105 | output = io.StringIO() |
| 106 | serialize_flat(flatten(geoms), output) |
| 107 | output.seek(0) |
| 108 | |
| 109 | actual = output.readlines() |
| 110 | assert actual == expected |
| 111 | |
| 112 | |
| 113 | def test_serialize_flat_polygon_with_holes(): |
nothing calls this directly
no test coverage detected