[OSM-dev] Rendering Route Relations with Mapnik
Jochen Topf
jochen at remote.org
Tue Jul 19 10:24:39 BST 2011
On Tue, Jul 19, 2011 at 09:53:45AM +0100, Graham Jones wrote:
> > A little bit late, but I have written some wiki-Pages documentating my own
> > Mapnik-Styles:
> >
> > For quite a while I have been thinking of trying to set up something to
> share tips, tricks and examples for producing maps from OSM data - we have
> tools to make the rendering toolchain and quite a few sets of instructions
> for setting up the toolchain, but we do not have a lot of guidance on
> writing stylesheets for OSM data. Although the main mapnik style is really
> good, it is so complex that it is not good as a worked example for someone
> to learn from.
>
> For example, there are quite a few renderers that have different ways of
> writing styles, and even if you pick mapnik, there are at least three
> different ways of writing stylesheets (XML, Cascadenik and Cairo).
>
> I have been experimenting with Cairo lately, because this appears to lend
> itself to writing more 'elegant' styles (although the layer definitions
> remain ugly), and storing the files on github (so I can get them back when I
> break them...) [
> https://github.com/jones139/Mapnik-OSM-Styles/tree/master/three_villages_map.if
> anyone is interested]. I have also got bits and pieces of documentation
> that I have written in response to specific questions (e.g.
> http://www.slideshare.net/jones139/rendering-openstreetmap-data-using-mapnik
> ).
>
> Would anyone be interested in sharing examples of styles they have produced
> etc.? I think there is a 'stylesheets' wiki page that we could update with
> a set of links for starters, but I could see it develop into something a bit
> more detailed with tutorials etc. I will make a start on it if people
> think it would be useful.
Andy gave a nice talk at SOTM-EU called "Advanced OSM Cartography 2". See
https://sotm-eu.org/schedule for slides and recording. I liked the way it
was presented as typical problems that crop up and examples on how to fix
them. I talked to him afterwards and we agreed it would be nice to bring
all this together at some place.
I can imagine a "cartography rendering pattern repository" that documents
different often used "patterns" to solve problems when automatically rendering
maps, similar to the "pattern movement" for computer languages. It should be as
generic as possible, ie. not tied to Mapnik.
I could imagine a wiki or so that has pages for each pattern or concept or
idea. Links to related pages can be added. Each page would contain a
description of the problem, probably with an image, and a description of how it
can be solved. Configuration file snippets, SQL queries etc. can be added to
show examples of the solutions for different kinds of software.
Jochen
--
Jochen Topf jochen at remote.org http://www.remote.org/jochen/ +49-721-388298
More information about the dev
mailing list