avoid unneccesary dependence on << operator of mapnik::enumeration

This commit is contained in:
Dane Springmeyer 2016-02-09 10:09:12 -08:00
parent 8ecb42894f
commit 10bd37ddd7

View file

@ -104,7 +104,7 @@ void serialize_raster_colorizer(ptree & sym_node,
raster_colorizer dfl; raster_colorizer dfl;
if (colorizer->get_default_mode() != dfl.get_default_mode() || explicit_defaults) if (colorizer->get_default_mode() != dfl.get_default_mode() || explicit_defaults)
{ {
set_attr(col_node, "default-mode", colorizer->get_default_mode()); set_attr(col_node, "default-mode", colorizer->get_default_mode().as_string());
} }
if (colorizer->get_default_color() != dfl.get_default_color() || explicit_defaults) if (colorizer->get_default_color() != dfl.get_default_color() || explicit_defaults)
{ {
@ -403,7 +403,7 @@ void serialize_style( ptree & map_node, std::string const& name, feature_type_st
filter_mode_e filter_mode = style.get_filter_mode(); filter_mode_e filter_mode = style.get_filter_mode();
if (filter_mode != dfl.get_filter_mode() || explicit_defaults) if (filter_mode != dfl.get_filter_mode() || explicit_defaults)
{ {
set_attr(style_node, "filter-mode", filter_mode); set_attr(style_node, "filter-mode", filter_mode.as_string());
} }
double opacity = style.get_opacity(); double opacity = style.get_opacity();