Render subway lines in London - in original color scheme.
authorUser for running Openstreetmap-things <osm@osm.rrze.uni-erlangen.de>
Wed, 9 Sep 2015 10:03:03 +0000 (12:03 +0200)
committerUser for running Openstreetmap-things <osm@osm.rrze.uni-erlangen.de>
Wed, 9 Sep 2015 10:03:03 +0000 (12:03 +0200)
Of course this doesn't have anything to do with FAU, I just wanted to play around with it (no, not during work hours).

styles/mapnik-osm-data/rrze-overlay.xml

index 82425965d773f6fb4e236eb9afd5a910e0332450..71a801fd05805eac7dcb19ad58b99833a76b0aa9 100644 (file)
   </Rule>
 </Style>
 
+<Style name="subwaylines" filter-mode="first">
+  <Rule>
+    &maxscale_zoom10;
+    <Filter>([ref] = 'Waterloo &amp; City')</Filter>
+    <LineSymbolizer stroke="#88d0c4" stroke-width="3" />
+    <TextSymbolizer fill="#88d0c4" placement="line" fontset-name="book-fonts" size="9" dy="-6" vertical-alignment="middle" halo-radius="1" halo-fill="#ffffff" minimum-distance="200" ><![CDATA[[ref]]]></TextSymbolizer>
+  </Rule>
+  <Rule>
+    &maxscale_zoom10;
+    <Filter>([ref] = 'Victoria')</Filter>
+    <LineSymbolizer stroke="#0a9cda" stroke-width="3" />
+    <TextSymbolizer fill="#0a9cda" placement="line" fontset-name="book-fonts" size="9" dy="-6" vertical-alignment="middle" halo-radius="1" halo-fill="#ffffff" minimum-distance="200" ><![CDATA[[ref]]]></TextSymbolizer>
+  </Rule>
+  <Rule>
+    &maxscale_zoom10;
+    <Filter>([ref] = 'Piccadilly')</Filter>
+    <LineSymbolizer stroke="#094fa3" stroke-width="3" />
+    <TextSymbolizer fill="#094fa3" placement="line" fontset-name="book-fonts" size="9" dy="-6" vertical-alignment="middle" halo-radius="1" halo-fill="#ffffff" minimum-distance="200" ><![CDATA[[ref]]]></TextSymbolizer>
+  </Rule>
+  <Rule>
+    &maxscale_zoom10;
+    <Filter>([ref] = 'Northern')</Filter>
+    <LineSymbolizer stroke="#000000" stroke-width="3" />
+    <TextSymbolizer fill="#000000" placement="line" fontset-name="book-fonts" size="9" dy="-6" vertical-alignment="middle" halo-radius="1" halo-fill="#ffffff" minimum-distance="200" ><![CDATA[[ref]]]></TextSymbolizer>
+  </Rule>
+  <Rule>
+    &maxscale_zoom10;
+    <Filter>([ref] = 'Metropolitan')</Filter>
+    <LineSymbolizer stroke="#91005a" stroke-width="3" />
+    <TextSymbolizer fill="#91005a" placement="line" fontset-name="book-fonts" size="9" dy="-6" vertical-alignment="middle" halo-radius="1" halo-fill="#ffffff" minimum-distance="200" ><![CDATA[[ref]]]></TextSymbolizer>
+  </Rule>
+  <Rule>
+    &maxscale_zoom10;
+    <Filter>([ref] = 'Jubilee')</Filter>
+    <LineSymbolizer stroke="#949699" stroke-width="3" />
+    <TextSymbolizer fill="#949699" placement="line" fontset-name="book-fonts" size="9" dy="-6" vertical-alignment="middle" halo-radius="1" halo-fill="#ffffff" minimum-distance="200" ><![CDATA[[ref]]]></TextSymbolizer>
+  </Rule>
+  <Rule>
+    <MaxScaleDenominator>750000</MaxScaleDenominator>
+    <Filter>([ref] = 'Hammersmith &amp; City')</Filter>
+    <LineSymbolizer stroke="#f491a8" offset="2" stroke-dasharray="8, 5" stroke-width="3" />
+    <TextSymbolizer fill="#f491a8" placement="line" fontset-name="book-fonts" size="9" dy="-6" vertical-alignment="middle" halo-radius="1" halo-fill="#ffffff" minimum-distance="200" ><![CDATA[[ref]]]></TextSymbolizer>
+  </Rule>
+  <Rule>
+    &maxscale_zoom10;
+    <Filter>([ref] = 'District')</Filter>
+    <LineSymbolizer stroke="#00a166" stroke-width="3" />
+    <TextSymbolizer fill="#00a166" placement="line" fontset-name="book-fonts" size="9" dy="-6" vertical-alignment="middle" halo-radius="1" halo-fill="#ffffff" minimum-distance="200" ><![CDATA[[ref]]]></TextSymbolizer>
+  </Rule>
+  <Rule>
+    &maxscale_zoom10;
+    <Filter>([ref] = 'Circle')</Filter>
+    <LineSymbolizer stroke="#ffe02b" offset="2" stroke-dasharray="8, 5" stroke-width="3" />
+    <TextSymbolizer fill="#ffe02b" placement="line" fontset-name="book-fonts" size="9" dy="-6" vertical-alignment="middle" halo-radius="1" halo-fill="#ffffff" minimum-distance="200" ><![CDATA[[ref]]]></TextSymbolizer>
+  </Rule>
+  <Rule>
+    &maxscale_zoom10;
+    <Filter>([ref] = 'Central')</Filter>
+    <LineSymbolizer stroke="#f15b2e" stroke-width="3" />
+    <TextSymbolizer fill="#f15b2e" placement="line" fontset-name="book-fonts" size="9" dy="-6" vertical-alignment="middle" halo-radius="1" halo-fill="#ffffff" minimum-distance="200" ><![CDATA[[ref]]]></TextSymbolizer>
+  </Rule>
+  <Rule>
+    &maxscale_zoom10;
+    <Filter>([ref] = 'Bakerloo')</Filter>
+    <LineSymbolizer stroke="#ae6017" stroke-width="3" />
+    <TextSymbolizer fill="#ae6017" placement="line" fontset-name="book-fonts" size="9" dy="-6" vertical-alignment="middle" halo-radius="1" halo-fill="#ffffff" minimum-distance="200" ><![CDATA[[ref]]]></TextSymbolizer>
+  </Rule>
+</Style>
+
 <Layer name="amenity-points" status="on" srs="&osm2pgsql_projection;">
     <StyleName>points</StyleName>
     <Datasource>
       &datasource-settings;
     </Datasource>
 </Layer>
+
+<Layer name="subwaylines" status="on" srs="&osm2pgsql_projection;">
+    <StyleName>subwaylines</StyleName>
+    <Datasource>
+       <Parameter name="table"><![CDATA[(SELECT way, ref, osm_id FROM planet_osm_line WHERE route='subway') AS subwayroutes]]></Parameter>
+      &datasource-settings;
+    </Datasource>
+</Layer>
+
 </Map>
This page took 0.197413 seconds and 4 git commands to generate.