initial checkin of rrze style - currently doing a bad rendering of bicycle parking
authorosm@osm.rrze <osm@osm.rrze.uni-erlangen.de>
Tue, 7 Aug 2012 10:20:06 +0000 (12:20 +0200)
committerosm@osm.rrze <osm@osm.rrze.uni-erlangen.de>
Tue, 7 Aug 2012 10:20:06 +0000 (12:20 +0200)
styles/mapnik-osm-data/rrze-overlay.xml [new file with mode: 0644]
styles/mapnik-osm-data/rrzesymbols/parking_bicycle.p.16.png [new file with mode: 0644]

diff --git a/styles/mapnik-osm-data/rrze-overlay.xml b/styles/mapnik-osm-data/rrze-overlay.xml
new file mode 100644 (file)
index 0000000..bbd8fcd
--- /dev/null
@@ -0,0 +1,106 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE Map [
+<!ENTITY % entities SYSTEM "inc/entities.xml.inc">
+%entities;
+]>
+<Map background-color="transparent" srs="&srs900913;" minimum-version="2.0.0" buffer-size="512" maximum-extent="-20037508.342789244,-20037508.342780735,20037508.342789244,20037508.342780709">
+  &fontset-settings;
+<Style name="text">
+    <Rule>
+      <Filter>[amenity]='bicycle_parking' and ([access] = 'public' or [access] = 'yes' or not [access] != '')</Filter>
+      &maxscale_zoom17;
+      <TextSymbolizer size="9" fill="#0066ff" dy="9" fontset-name="book-fonts" halo-radius="1" wrap-width="34" placement="interior">[name]</TextSymbolizer>
+    </Rule>
+</Style>
+
+<Style name="points">
+    <Rule>
+      &maxscale_zoom15;
+      <Filter>[amenity] = 'bicycle_parking' and ([access] = 'public' or [access] = 'yes' or not [access] != '')</Filter>
+      <PointSymbolizer file="rrze&symbols;/parking_bicycle.p.16.png" allow-overlap="false" placement="interior"/>
+    </Rule>
+</Style>
+
+<Layer name="amenity-points" status="on" srs="&osm2pgsql_projection;">
+    <StyleName>points</StyleName>
+    <Datasource>
+      <Parameter name="table">
+      (select way,amenity,shop,tourism,highway,man_made,access,religion,waterway,lock,historic,leisure
+      from &prefix;_point
+      where amenity is not null
+         or shop is not null
+         or tourism in ('alpine_hut','camp_site','caravan_site','guest_house','hostel','hotel','motel','museum','viewpoint','bed_and_breakfast','information','chalet')
+         or highway in ('bus_stop','traffic_signals','ford')
+         or man_made in ('mast','water_tower')
+         or historic in ('memorial','archaeological_site')
+         or waterway='lock'
+         or lock='yes'
+         or leisure in ('playground','slipway')
+      ) as points</Parameter>
+      &datasource-settings;
+    </Datasource>
+</Layer>
+<Layer name="amenity-points-poly" status="on" srs="&osm2pgsql_projection;">
+    <StyleName>points</StyleName>
+    <Datasource>
+      <Parameter name="table">
+      (select way,amenity,shop,tourism,highway,man_made,access,religion,waterway,lock,historic,leisure
+      from &prefix;_polygon
+      where amenity is not null
+         or shop is not null
+         or tourism in ('alpine_hut','camp_site','caravan_site','guest_house','hostel','hotel','motel','museum','viewpoint','bed_and_breakfast','information','chalet')
+         or highway in ('bus_stop','traffic_signals')
+         or man_made in ('mast','water_tower')
+         or historic in ('memorial','archaeological_site')
+         or leisure='playground'
+      ) as points</Parameter>
+      &datasource-settings;
+    </Datasource>
+</Layer>
+
+
+<Layer name="text" status="on" srs="&osm2pgsql_projection;">
+    <StyleName>text</StyleName>
+    <Datasource>
+      <Parameter name="table">
+      (select way,amenity,shop,access,leisure,landuse,man_made,"natural",place,tourism,ele,name,ref,military,aeroway,waterway,historic,'yes'::text as point
+       from &prefix;_point
+       where amenity is not null
+          or shop in ('supermarket','bakery','clothes','fashion','convenience','doityourself','hairdresser','department_store','butcher','car','car_repair','bicycle','florist')
+          or leisure is not null
+          or landuse is not null
+          or tourism is not null
+          or "natural" is not null
+          or man_made in ('lighthouse','windmill')
+          or place='island'
+          or military='danger_area'
+          or aeroway='gate'
+          or waterway='lock'
+          or historic in ('memorial','archaeological_site')
+      ) as text
+      </Parameter>
+      &datasource-settings;
+    </Datasource>
+</Layer>
+<Layer name="text-poly" status="on" srs="&osm2pgsql_projection;">
+    <StyleName>text</StyleName>
+    <Datasource>
+      <Parameter name="table">
+      (select way,aeroway,shop,access,amenity,leisure,landuse,man_made,"natural",place,tourism,NULL as ele,name,ref,military,waterway,historic,'no'::text as point
+       from &prefix;_polygon
+       where amenity is not null
+          or shop in ('supermarket','bakery','clothes','fashion','convenience','doityourself','hairdresser','department_store', 'butcher','car','car_repair','bicycle')
+          or leisure is not null
+          or landuse is not null
+          or tourism is not null
+          or "natural" is not null
+          or man_made in ('lighthouse','windmill')
+          or place='island'
+          or military='danger_area'
+          or historic in ('memorial','archaeological_site')
+      ) as text
+      </Parameter>
+      &datasource-settings;
+    </Datasource>
+</Layer>
+</Map>
diff --git a/styles/mapnik-osm-data/rrzesymbols/parking_bicycle.p.16.png b/styles/mapnik-osm-data/rrzesymbols/parking_bicycle.p.16.png
new file mode 100644 (file)
index 0000000..1b263f3
Binary files /dev/null and b/styles/mapnik-osm-data/rrzesymbols/parking_bicycle.p.16.png differ
This page took 0.053271 seconds and 4 git commands to generate.