From f81d5abe1fe5d71d7d3759f26cc7381c33150d51 Mon Sep 17 00:00:00 2001 From: Matt Amos Date: Tue, 14 Jan 2014 17:38:05 +0000 Subject: [PATCH] "Implement" group symbolizer for SVG renderer. Note that the "implementation" for SVG renderer is the same as for other symbolizers there - i.e: empty. --- include/mapnik/svg/output/svg_renderer.hpp | 3 ++ src/build.py | 1 + src/svg/output/process_group_symbolizer.cpp | 39 +++++++++++++++++++++ 3 files changed, 43 insertions(+) create mode 100644 src/svg/output/process_group_symbolizer.cpp diff --git a/include/mapnik/svg/output/svg_renderer.hpp b/include/mapnik/svg/output/svg_renderer.hpp index d7415c640..575140853 100644 --- a/include/mapnik/svg/output/svg_renderer.hpp +++ b/include/mapnik/svg/output/svg_renderer.hpp @@ -120,6 +120,9 @@ public: void process(debug_symbolizer const& /*sym*/, mapnik::feature_impl & /*feature*/, proj_transform const& /*prj_trans*/) {} + void process(group_symbolizer const& sym, + mapnik::feature_impl & feature, + proj_transform const& prj_trans); /*! * @brief Overload that process the whole set of symbolizers of a rule. diff --git a/src/build.py b/src/build.py index 610b9a69e..ac6621303 100644 --- a/src/build.py +++ b/src/build.py @@ -353,6 +353,7 @@ if env['SVG_RENDERER']: # svg backend svg/output/process_raster_symbolizer.cpp svg/output/process_shield_symbolizer.cpp svg/output/process_text_symbolizer.cpp + svg/output/process_group_symbolizer.cpp """) lib_env.Append(CPPDEFINES = '-DSVG_RENDERER') libmapnik_defines.append('-DSVG_RENDERER') diff --git a/src/svg/output/process_group_symbolizer.cpp b/src/svg/output/process_group_symbolizer.cpp new file mode 100644 index 000000000..ed7f71261 --- /dev/null +++ b/src/svg/output/process_group_symbolizer.cpp @@ -0,0 +1,39 @@ +/***************************************************************************** + * + * This file is part of Mapnik (c++ mapping toolkit) + * + * Copyright (C) 2013 Artem Pavlenko + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + *****************************************************************************/ + +// mapnik +#include + +namespace mapnik +{ +template +void svg_renderer::process(group_symbolizer const& sym, + mapnik::feature_impl & feature, + proj_transform const& prj_trans) +{ + // nothing yet. +} + +template void svg_renderer >::process(group_symbolizer const& sym, + mapnik::feature_impl & feature, + proj_transform const& prj_trans); +}