mirror of
https://github.com/boostorg/geometry.git
synced 2025-05-11 21:44:04 +00:00
15 lines
338 B
C++
15 lines
338 B
C++
#ifndef BOOST_GEOMETRY_TEST_MYSQL_FROM_WKT_HPP
|
|
#define BOOST_GEOMETRY_TEST_MYSQL_FROM_WKT_HPP
|
|
|
|
#include <boost/geometry/io/wkt/read.hpp>
|
|
|
|
template <typename Geometry>
|
|
Geometry from_wkt(std::string const& wkt)
|
|
{
|
|
Geometry res;
|
|
boost::geometry::read_wkt(wkt, res);
|
|
return res;
|
|
}
|
|
|
|
#endif // BOOST_GEOMETRY_TEST_MYSQL_FROM_WKT_HPP
|