Skip to content

Commit ff1f245

Browse files
Added WKT:Z prefix test case
1 parent df04b36 commit ff1f245

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/io/wkt/wkt.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ void test_all()
175175
{
176176
using namespace boost::geometry;
177177
typedef bg::model::point<T, 2, bg::cs::cartesian> P;
178+
typedef bg::model::point<T, 3, bg::cs::cartesian> PZ;
178179

179180
test_wkt<P>("POINT(1 2)", 1);
180181
test_wkt<bg::model::linestring<P> >("LINESTRING(1 1,2 2,3 3)", 3, 2 * sqrt(2.0));
@@ -200,6 +201,7 @@ void test_all()
200201
"LINESTRING(1 0,2 0,3 0)");
201202
test_relaxed_wkt<P>("POINT ( 1 2) ", "POINT(1 2)");
202203
test_relaxed_wkt<P>("POINT M ( 1 2)", "POINT(1 2)");
204+
test_relaxed_wkt<PZ>("POINT (1 2 3)", "Point Z(1 2 3)");
203205
test_relaxed_wkt<bg::model::box<P> >("BOX(1 1,2 2)", "POLYGON((1 1,1 2,2 2,2 1,1 1))");
204206

205207
test_relaxed_wkt<bg::model::linestring<P> >("LINESTRING EMPTY", "LINESTRING()");

0 commit comments

Comments
 (0)