diff --git a/include/mapnik/renderer_common/process_group_symbolizer.hpp b/include/mapnik/renderer_common/process_group_symbolizer.hpp index f4bf5ec04..05aa60325 100644 --- a/include/mapnik/renderer_common/process_group_symbolizer.hpp +++ b/include/mapnik/renderer_common/process_group_symbolizer.hpp @@ -225,9 +225,6 @@ private: void update_box() const; }; -geometry_type *origin_point(proj_transform const& prj_trans, - renderer_common const& common); - template void render_offset_placements(placements_list const& placements, pixel_position const& offset, @@ -339,9 +336,15 @@ void render_group_symbolizer(group_symbolizer const& sym, } // add a single point geometry at pixel origin - // FIXME -//sub_feature->add_geometry(origin_point(prj_trans, common)); - + double x = common.width_ / 2.0, y = common.height_ / 2.0, z = 0.0; + common.t_.backward(&x, &y); + prj_trans.forward(x, y, z); + // note that we choose a point in the middle of the screen to + // try to ensure that we don't get edge artefacts due to any + // symbolizers with avoid-edges set: only the avoid-edges of + // the group symbolizer itself should matter. + new_geometry::point origin_pt(x,y); + sub_feature->set_geometry(origin_pt); // get the layout for this set of properties for (auto const& rule : props->get_rules()) { diff --git a/src/renderer_common/process_group_symbolizer.cpp b/src/renderer_common/process_group_symbolizer.cpp index 3725220fb..617e800e3 100644 --- a/src/renderer_common/process_group_symbolizer.cpp +++ b/src/renderer_common/process_group_symbolizer.cpp @@ -208,19 +208,4 @@ void render_thunk_extractor::update_box() const detector.clear(); } -geometry_type *origin_point(proj_transform const& prj_trans, - renderer_common const& common) -{ - // note that we choose a point in the middle of the screen to - // try to ensure that we don't get edge artefacts due to any - // symbolizers with avoid-edges set: only the avoid-edges of - // the group symbolizer itself should matter. - double x = common.width_ / 2.0, y = common.height_ / 2.0, z = 0.0; - common.t_.backward(&x, &y); - prj_trans.forward(x, y, z); - geometry_type *geom = new geometry_type(geometry_type::Point); - geom->move_to(x, y); - return geom; -} - } // namespace mapnik