[OSM-dev] pgmapcss version 0.6.0
Stephan Bösch-Plepelits
skunk at xover.htu.tuwien.ac.at
Tue Feb 4 18:25:10 UTC 2014
Hi!
Again there's a new release of pgmapcss - a MapCSS implementation for
Mapnik on OpenStreetMap data, working as a database function.
What's new?
I finally realized that PL/pgSQL is a very slow language - I should have
many years ago, it would have saved a lot of pain with other projects. So,
starting with pgmapcss 0.6 the MapCSS file is not compiled into a PL/pgSQL
function but into a PL/Python3 function instead. As I assumed/hoped, this
is much faster - by a factor 2 for simple stylesheet, by a factor 20 and
more for complex styles (not counting database queries and Mapnik rendering
time).
Additionally, version 0.6 brings initial support for the 'expr-v2' branch
of Mapnik, which will finally allow using expressions (and therefore
references to object attributes) for many (all?) Symbolizer parameters.
'expr-v2' currently brings support for expressions in color parameters (on
TextSymbolizer, PolygonSymbolizer and LineSymbolizer), which allows
calculations on colors. Therefore some eval()-functions has been added:
rgb(), rgba(), deluma() and lighten().
Get source and documentation here: https://github.com/plepe/pgmapcss
greetings,
Stephan
--
Seid unbequem, seid Sand, nicht Öl im Getriebe der Welt! - Günther Eich
,---------------------------------------------------------------------.
| Stephan Bösch-Plepelits, |
| Technische Universität Wien - Studien Informatik & Raumplanung |
| Projects: |
| > openstreetbrowser.org > couchsurfing.org > tubasis.at > bl.mud.at |
| Contact: |
| > Mail: skunk at xover.mud.at > Blog: plepe.at |
| > Twitter: twitter.com/plepe > Jabber: skunk at jabber.at |
`---------------------------------------------------------------------'
More information about the dev
mailing list