[OSM-dev] Are there a feature rendering rules for Mapnik?

Jon Burgess jburgess777 at googlemail.com
Fri Jan 23 19:41:49 GMT 2009


On Fri, 2009-01-23 at 17:02 +0100, Ivo Brodien wrote:
> Hello,
> 
> I would like to know if there is some sort of table where I can see  
> what features get rendered for the distinct zoom levels.
> 
> I only found the osm.xml in the Mapnik source.

The nicest way I know is using some xslt from here:
https://lists.berlios.de/pipermail/mapnik-users/2008-June/000986.html

This produces a neatly formatted page listing all the layers, styles and
rules with min/max zooms and mouse-overs with details of css parameters
etc.

> Is there maybe a nicer overview like a table or something where I can  
> see what gets rendered at echa zoom level?
> Background: I want to try to render SVG based on a PostgreSQL/PostGIS  
> database.

As Andy said, Mapnik can do this using the Cairo engine. Try selecting
the 'export' tab on the www.openstreetmap.org site and then pick the
Format:SVG option.

This is implemented using the small CGI script at:
http://trac.openstreetmap.org/browser/sites/tile.openstreetmap.org/cgi-bin/export

	Jon






More information about the dev mailing list