avoid unneccesary dependence on << operator of mapnik::enumeration
This commit is contained in:
parent
8ecb42894f
commit
10bd37ddd7
1 changed files with 2 additions and 2 deletions
|
@ -104,7 +104,7 @@ void serialize_raster_colorizer(ptree & sym_node,
|
|||
raster_colorizer dfl;
|
||||
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)
|
||||
{
|
||||
|
@ -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();
|
||||
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();
|
||||
|
|
Loading…
Reference in a new issue