parse stroke properties separately from parsing a line symbolizer - setting up for being able to easily add strokes to other symbolizers
This commit is contained in:
parent
a7e9cc7e87
commit
b5f36154fc
1 changed files with 63 additions and 57 deletions
|
@ -107,6 +107,7 @@ private:
|
|||
void parse_glyph_symbolizer(rule_type & rule, ptree const & sym );
|
||||
|
||||
void parse_raster_colorizer(raster_colorizer_ptr const& rc, ptree const& node );
|
||||
void parse_stroke(stroke & strk, ptree const & sym);
|
||||
|
||||
void ensure_font_face( const std::string & face_name );
|
||||
|
||||
|
@ -1471,11 +1472,8 @@ void map_parser::parse_shield_symbolizer( rule_type & rule, ptree const & sym )
|
|||
}
|
||||
}
|
||||
|
||||
void map_parser::parse_line_symbolizer( rule_type & rule, ptree const & sym )
|
||||
void map_parser::parse_stroke(stroke & strk, ptree const & sym)
|
||||
{
|
||||
try
|
||||
{
|
||||
stroke strk;
|
||||
// stroke color
|
||||
optional<color> c = get_opt_attr<color>(sym, "stroke");
|
||||
if (c) strk.set_color(*c);
|
||||
|
@ -1533,6 +1531,14 @@ void map_parser::parse_line_symbolizer( rule_type & rule, ptree const & sym )
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void map_parser::parse_line_symbolizer( rule_type & rule, ptree const & sym )
|
||||
{
|
||||
try
|
||||
{
|
||||
stroke strk;
|
||||
parse_stroke(strk,sym);
|
||||
line_symbolizer symbol = line_symbolizer(strk);
|
||||
|
||||
parse_metawriter_in_symbolizer(symbol, sym);
|
||||
|
|
Loading…
Reference in a new issue