"Implement" group symbolizer for SVG renderer.

Note that the "implementation" for SVG renderer is the same as
for other symbolizers there - i.e: empty.
This commit is contained in:
Matt Amos 2014-01-14 17:38:05 +00:00 committed by Jordan Hollinger
parent 7e25a220a8
commit f81d5abe1f
3 changed files with 43 additions and 0 deletions

View file

@ -120,6 +120,9 @@ public:
void process(debug_symbolizer const& /*sym*/, void process(debug_symbolizer const& /*sym*/,
mapnik::feature_impl & /*feature*/, mapnik::feature_impl & /*feature*/,
proj_transform const& /*prj_trans*/) {} 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. * @brief Overload that process the whole set of symbolizers of a rule.

View file

@ -353,6 +353,7 @@ if env['SVG_RENDERER']: # svg backend
svg/output/process_raster_symbolizer.cpp svg/output/process_raster_symbolizer.cpp
svg/output/process_shield_symbolizer.cpp svg/output/process_shield_symbolizer.cpp
svg/output/process_text_symbolizer.cpp svg/output/process_text_symbolizer.cpp
svg/output/process_group_symbolizer.cpp
""") """)
lib_env.Append(CPPDEFINES = '-DSVG_RENDERER') lib_env.Append(CPPDEFINES = '-DSVG_RENDERER')
libmapnik_defines.append('-DSVG_RENDERER') libmapnik_defines.append('-DSVG_RENDERER')

View file

@ -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 <mapnik/svg/output/svg_renderer.hpp>
namespace mapnik
{
template <typename T>
void svg_renderer<T>::process(group_symbolizer const& sym,
mapnik::feature_impl & feature,
proj_transform const& prj_trans)
{
// nothing yet.
}
template void svg_renderer<std::ostream_iterator<char> >::process(group_symbolizer const& sym,
mapnik::feature_impl & feature,
proj_transform const& prj_trans);
}