artemp/trac2github — Issue #360: Using datas from database into CSS stylesheet parameters
Author: artemp
Created: 2011-10-09 20:30:04+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