mirror of
https://github.com/boostorg/geometry.git
synced 2026-02-15 13:12:10 +00:00
[point iterator] add missing definition of from_wkt in unit test;
This commit is contained in:
@@ -26,7 +26,6 @@
|
||||
#include <boost/geometry/multi/io/dsv/write.hpp>
|
||||
#include <boost/geometry/multi/io/wkt/write.hpp>
|
||||
#include <boost/geometry/multi/io/wkt/read.hpp>
|
||||
#include "../algorithms/from_wkt.hpp"
|
||||
|
||||
#include <boost/geometry/core/point_iterator.hpp>
|
||||
|
||||
@@ -42,6 +41,16 @@ typedef bg::model::multi_point<point_type> multi_point_type;
|
||||
typedef bg::model::multi_linestring<linestring_type> multi_linestring_type;
|
||||
typedef bg::model::multi_polygon<polygon_type> multi_polygon_type;
|
||||
|
||||
|
||||
template <typename Geometry>
|
||||
Geometry from_wkt(std::string const& wkt)
|
||||
{
|
||||
Geometry res;
|
||||
boost::geometry::read_wkt(wkt, res);
|
||||
return res;
|
||||
}
|
||||
|
||||
|
||||
struct equals
|
||||
{
|
||||
template <typename Iterator>
|
||||
|
||||
Reference in New Issue
Block a user