1 // Boost.Geometry (aka GGL, Generic Geometry Library)
2 // Unit Tests
3
4 // Copyright (c) 2007-2015 Barend Gehrels, Amsterdam, the Netherlands.
5 // Copyright (c) 2008-2015 Bruno Lalande, Paris, France.
6 // Copyright (c) 2009-2015 Mateusz Loskot, London, UK.
7 // Copyright (c) 2013-2015 Adam Wulkiewicz, Lodz, Poland.
8
9 // Use, modification and distribution is subject to the Boost Software License,
10 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
11 // http://www.boost.org/LICENSE_1_0.txt)
12
13 #ifndef BOOST_GEOMETRY_TEST_FROM_WKT_HPP
14 #define BOOST_GEOMETRY_TEST_FROM_WKT_HPP
15
16 #include <string>
17
18 #include <boost/geometry/io/wkt/read.hpp>
19
20 template <typename Geometry>
from_wkt(std::string const & wkt)21 inline Geometry from_wkt(std::string const& wkt)
22 {
23 Geometry result;
24 boost::geometry::read_wkt(wkt, result);
25 return result;
26 }
27
28 #endif // BOOST_GEOMETRY_TEST_FROM_WKT_HPP
29