ref #2755 test if centroid is within bounding box

This commit is contained in:
artemp 2015-04-09 12:40:06 +02:00
parent 3f1aa7b4b4
commit fb61a2bb90

View file

@ -220,6 +220,7 @@ void apply_markers_multi(feature_impl const& feature, attributes const& vars, Co
multi_policy == MARKER_WHOLE_MULTI)
{
geometry::point pt;
// test if centroid is contained by bounding box
if (geometry::centroid(geom, pt) && converter.disp_.args_.bbox.contains(pt.x, pt.y))
{
// unset any clipping since we're now dealing with a point