diff --git a/include/mapnik/agg_renderer.hpp b/include/mapnik/agg_renderer.hpp index 9ace3429a..72220e3e2 100644 --- a/include/mapnik/agg_renderer.hpp +++ b/include/mapnik/agg_renderer.hpp @@ -135,6 +135,7 @@ private: mutable bool style_level_compositing_; unsigned width_; unsigned height_; + unsigned renderer_pass_; double scale_factor_; CoordTransform t_; freetype_engine font_engine_; diff --git a/src/agg/agg_renderer.cpp b/src/agg/agg_renderer.cpp index b7642a7b3..df115b28b 100644 --- a/src/agg/agg_renderer.cpp +++ b/src/agg/agg_renderer.cpp @@ -72,6 +72,7 @@ agg_renderer::agg_renderer(Map const& m, T & pixmap, double scale_factor, uns style_level_compositing_(false), width_(pixmap_.width()), height_(pixmap_.height()), + renderer_pass_(0), scale_factor_(scale_factor), t_(m.width(),m.height(),m.get_current_extent(),offset_x,offset_y), font_engine_(), @@ -92,6 +93,7 @@ agg_renderer::agg_renderer(Map const& m, T & pixmap, boost::shared_ptr::start_layer_processing(layer const& lay, box2d con } template -void agg_renderer::end_layer_processing(layer const&) +void agg_renderer::end_layer_processing(layer const& lay) { MAPNIK_LOG_DEBUG(agg_renderer) << "agg_renderer: End layer processing"; } @@ -269,6 +271,8 @@ void agg_renderer::end_style_processing(feature_type_style const& st) } } MAPNIK_LOG_DEBUG(agg_renderer) << "agg_renderer: End processing style"; + mapnik::save_to_file(pixmap_, (boost::format("%02d_style.png") % renderer_pass_).str(),"png"); + renderer_pass_++; } template