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

Gregory Williams gregory.williams at purplegeodesoftware.co.uk
Tue Jan 27 11:27:42 GMT 2009


Ivo,

 

Casing is the border of the road, whereas the fill is the colour in the centre. You’ll see that these are two overlapping lines, with the casing slightly wider than the fill, such that just either edge shows through once the fill is drawn on top.

 

Cheers,

 

Gregory

 

From: dev-bounces at openstreetmap.org [mailto:dev-bounces at openstreetmap.org] On Behalf Of Ivo Brodien
Sent: 27 January 2009 10:59
To: Jon Burgess
Cc: dev at openstreetmap.org
Subject: Re: [OSM-dev] Are there a feature rendering rules for Mapnik?

 

Hi,





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.

 

I took a closer look now and it is really neat, but I don't understand this:

 

minor-roads

          minor-roads-casing                  

5 000

1 000

	☡

			([highway] = 'secondary' or [highway] = 'secondary_link') and not ([tunnel]='yes' or [tunnel]='true')

          CSS:

                      stroke: #a37b48 stroke-dasharray: stroke-linecap: round stroke-linejoin: round stroke-width: 17;

                      



          minor-roads-fill                                   

5 000

1 000

	☡

			([highway] = 'secondary' or [highway] = 'secondary_link') and not ([tunnel]='yes' or [tunnel]='true')

          CSS:



                      stroke: #fdbf6f stroke-dasharray: stroke-linecap: round stroke-linejoin: round stroke-width: 14

 

Where is the difference between "fill" and the "casing"? The conditions are the same, aren't they?

 

What do I miss here?

 

Thanks

Ivo

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20090127/d30d575c/attachment.html>


More information about the dev mailing list