artemp/mapnik — Issue #659: Color replacing for SVG-based Symbolizers
Author: artemp
Created: 2011-10-11 16:31:13+00:00
State: open
Labels: Symbolizers

I would like to be able to specify a color replacement table for the new SVG-based symbolizers.

E.g. there is all those nice icons like http://www.sjjb.co.uk/mapicons/svg/accommodation_alpinehut.svg that Brian converts to (mono-)colored PNGs with a script, like http://www.sjjb.co.uk/mapicons/png/accommodation_alpinehut.p.32.png and http://www.sjjb.co.uk/mapicons/png/accommodation_alpinehut.n.32.png and even http://www.sjjb.co.uk/mapicons/png/accommodation_alpinehut.glow.32.png

What the conversion script does is basically just a sed on a certain color in the SVG file.

While I don't expect this halo effect just yet, it would be nice to be able to do that from within Mapnik.

I could also use a feature like this for hiking symbols, which (in the east of Germany and in Czech) are often the same simple shapes like a dot, bar, slash etc., but come in different colors.