diff --git a/include/mapnik/symbolizer_utils.hpp b/include/mapnik/symbolizer_utils.hpp index 5c4a96d44..e5101c2f5 100644 --- a/include/mapnik/symbolizer_utils.hpp +++ b/include/mapnik/symbolizer_utils.hpp @@ -24,6 +24,7 @@ #define MAPNIK_SYMBOLIZER_UTILS_HPP // mapnik +#include #include #include #include @@ -216,12 +217,35 @@ class symbolizer_property_value_string std::string operator()(dash_array const& dash) const { std::ostringstream ss; + ss << '['; for (std::size_t i = 0; i < dash.size(); ++i) { ss << dash[i].first << "," << dash[i].second; if (i + 1 < dash.size()) ss << ','; } + ss << ']'; + return ss.str(); + } + + std::string operator()(mapnik::value_double val) const + { + std::ostringstream ss; + ss << val; + return ss.str(); + } + + std::string operator()(mapnik::value_integer val) const + { + std::ostringstream ss; + ss << val; + return ss.str(); + } + + std::string operator()(mapnik::value_bool val) const + { + std::ostringstream ss; + ss << mapnik::boolean_type(val); return ss.str(); }