[get_turns] Fix turns dumplication for L/L.

Change the ignoring check calculation in get_turn_info_for_endpoint.
Add additional parameters to the second version of collinear_opposite<>::apply() defining if the pk and/or qk are valid (in other words current segment is NOT the last one).
Also make ignoring check for last endpoint in L/A more clear.
This commit is contained in:
Adam Wulkiewicz
2014-04-03 11:58:50 +02:00
parent 2f9f454334
commit ca0c8b97df
5 changed files with 23 additions and 20 deletions

View File

@@ -125,6 +125,10 @@ void test_all()
test_geometry<mls, mls>("MULTILINESTRING((0 0,10 0,30 0))",
"MULTILINESTRING((0 10,5 0,20 0,20 0,30 0),(2 0,2 0),(3 0,3 0,3 0))",
expected("mii")("ccc")("ccc")("txx"));
test_geometry<ls, ls>("LINESTRING(2 2,5 -1,15 2,18 0,20 0)",
"LINESTRING(30 0,19 0,18 0,0 0)",
expected("iuu")("iuu")("tiu")("mxi"));
}
int test_main(int, char* [])