Where can I get the mapnik style file for the noname map?
I'm making a custom Irish language map (i.e. from "name:ga"), and I would like to make a noname map for name:ga, i.e. highlight all roads that don't have a name:ga tag. However I can't find out how to make a noname map anywhere. I've already got a mapnik rendering set up making a normal name:ga map, so that's fine.
Discussion
Comment from JohnSmith on 2 May 2010 at 03:10
How much do you know about modifying the mapnik style sheet?
All you would need to do for a noname layer is add a new layer section, I'd copy the section that makes the sides of bridges, and update the sql query to look for something like this:
select way,(case when "name:ga" is not null then 'no'::text else 'yes'::text) as noname from planet_osm_line
where highway in ('motorway','trunk','primary','secondary','tertiary','residential','unclassified','minor')
order by z_order) as roads
Then in the rendering rules section again copy from a bridge example and do something like this:
50000
1000
[bridge]='yes'
red
7
round
white
5
round
I haven't tested any of this, so it may not work, no idea.
Comment from JohnSmith on 2 May 2010 at 03:12
Attempt #2
>Rule>
>MaxScaleDenominator>50000>/MaxScaleDenominator>
>MinScaleDenominator>1000>/MinScaleDenominator>
>Filter>[bridge]='yes'>/Filter>
>LineSymbolizer>
>CssParameter name="stroke">red>/CssParameter>
>CssParameter name="stroke-width">7>/CssParameter>
>CssParameter name="stroke-linejoin">round>/CssParameter>
>/LineSymbolizer>
>LineSymbolizer>
>CssParameter name="stroke">white>/CssParameter>
>CssParameter name="stroke-width">5>/CssParameter>
>CssParameter name="stroke-linejoin">round>/CssParameter>
>/LineSymbolizer>
>/Rule>
I haven't tested any of this, so it may not work, no idea.
Comment from amapanda ᚛ᚐᚋᚐᚅᚇᚐ᚜ 🏳️⚧️ on 13 May 2010 at 08:37
I found a solution to this.
sly has made their mapnik styles used in "Yet another validation tool" (http://beta.letuffe.org/ or osm.wiki/Yet_another_validation_tool_for_osm_data) available here http://beta.letuffe.org/mapnik-styles/