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_);