source: subversion/applications/rendering/parking/mapnik/parking-inc-src/layer-parking-area.xml.inc @ 26204

Last change on this file since 26204 was 24155, checked in by kdrangmeister, 9 years ago

parking source and deploy

File size: 8.0 KB
Line 
1<Style name="parking-area">
2    <!-- parking area: fee (new) -->
3    <Rule>
4      <Filter>[parking:condition:area] = 'ticket'</Filter>
5      &maxscale_zoom10;
6      <PolygonSymbolizer>
7        <CssParameter name="fill">&pa_fee;</CssParameter>
8        <CssParameter name="fill-opacity">&pa_fill_opacity;</CssParameter>
9      </PolygonSymbolizer>
10      <LineSymbolizer>
11        <CssParameter name="stroke">&pa_fee_stroke;</CssParameter>
12        <CssParameter name="stroke-width">&pa_stroke_width;</CssParameter>
13        <CssParameter name="stroke-opacity">&pa_stroke_opacity;</CssParameter>
14      </LineSymbolizer>
15    </Rule>
16    <Rule>
17      &maxscale_zoom16;
18      <Filter>[parking:condition:area] = 'ticket'</Filter>
19      <PolygonPatternSymbolizer file="&symbols;/parking_area_fee.png" type="png" width="16" height="16"/>
20    </Rule>
21
22    <!-- parking area: fee (old) -->
23    <Rule>
24      <Filter>[amenity] = 'parking' and [fee]='yes'</Filter>
25      &maxscale_zoom10;
26      <PolygonSymbolizer>
27        <CssParameter name="fill">&pa_fee;</CssParameter>
28        <CssParameter name="fill-opacity">&pa_fill_opacity;</CssParameter>
29      </PolygonSymbolizer>
30      <LineSymbolizer>
31        <CssParameter name="stroke">&pa_fee_stroke;</CssParameter>
32        <CssParameter name="stroke-width">&pa_stroke_width;</CssParameter>
33        <CssParameter name="stroke-opacity">&pa_stroke_opacity;</CssParameter>
34      </LineSymbolizer>
35    </Rule>
36    <Rule>
37      &maxscale_zoom16;
38      <Filter>[amenity] = 'parking' and [fee]='yes'</Filter>
39      <PolygonPatternSymbolizer file="&symbols;/parking_area_fee.png" type="png" width="16" height="16"/>
40    </Rule>
41
42    <!-- parking area: free (new) -->
43    <Rule>
44      <Filter>[parking:condition:area] = 'free'</Filter>
45      &maxscale_zoom10;
46      <PolygonSymbolizer>
47        <CssParameter name="fill">&pa_free;</CssParameter>
48        <CssParameter name="fill-opacity">&pa_fill_opacity;</CssParameter>
49      </PolygonSymbolizer>
50      <LineSymbolizer>
51        <CssParameter name="stroke">&pa_free_stroke;</CssParameter>
52        <CssParameter name="stroke-width">&pa_stroke_width;</CssParameter>
53        <CssParameter name="stroke-opacity">&pa_stroke_opacity;</CssParameter>
54      </LineSymbolizer>
55    </Rule>
56    <Rule>
57      &maxscale_zoom16;
58      <Filter>[parking:condition:area] = 'free'</Filter>
59      <PolygonPatternSymbolizer file="&symbols;/parking_area_free.png" type="png" width="16" height="16"/>
60    </Rule>
61
62    <!-- parking area: free (old) -->
63    <Rule>
64      <Filter>[amenity] = 'parking' and [fee]='no'</Filter>
65      &maxscale_zoom10;
66      <PolygonSymbolizer>
67        <CssParameter name="fill">&pa_free;</CssParameter>
68        <CssParameter name="fill-opacity">&pa_fill_opacity;</CssParameter>
69      </PolygonSymbolizer>
70      <LineSymbolizer>
71        <CssParameter name="stroke">&pa_free_stroke;</CssParameter>
72        <CssParameter name="stroke-width">&pa_stroke_width;</CssParameter>
73        <CssParameter name="stroke-opacity">&pa_stroke_opacity;</CssParameter>
74      </LineSymbolizer>
75    </Rule>
76    <Rule>
77      &maxscale_zoom16;
78      <Filter>[amenity] = 'parking' and [fee]='no'</Filter>
79      <PolygonPatternSymbolizer file="&symbols;/parking_area_free.png" type="png" width="16" height="16"/>
80    </Rule>
81
82    <!-- parking area: disc -->
83    <Rule>
84      <Filter>[parking:condition:area]='disc'</Filter>
85      &maxscale_zoom10;
86      <PolygonSymbolizer>
87        <CssParameter name="fill">&pa_customers;</CssParameter>
88        <CssParameter name="fill-opacity">&pa_fill_opacity;</CssParameter>
89      </PolygonSymbolizer>
90      <LineSymbolizer>
91        <CssParameter name="stroke">&pa_customers_stroke;</CssParameter>
92        <CssParameter name="stroke-width">&pa_stroke_width;</CssParameter>
93        <CssParameter name="stroke-opacity">&pa_stroke_opacity;</CssParameter>
94      </LineSymbolizer>
95    </Rule>
96    <Rule>
97      &maxscale_zoom16;
98      <Filter>[parking:condition:area]='disc'</Filter>
99      <PolygonPatternSymbolizer file="&symbols;/parking_area_disc.png" type="png" width="16" height="16"/>
100    </Rule>
101
102    <!-- parking area: customers -->
103    <Rule>
104      <Filter>[parking:condition:area]='customers' or ([amenity]='parking' and [access]='customers')</Filter>
105      &maxscale_zoom10;
106      <PolygonSymbolizer>
107        <CssParameter name="fill">&pa_customers;</CssParameter>
108        <CssParameter name="fill-opacity">&pa_fill_opacity;</CssParameter>
109      </PolygonSymbolizer>
110      <LineSymbolizer>
111        <CssParameter name="stroke">&pa_customers_stroke;</CssParameter>
112        <CssParameter name="stroke-width">&pa_stroke_width;</CssParameter>
113        <CssParameter name="stroke-opacity">&pa_stroke_opacity;</CssParameter>
114      </LineSymbolizer>
115    </Rule>
116    <Rule>
117      &maxscale_zoom16;
118      <Filter>[parking:condition:area]='customers' or ([amenity]='parking' and [access]='customers')</Filter>
119      <PolygonPatternSymbolizer file="&symbols;/parking_area_cust.png" type="png" width="16" height="16"/>
120    </Rule>
121
122    <!-- parking area: residents -->
123    <Rule>
124      <Filter>[amenity] = 'parking' and [parking:condition:area]='residents'</Filter>
125      &maxscale_zoom10;
126      <PolygonSymbolizer>
127        <CssParameter name="fill">&pa_residents;</CssParameter>
128        <CssParameter name="fill-opacity">&pa_fill_opacity;</CssParameter>
129      </PolygonSymbolizer>
130      <LineSymbolizer>
131        <CssParameter name="stroke">&pa_residents_stroke;</CssParameter>
132        <CssParameter name="stroke-width">&pa_stroke_width;</CssParameter>
133        <CssParameter name="stroke-opacity">&pa_stroke_opacity;</CssParameter>
134      </LineSymbolizer>
135    </Rule>
136    <Rule>
137      &maxscale_zoom16;
138      <Filter>[amenity] = 'parking' and [parking:condition:area]='residents'</Filter>
139      <PolygonPatternSymbolizer file="&symbols;/parking_area_resi.png" type="png" width="16" height="16"/>
140    </Rule>
141
142    <!-- parking area: private -->
143    <Rule>
144      <Filter>[amenity] = 'parking' and ([parking:condition:area]='private' or [access]='private' or [access]='permissive')</Filter>
145      &maxscale_zoom10;
146      <PolygonSymbolizer>
147        <CssParameter name="fill">&pa_private;</CssParameter>
148        <CssParameter name="fill-opacity">&pa_fill_opacity;</CssParameter>
149      </PolygonSymbolizer>
150      <LineSymbolizer>
151        <CssParameter name="stroke">&pa_private_stroke;</CssParameter>
152        <CssParameter name="stroke-width">&pa_stroke_width;</CssParameter>
153        <CssParameter name="stroke-opacity">&pa_stroke_opacity;</CssParameter>
154      </LineSymbolizer>
155    </Rule>
156    <Rule>
157      &maxscale_zoom16;
158      <Filter>[amenity]='parking' and ([parking:condition:area]='private' or [access]='private' or [access]='permissive')</Filter>
159      <PolygonPatternSymbolizer file="&symbols;/parking_area_priv.png" type="png" width="16" height="16"/>
160    </Rule>
161
162    <Rule>
163      <ElseFilter/>
164      &maxscale_zoom10;
165      <PolygonSymbolizer>
166        <CssParameter name="fill">&pa_unknown;</CssParameter>
167        <CssParameter name="fill-opacity">&pa_fill_opacity;</CssParameter>
168      </PolygonSymbolizer>
169      <LineSymbolizer>
170        <CssParameter name="stroke">&pa_unknown_stroke;</CssParameter>
171        <CssParameter name="stroke-width">&pa_stroke_width;</CssParameter>
172        <CssParameter name="stroke-opacity">&pa_stroke_opacity;</CssParameter>
173      </LineSymbolizer>
174    </Rule>
175    <Rule>
176      &maxscale_zoom16;
177      <ElseFilter/>
178      <PolygonPatternSymbolizer file="&symbols;/parking_area_unkn.png" type="png" width="16" height="16"/>
179    </Rule>
180</Style>
181
182<Layer name="parking-area" status="on" srs="&osm2pgsql_projection;">
183    <StyleName>parking-area</StyleName>
184    <Datasource>
185      <Parameter name="table">
186      (select way,(tags->'amenity') as "amenity",(tags->'tourism') as "tourism",(tags->'name') as "name",(tags->'fee') as "fee",(tags->'access') as "access",(tags->'parking:condition:area') as "parking:condition:area"
187       from &prefix;_polygon
188       where
189          (tags ? 'amenity') AND (tags->'amenity') in ('parking')
190          or (tags ? 'tourism') AND (tags->'tourism') in ('camp_site','caravan_site','picnic_site')
191      ) as parking
192      </Parameter>
193      &datasource-settings;
194    </Datasource>
195</Layer>
Note: See TracBrowser for help on using the repository browser.