mpoly_t;
+
+ typedef bg::model::ring oring_t;
+ typedef bg::model::polygon
opoly_t;
+ typedef bg::model::multi_polygon ompoly_t;
+
+ test_linear("LINESTRING(4 -4, 4 -1)");
+ test_linear("LINESTRING(4 4, 4 1)");
+ test_linear("LINESTRING(0 0, 180 0)");
+ test_linear("LINESTRING(1 1, -179 -1)");
+
+ test_linear("LINESTRING(1 1, 2 2, 4 2)");
+ test_linear("MULTILINESTRING((1 1, 2 2),(2 2, 4 2))");
+
+ test_areal("POLYGON((1 1, 1 2, 2 2, 1 1))");
+ test_areal("POLYGON((1 1, 1 4, 4 4, 4 1, 1 1),(1 1, 2 2, 2 3, 1 1))");
+ test_areal("MULTIPOLYGON(((1 1, 1 4, 4 4, 4 1, 1 1),(1 1, 2 2, 2 3, 1 1)),((4 4, 5 5, 5 4, 4 4)))");
+
+ test_areal("POLYGON((1 1, 1 2, 2 2))");
+ test_areal("POLYGON((1 1, 1 4, 4 4, 4 1),(1 1, 2 2, 2 3))");
+ test_areal("MULTIPOLYGON(((1 1, 1 4, 4 4, 4 1),(1 1, 2 2, 2 3)),((4 4, 5 5, 5 4)))");
+
+ test_areal("POLYGON((0 0,0 40,40 40,40 0,0 0))");
+ test_areal("POLYGON((0 0,0 40,40 40,40 0))");
+}
+
+int test_main(int, char* [])
+{
+ test_all< bg::model::point >();
+ test_all< bg::model::point > >();
+ test_all< bg::model::point > >();
+
+ return 0;
+}