+ json-generator : don't output coordinates from SEG_CLOSE command

This commit is contained in:
artemp 2013-04-19 14:21:12 +01:00
parent ae9b518618
commit d215c09762

View file

@ -184,7 +184,10 @@ struct geometry_generator_grammar :
polygon_coord %= ( &uint_(mapnik::SEG_MOVETO) << eps[_r1 += 1]
<< karma::string[ if_ (_r1 > 1) [_1 = "],["]
.else_[_1 = '[' ]] | &uint_ << lit(','))
.else_[_1 = '[' ]]
|
&uint_(mapnik::SEG_LINETO))
<< lit(',')
<< lit('[') << coord_type
<< lit(',')
<< coord_type << lit(']')