This commit is contained in:
Dane Springmeyer 2013-12-11 07:25:23 -08:00
parent b7dda95d84
commit d3836bc71a

View file

@ -59,7 +59,7 @@ bool svg_renderer<OutputIterator>::process(rule::symbolizers const& syms,
// process each symbolizer to collect its (path) information. // process each symbolizer to collect its (path) information.
// path information (attributes from line_ and polygon_ symbolizers) // path information (attributes from line_ and polygon_ symbolizers)
// is collected with the path_attributes_ data member. // is collected with the path_attributes_ data member.
for (symbolizer const& sym : syms) for (auto const& sym : syms)
{ {
if (is_path_based(sym)) if (is_path_based(sym))
{ {
@ -71,9 +71,8 @@ bool svg_renderer<OutputIterator>::process(rule::symbolizers const& syms,
if (process_path) if (process_path)
{ {
// generate path output for each geometry of the current feature. // generate path output for each geometry of the current feature.
for(std::size_t i=0; i<feature.num_geometries(); ++i) for (auto & geom : feature.paths())
{ {
geometry_type & geom = feature.get_geometry(i);
if(geom.size() > 0) if(geom.size() > 0)
{ {
path_type path(t_, geom, prj_trans); path_type path(t_, geom, prj_trans);