Fixed multi/wkt examples

[SVN r76013]
This commit is contained in:
Barend Gehrels
2011-12-17 11:34:57 +00:00
parent 30b6ba4395
commit d3e829ffd8
3 changed files with 3 additions and 1 deletions

View File

@@ -36,7 +36,7 @@ void create_svg(std::string const& filename, Geometry const& a, Geometry const&
mapper.map(a, "fill-opacity:0.5;fill:rgb(153,204,0);stroke:rgb(153,204,0);stroke-width:2");
mapper.map(b, "fill-opacity:0.3;fill:rgb(51,51,153);stroke:rgb(51,51,153);stroke-width:2");
int i = 0;
BOOST_FOREACH(Geometry const& g, range)
BOOST_FOREACH(typename boost::range_value<Range>::type const& g, range)
{
mapper.map(g, "opacity:0.8;fill:none;stroke:rgb(255,128,0);stroke-width:4;stroke-dasharray:1,7;stroke-linecap:round");
std::ostringstream out;

View File

@@ -14,6 +14,7 @@
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/adapted/boost_tuple.hpp>
#include <boost/geometry/multi/geometries/register/multi_point.hpp>
#include <boost/geometry/multi/io/wkt/wkt.hpp>
typedef boost::tuple<float, float> point_type;

View File

@@ -14,6 +14,7 @@
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/adapted/boost_tuple.hpp>
#include <boost/geometry/multi/geometries/register/multi_point.hpp>
#include <boost/geometry/multi/io/wkt/wkt.hpp>
BOOST_GEOMETRY_REGISTER_MULTI_POINT_TEMPLATED(std::deque)