source: subversion/applications/rendering/parking/mapnik/parking-inc-src/layer-parking-point.xml.inc @ 26769

Revision 26769, 3.3 KB checked in by kdrangmeister, 3 years ago (diff)

repository is wrong

Line 
1<Style name="parking-points">
2    <!-- parking points: ticket vending machines -->
3    <Rule>
4      <Filter>[amenity] = 'vending_machine' and [vending]='parking_tickets'</Filter>
5      &maxscale_zoom16;
6      <PointSymbolizer file="&symbols;/parking-vending.png" />
7    </Rule>
8
9    <!-- parking nodes -->
10    <Rule>
11      <Filter>[amenity] = 'parking' and [cond]='ticket'</Filter>
12      &maxscale_zoom16;
13      <PointSymbolizer file="&symbols;/parking_node_fee.png" />
14    </Rule>
15    <Rule>
16      <Filter>[amenity] = 'parking' and [cond]='disc'</Filter>
17      &maxscale_zoom16;
18      <PointSymbolizer file="&symbols;/parking_node_disc.png" />
19    </Rule>
20    <Rule>
21      <Filter>[amenity] = 'parking' and [cond]='customers'</Filter>
22      &maxscale_zoom16;
23      <PointSymbolizer file="&symbols;/parking_node_cust.png" />
24    </Rule>
25    <Rule>
26      <Filter>[amenity] = 'parking' and [cond]='residents'</Filter>
27      &maxscale_zoom16;
28      <PointSymbolizer file="&symbols;/parking_node_resi.png" />
29    </Rule>
30    <Rule>
31      <Filter>[amenity] = 'parking' and [cond]='private'</Filter>
32      &maxscale_zoom16;
33      <PointSymbolizer file="&symbols;/parking_node_priv.png" />
34    </Rule>
35    <Rule>
36      <Filter>[amenity] = 'parking' and [cond]='free'</Filter>
37      &maxscale_zoom16;
38      <PointSymbolizer file="&symbols;/parking_node_free.png" />
39    </Rule>
40    <Rule>
41      <Filter>[amenity] = 'parking' and [cond]='unknown'</Filter>
42      &maxscale_zoom16;
43      <PointSymbolizer file="&symbols;/parking_node_unkn.png" />
44    </Rule>
45</Style>
46
47<Layer name="parking-points" status="on" srs="&osm2pgsql_projection;">
48    <StyleName>parking-points</StyleName>
49    <Datasource>
50      <Parameter name="table">
51      (select way,(tags->'amenity') as "amenity",(tags->'name') as "name",(tags->'vending') as "vending",(tags->'fee') as "fee",
52        CASE /* fee-access-condition= */ LOWER(SUBSTRING(COALESCE(tags->'fee','-'),1,1) || SUBSTRING(COALESCE(tags->'access','-'),1,1) || SUBSTRING(COALESCE(tags->'parking:condition:area','-'),1,1))
53        WHEN '--t' THEN 'ticket'
54        WHEN 'y--' THEN 'ticket'
55        WHEN 'yc-' THEN 'ticket' /* access=customers fee=yes */
56        WHEN 'y-c' THEN 'ticket' /* access=customers fee=yes */
57        WHEN 'ycc' THEN 'ticket' /* access=customers fee=yes */
58        WHEN 'y-t' THEN 'ticket'
59        WHEN '--d' THEN 'disc'
60        WHEN 'n-d' THEN 'disc'
61        WHEN '--c' THEN 'customers'
62        WHEN '-c-' THEN 'customers'
63        WHEN '-cc' THEN 'customers'
64        WHEN 'n-c' THEN 'customers'
65        WHEN 'nc-' THEN 'customers'
66        WHEN 'ncc' THEN 'customers'
67        WHEN '-r-' THEN 'residents'
68        WHEN '--r' THEN 'residents'
69        WHEN '-rr' THEN 'residents'
70        WHEN 'nr-' THEN 'residents'
71        WHEN 'n-r' THEN 'residents'
72        WHEN 'nrr' THEN 'residents'
73        WHEN '-p-' THEN 'private'
74        WHEN '--p' THEN 'private'
75        WHEN '-pp' THEN 'private'
76        WHEN 'np-' THEN 'private'
77        WHEN 'n-p' THEN 'private'
78        WHEN 'npp' THEN 'private'
79        WHEN '--f' THEN 'free'
80        WHEN 'n--' THEN 'free'
81        WHEN 'n-f' THEN 'free'
82            ELSE 'unknown'
83        END AS "cond"
84       from &prefix;_point
85       where
86          (tags ? 'amenity') AND (tags->'amenity') in ('vending_machine','parking')
87      ) as points
88      </Parameter>
89      &datasource-settings;
90    </Datasource>
91</Layer>
Note: See TracBrowser for help on using the repository browser.