bash-4.3$ cat geom1.cpp#include <boost/geometry.hpp>
#include <boost/geometry/geometries/linestring.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/geometry/geometries/multi_linestring.hpp>
typedef boost::geometry::model::point<double, 2, boost::geometry::cs::geographic<boost::geometry::degree> > point_t;
typedef boost::geometry::model::linestring<point_t > linestring_t;
typedef boost::geometry::model::multi_linestring<linestring_t > multilinestring_t;
using namespace std;
template<typename T, typename S>
bool Inside(string one, string two)
{
T objOne;
S objTwo;
bool inside = false;
boost::geometry::read_wkt(one, objOne);
boost::geometry::read_wkt(two, objTwo);
inside = boost::geometry::within(objOne, objTwo);
return inside;
}
bool Inside(string wktOne, string wktTwo)
{
bool inside;
inside = Inside<multilinestring_t, linestring_t>(wktOne, wktTwo);
return inside;
}