diff --git a/include/mapnik/wkb.hpp b/include/mapnik/wkb.hpp index fc32a9fff..a9d5deb99 100644 --- a/include/mapnik/wkb.hpp +++ b/include/mapnik/wkb.hpp @@ -28,6 +28,9 @@ #include #include +// stl +#include + namespace mapnik { diff --git a/test/unit/serialization/wkb_test.cpp b/test/unit/serialization/wkb_test.cpp index 8a617df26..26b019951 100644 --- a/test/unit/serialization/wkb_test.cpp +++ b/test/unit/serialization/wkb_test.cpp @@ -57,6 +57,23 @@ struct spatially_equal_visitor return true; } + result_type operator()(mapnik::geometry::multi_line_string const& lhs, + mapnik::geometry::multi_line_string const& rhs) const + { + + std::size_t size0 = lhs.size(); + std::size_t size1 = rhs.size(); + if (size0 != size1) + return false; + + for (std::size_t index = 0; index < size0; ++index) + { + if (!boost::geometry::equals(lhs[index], rhs[index])) + return false; + } + return true; + } + template result_type operator() (T const& lhs, T const& rhs) const {