get_turns(L,L) fixed another case for opposite linestrings

This commit is contained in:
Adam Wulkiewicz
2014-02-11 17:06:43 +01:00
parent 4a4acf00cb
commit 5bb4c45ff5
2 changed files with 18 additions and 9 deletions

View File

@@ -140,6 +140,8 @@ void test_geometry(std::string const& wkt1, std::string const& wkt2,
//TEST
//#include <to_svg.hpp>
//#include <boost/geometry.hpp>
//#include <boost/geometry/multi/geometries/multi_linestring.hpp>
template <typename T>
void test_all()
@@ -187,6 +189,9 @@ void test_all()
test_geometry<ls, ls>("LINESTRING(1 0,2 1,3 5)", "LINESTRING(0 0,1 0,2 1,3 5,4 0)", "txu", "ecc", "tii");
test_geometry<ls, ls>("LINESTRING(3 5,2 1,1 0)", "LINESTRING(0 0,1 0,2 1,3 5,4 0)", "tiu", "ecc", "txi");
test_geometry<ls, ls>("LINESTRING(0 0,10 0)", "LINESTRING(-1 -1,1 0,10 0,20 -1)", "mii", "txu");
test_geometry<ls, ls>("LINESTRING(0 0,10 0)", "LINESTRING(20 -1,10 0,1 0,-1 -1)", "miu", "txi");
//if ( boost::is_same<T, double>::value )
//{
// to_svg<ls, ls>("LINESTRING(0 0,1 0,2 0,2.5 0,3 1)", "LINESTRING(0 0,2 0,2.5 0,3 1)", "test11.svg");