artemp/mapnik — Issue #359: Using datas from database into CSS stylesheet parameters
Author: artemp
Created: 2011-10-11 16:14:26+00:00
State: open
Labels: XML

Hello,

While contributing some bus routes on [http://www.openstreetmap.org/ OpenStreetMap] and trying to render them with their respecitve official colours, I wondered if it was possible to implement into mapnik a feature allowing to set datas in the stylesheet issued from the postgreSQL database.

For example, the subway lines in Paris have a specific and "official" which could be described in the OSM database (as well as the postgresql database) as a column "color" ; it could be a useful and very nice feature if we could use this parameter directly into the directive, as something like :

{{{ }}}

{{{ 5 }}}

{{{ [color] }}}

{{{ }}}

Thanks