mirror of
https://github.com/mapnik/mapnik.git
synced 2025-12-08 20:13:09 +00:00
+ use BOOST_FOREACH
This commit is contained in:
parent
e513b4772d
commit
fdc80ad278
@ -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)
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user