artemp/mapnik — Issue #319: Symbolizers via python accepting **kwargs in constructor
Author: artemp
Created: 2011-10-11 16:11:13+00:00
State: open
Labels: Boost_Python_Binding

It would be nice, via python to be able to create new symbolizers in the same fashion as datasources.

So you could either do:

{{{
params = {}
params['type'] = text
params['file'] = 'symbol.png'
params['width'] = 10
params['height'] = 10
text_sym = Symbolizer(**params)
}}}

or
{{{
TextSymbolizer(file='symbol.png',width....)
}}}