+ use BOOST_FOREACH

This commit is contained in:
Artem Pavlenko 2012-04-08 12:12:12 +01:00
parent e513b4772d
commit fdc80ad278
3 changed files with 9 additions and 7 deletions

View File

@ -21,6 +21,8 @@
*****************************************************************************/
//$Id$
// boost
#include <boost/foreach.hpp>
// mapnik
#include <mapnik/agg_renderer.hpp>
#include <mapnik/agg_helpers.hpp>
@ -116,16 +118,14 @@ void agg_renderer<T>::process(line_symbolizer const& sym,
if (stroke_.has_dash()) converter.set<dash_tag>();
converter.set<stroke_tag>(); //always stroke
for (unsigned i=0;i<feature->num_geometries();++i)
BOOST_FOREACH( geometry_type & geom, feature->paths())
{
geometry_type & geom = feature->get_geometry(i);
if (geom.num_points() > 1)
{
converter.apply(geom);
}
}
agg::rendering_buffer buf(current_buffer_->raw_data(),width_,height_, width_ * 4);
if (sym.comp_op() == clear)

View File

@ -21,6 +21,8 @@
*****************************************************************************/
//$Id$
// boost
#include <boost/foreach.hpp>
// mapnik
#include <mapnik/agg_renderer.hpp>
#include <mapnik/agg_helpers.hpp>
@ -142,9 +144,8 @@ void agg_renderer<T>::process(polygon_pattern_symbolizer const& sym,
converter.set<transform_tag>(); //always transform
//if (sym.smooth() > 0.0) converter.set<smooth_tag>(); // optional smooth converter
for (unsigned i=0;i<num_geometries;++i)
BOOST_FOREACH( geometry_type & geom, feature->paths())
{
geometry_type & geom = feature->get_geometry(i);
if (geom.num_points() > 2)
{
converter.apply(geom);

View File

@ -21,6 +21,8 @@
*****************************************************************************/
//$Id$
// boost
#include <boost/foreach.hpp>
// mapnik
#include <mapnik/agg_renderer.hpp>
#include <mapnik/agg_helpers.hpp>
@ -56,9 +58,8 @@ void agg_renderer<T>::process(polygon_symbolizer const& sym,
converter.set<transform_tag>(); //always transform
if (sym.smooth() > 0.0) converter.set<smooth_tag>(); // optional smooth converter
for (unsigned i=0;i<feature->num_geometries();++i)
BOOST_FOREACH( geometry_type & geom, feature->paths())
{
geometry_type & geom=feature->get_geometry(i);
if (geom.num_points() > 2)
{
converter.apply(geom);