Skip to content

Instantly share code, notes, and snippets.

@springmeyer
Created November 4, 2013 21:40
Show Gist options
  • Save springmeyer/7309644 to your computer and use it in GitHub Desktop.
Save springmeyer/7309644 to your computer and use it in GitHub Desktop.
diff --git a/include/mapnik/feature_style_processor_impl.hpp b/include/mapnik/feature_style_processor_impl.hpp
index 93fa7ef..f01f027 100644
--- a/include/mapnik/feature_style_processor_impl.hpp
+++ b/include/mapnik/feature_style_processor_impl.hpp
@@ -44,6 +44,7 @@
#include <mapnik/projection.hpp>
#include <mapnik/proj_transform.hpp>
#include <mapnik/util/featureset_buffer.hpp>
+#include <mapnik/timer.hpp>
// boost
#include <boost/variant/apply_visitor.hpp>
@@ -183,6 +184,7 @@ void feature_style_processor<Processor>::apply(double scale_denom)
{
if (lyr.visible(scale_denom))
{
+ mapnik::progress_timer(std::clog,"preparing query for '" + lyr.name() + "'");
std::set<std::string> names;
layer_rendering_material_ptr mat = boost::make_shared<layer_rendering_material>(lyr, proj);
@@ -638,6 +640,7 @@ void feature_style_processor<Processor>::render_style(
featureset_ptr features,
proj_transform const& prj_trans)
{
+ mapnik::progress_timer(std::clog,"\trendering style");
p.start_style_processing(*style);
if (!features)
{
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment