From 4ade976ee1d7ea72cd0c2616f0b1c11b3301a8ff Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Wed, 29 Apr 2015 15:40:43 -0700 Subject: [PATCH] fix SVG rendering --- src/svg/output/process_symbolizers.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/svg/output/process_symbolizers.cpp b/src/svg/output/process_symbolizers.cpp index 27748b5ec..a7ca1c001 100644 --- a/src/svg/output/process_symbolizers.cpp +++ b/src/svg/output/process_symbolizers.cpp @@ -34,6 +34,8 @@ #include #include #include +#include + // boost #include @@ -128,8 +130,10 @@ bool svg_renderer::process(rule::symbolizers const& syms, if (process_path) { // generate path output for each geometry of the current feature. + auto const& geom = feature.get_geometry(); path_type path; - geometry::to_path(feature.get_geometry(), path); + path.set_type(static_cast(mapnik::util::to_ds_type(geom))); + geometry::to_path(geom, path); vertex_adapter va(path); trans_path_type trans_path(common_.t_, va, prj_trans); generate_path_impl(generator_.output_iterator_, trans_path, path_attributes_);