|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r76013 - in trunk/libs/geometry/doc/src/examples: algorithms geometries/register
From: barend.gehrels_at_[hidden]
Date: 2011-12-17 06:34:58
Author: barendgehrels
Date: 2011-12-17 06:34:57 EST (Sat, 17 Dec 2011)
New Revision: 76013
URL: http://svn.boost.org/trac/boost/changeset/76013
Log:
Fixed multi/wkt examples
Text files modified:
trunk/libs/geometry/doc/src/examples/algorithms/create_svg_overlay.hpp | 2 +-
trunk/libs/geometry/doc/src/examples/geometries/register/multi_point.cpp | 1 +
trunk/libs/geometry/doc/src/examples/geometries/register/multi_point_templated.cpp | 1 +
3 files changed, 3 insertions(+), 1 deletions(-)
Modified: trunk/libs/geometry/doc/src/examples/algorithms/create_svg_overlay.hpp
==============================================================================
--- trunk/libs/geometry/doc/src/examples/algorithms/create_svg_overlay.hpp (original)
+++ trunk/libs/geometry/doc/src/examples/algorithms/create_svg_overlay.hpp 2011-12-17 06:34:57 EST (Sat, 17 Dec 2011)
@@ -36,7 +36,7 @@
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;
Modified: trunk/libs/geometry/doc/src/examples/geometries/register/multi_point.cpp
==============================================================================
--- trunk/libs/geometry/doc/src/examples/geometries/register/multi_point.cpp (original)
+++ trunk/libs/geometry/doc/src/examples/geometries/register/multi_point.cpp 2011-12-17 06:34:57 EST (Sat, 17 Dec 2011)
@@ -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;
Modified: trunk/libs/geometry/doc/src/examples/geometries/register/multi_point_templated.cpp
==============================================================================
--- trunk/libs/geometry/doc/src/examples/geometries/register/multi_point_templated.cpp (original)
+++ trunk/libs/geometry/doc/src/examples/geometries/register/multi_point_templated.cpp 2011-12-17 06:34:57 EST (Sat, 17 Dec 2011)
@@ -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)
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk