Really use filtered geometries.
This commit is contained in:
parent
51d8718701
commit
1bd3e3678c
1 changed files with 3 additions and 5 deletions
|
@ -111,12 +111,10 @@ text_placement_info_ptr text_symbolizer_helper<FaceManagerT, DetectorT>::get_pla
|
||||||
}
|
}
|
||||||
placement_finder<DetectorT> finder(*placement, info, detector_, dims);
|
placement_finder<DetectorT> finder(*placement, info, detector_, dims);
|
||||||
|
|
||||||
unsigned num_geom = feature.num_geometries();
|
BOOST_FOREACH(geometry_type * geom, geometries_to_process_)
|
||||||
for (unsigned i=0; i<num_geom; ++i)
|
|
||||||
{
|
{
|
||||||
geometry_type const& geom = feature.get_geometry(i);
|
if (geom->num_points() == 0) continue; // don't bother with empty geometries
|
||||||
if (geom.num_points() == 0) continue; // don't bother with empty geometries
|
finder.find_placement(angle, *geom, t_, prj_trans);
|
||||||
finder.find_placement(angle, geom, t_, prj_trans);
|
|
||||||
if (!placement->placements.size())
|
if (!placement->placements.size())
|
||||||
continue;
|
continue;
|
||||||
if (writer.first) writer.first->add_text(*placement, font_manager_, feature, t_, writer.second);
|
if (writer.first) writer.first->add_text(*placement, font_manager_, feature, t_, writer.second);
|
||||||
|
|
Loading…
Reference in a new issue