Dave explained what the 'line' tag was intended for, so changed some features appropr...
[potlatch2.git] / resources / map_features.xml
1 <?xml version="1.0" encoding="UTF-8" ?>
2
3 <mapFeatures>
4
5   <!-- Categories -->
6   
7   <category name="Roads" id="roads">
8   </category>
9
10   <category name="Paths" id="paths">
11   </category>
12
13   <category name="Transport" id="transport">
14   </category>
15
16   <category name="Water" id="water">
17   </category>
18
19   <category name="Natural" id="natural">
20   </category>
21
22   <category name="Admin" id="admin">
23   </category>
24
25   <!-- Roads -->
26   
27   <inputSet id="majorRoad">
28     <inputSet ref="roadNames"/>
29     <inputSet ref="roadRefs"/>
30     <inputSet ref="roadRestrictions"/>
31     <inputSet ref="roadPhysical"/>
32   </inputSet>
33   
34   <inputSet id="minorRoad">
35     <inputSet ref="roadNames"/>
36     <inputSet ref="roadRestrictions"/>
37     <inputSet ref="roadPhysical"/>
38   </inputSet>
39   
40   <inputSet id="roadNames">
41     <input type="freetext" presence="always"
42         name="Name" category="Naming" priority="highest"
43         key="name" description="The most common name"/>
44     <input type="freetext" presence="onTagMatch"
45         name="International Name" category="Naming"
46         key="int_name" description="The internationally recognised name"/>
47     <input type="freetext" presence="onTagMatch"
48         name="Historical Name" category="Naming" priority="low"
49         key="old_name" description="The historic or previous name"/>
50   </inputSet>
51
52   <inputSet id="roadRefs">
53     <input type="freetext" presence="always"
54         name="Reference" category="Naming" priority="high"
55         key="ref" description="The official reference number"/>
56     <input type="freetext" presence="onTagMatch"
57         name="International Reference" category="Naming"
58         key="int_ref" description="The official international reference number"/>
59     <input type="freetext" presence="onTagMatch"
60         name="Old Reference" category="Naming" priority="low"
61         key="old_ref" description="The historic or previous reference number"/>  
62   </inputSet>
63   
64   <inputSet id="roadPhysical">
65     <input type="slider" presence="onTagMatch"
66         name="Layer" category="Physical" description="Relative vertical positions (-5 lowest, +5 highest)"
67         key="layer" min="-5" max="5" default="0"/>
68     <input type="freetext" presence="onTagMatch"
69         name="Width" category="Physical"
70         key="width" description="Width of the road"/>
71     <input type="choice" presence="onTagMatch"
72         name="Surface" category="Physical" description="Type of road surface"
73         key="surface">
74       <choice value="unpaved" text="Unpaved" description="Road surface is unsealed"/>
75       <choice value="paved" text="Paved" description="Road surface is sealed"/>
76       <choice value="asphalt" text="Asphalt"/>
77       <choice value="concrete" text="Concrete"/>
78       <choice value="paving_stones" text="Paving stones"/>
79       <choice value="cobblestone" text="Cobblestone"/>
80       <choice value="sand" text="Sand"/>
81       <choice value="gravel" text="Gravel"/>
82     </input>
83     <input type="choice" presence="onTagMatch"
84         name="Bridge" category="Physical" description="Road goes over a bridge"
85         key="bridge">
86       <choice value="yes" text="Generic Bridge" description="Generic bridge -- type unknown"/>
87       <choice value="viaduct" text="Viaduct" description="Viaduct"/>
88       <choice value="suspension" text="Suspension bridge"/>
89     </input>
90     <input type="choice" presence="onTagMatch"
91         name="Tunnel" category="Physical" description="Road goes into a tunnel"
92         key="tunnel">
93       <choice value="yes" text="Tunnel" description="Generic tunnel"/>
94     </input>
95   </inputSet>
96
97   <inputSet id="roadRestrictions">
98     <input type="choice" presence="onTagMatch"
99         name="Oneway" category="Restrictions" description="Oneway roads"
100         key="oneway">
101       <choice value="yes" match="yes|true|1" text="One way"
102         description="Road can only be travelled in direction of way" icon="features/oneway__yes.png"/>
103       <choice value="no" match="no|false|0" text="Two way"
104         description="Road can be travelled in both directions" icon="features/oneway__no.png"/>
105       <choice value="-1" match="-1|reverse" text="One way reverse"
106         description="Road can be travelled in opposite direction to way" icon="features/oneway__-1.png"/>
107     </input>
108     <input type="speed" presence="onTagMatch"
109         name="Speed Limit" category="Restrictions" description="Maximum permitted speed on this road"
110         key="maxspeed"/>
111   </inputSet>
112   
113   <inputSet id="buildingAddress">
114     <input type="freetext" presence="onTagMatch" category="Address" description="The number of the house, e.g. 156 or 10-12" name="House Number" key="addr:housenumber"/>
115     <input type="freetext" presence="onTagMatch" category="Address" description="The name of the house, e.g. Riverbank Cottage" name="Building Name" key="name"/>
116     <input type="freetext" presence="onTagMatch" category="Address" description="The Street Name (optional)" name="Street Name" key="addr:street"/>
117     <input type="freetext" presence="onTagMatch" category="Address" description="The postcode" name="Postcode" key="addr:postcode"/>
118   </inputSet> 
119   
120   <feature name="Motorway">
121     <category>roads</category>
122     <icon image="features/highway__motorway.png">
123       <font size="16pt"><b>${ref}</b></font><br/>
124     </icon>
125
126     <line/>
127     <tag k="highway" v="motorway"/>
128
129     <inputSet ref="majorRoad"/>
130   </feature>
131
132   <feature name="Motorway link" icon="features/motorway_link.png">
133     <category>roads</category>
134     <line/>
135     <tag k="highway" v="motorway_link"/>
136
137     <inputSet ref="majorRoad"/>
138   </feature>
139
140   <feature name="Trunk Road">
141     <category>roads</category>
142     <icon image="features/highway__trunk.png">
143       <font size="16pt"><b>${ref}</b></font><br/>
144       <font size="10pt">${name}</font>
145     </icon>
146
147     <line/>
148     <tag k="highway" v="trunk"/>
149     
150     <inputSet ref="majorRoad"/>
151   </feature>
152
153   <feature name="Primary Road">
154     <category>roads</category>
155     <icon>
156       <font size="16pt"><b>${ref}</b></font><br/>
157       <font size="10pt">${name}</font>
158     </icon>
159
160     <line/>
161     <tag k="highway" v="primary"/>
162
163     <inputSet ref="majorRoad"/>
164   </feature>
165
166   <feature name="Secondary Road">
167     <category>roads</category>
168     <icon>
169       <font size="16pt"><b>${ref}</b></font><br/>
170       <font size="10pt">${name}</font>
171     </icon>
172
173     <line/>
174     <tag k="highway" v="secondary"/>
175
176     <inputSet ref="majorRoad"/>
177   </feature>
178
179   <feature name="Tertiary Road">
180     <category>roads</category>
181     <icon>
182       <font size="14pt"><b>${name}</b></font><br/>
183       <font size="10pt">${ref}</font>
184     </icon>
185
186     <line/>
187     <tag k="highway" v="tertiary"/>
188
189     <inputSet ref="majorRoad"/>
190   </feature>
191
192   <feature name="Residential Road">
193     <category>roads</category>
194     <icon image="features/highway__residential.png">
195       <font size="14pt"><b>${name}</b></font><br/>
196       <font size="8pt">${postal_code}</font><br/>
197       <font size="8pt"><i>A residential road is one surrounded by houses, and that isn't a higher classification.</i></font>
198     </icon>
199
200     <line/>
201     <tag k="highway" v="residential"/>
202
203     <inputSet ref="minorRoad"/>
204   </feature>
205
206   <feature name="Road">
207     <category>roads</category>
208     <icon image="features/highway__unclassified.png">
209       <font size="14pt"><b>${name}</b></font>
210     </icon>
211
212     <line/>
213     <tag k="highway" v="unclassified"/>
214
215     <inputSet ref="minorRoad"/>
216   </feature>
217
218   <feature name="Service Road">
219     <category>roads</category>
220     <icon image="features/highway__service.png">
221       <font size="14pt"><b>${name}</b></font>
222     </icon>
223     <description>
224       Access roads
225     </description>
226
227     <line/>
228     <tag k="highway" v="service"/>
229
230     <inputSet ref="minorRoad"/>
231   </feature>
232
233   <feature name="Unknown Road">
234     <category>roads</category>
235     <icon>
236       <font size="10pt">This road has not been given a specific type. It's a road, and that's all that's known.</font>
237     </icon>
238
239     <line/>
240     <tag k="highway" v="road"/>
241
242     <inputSet ref="minorRoad"/>
243   </feature>
244
245   <feature name="Living Street">
246     <category>roads</category>
247     <icon>
248       <font size="14pt"><b>${name}</b></font>
249     </icon>
250
251     <line/>
252     <tag k="highway" v="tertiary"/>
253
254     <inputSet ref="minorRoad"/>
255   </feature>
256
257   <feature name="Track">
258     <category>roads</category>
259     <icon>
260       <font size="14pt"><b>${name}</b></font>
261     </icon>
262
263     <line/>
264     <tag k="highway" v="track"/>
265
266     <inputSet ref="minorRoad"/>
267   </feature>
268
269   <feature name="Pedestrian Road">
270     <category>roads</category>
271     <icon>
272       <font size="14pt"><b>${name}</b></font>
273     </icon>
274
275     <tag k="highway" v="pedestrian"/>
276     <!-- pedestrian roads can be lines or areas, with different tags -->
277     <!-- TODO - implement this! -->
278     <line>
279       <tag k="highway" v="pedestrian"/>
280     </line>
281     <area>
282       <tag k="highway" v="pedestrian"/>
283       <tag k="area" v="yes"/>
284     </area>
285     <inputSet ref="minorRoad"/>
286   </feature>
287
288
289
290   <!-- Paths -->
291
292   <feature name="Cycle Path">
293     <category>paths</category>
294     <icon image="features/paths__unknown.png">
295       ${name} <i>${ncn_ref} ${rcn_ref} ${lcn_ref} ${ref}</i>
296     </icon>
297
298     <line/>
299     <tag k="highway" v="cycleway"/>
300   </feature>
301
302   <feature name="Foot Path">
303     <category>paths</category>
304     <icon image="features/paths__footway.png">
305       ${name} <i>${ref}</i>
306     </icon>
307
308     <line/>
309     <tag k="highway" v="footway"/>
310   </feature>
311
312   <feature name="Bridleway">
313     <category>paths</category>
314     <icon image="features/paths__bridleway.png">
315     </icon>
316
317     <line/>
318     <tag k="highway" v="bridleway"/>
319   </feature>
320
321   <feature name="Steps">
322     <category>paths</category>
323     <icon image="features/paths__unknown.png">
324     </icon>
325
326     <line/>
327     <tag k="highway" v="steps"/>
328   </feature>
329
330
331   <!-- Barriers -->
332
333   <feature name="Fence">
334     <icon>
335     </icon>
336
337     <line/>
338     <tag k="barrier" v="fence"/>
339   </feature>
340
341   <feature name="Hedge">
342     <icon>
343     </icon>
344
345     <line/>
346     <tag k="barrier" v="hedge"/>
347   </feature>
348
349   <feature name="Wall">
350     <icon>
351     </icon>
352
353     <line/>
354     <tag k="barrier" v="wall"/>
355   </feature>
356
357
358   <!-- Waterway -->
359
360   <feature name="Stream">
361     <category>water</category>
362     <icon image="features/waterway__stream.png">
363       <font size="14pt"><b>${name}</b></font>
364     </icon>
365
366     <line/>
367     <tag k="waterway" v="stream"/>
368   </feature>
369
370   <feature name="River">
371     <category>water</category>
372     <icon image="features/waterway__river.png">
373       <font size="14pt"><b>${name}</b></font>
374     </icon>
375
376     <line/>
377     <tag k="waterway" v="river"/>
378   </feature>
379
380   <feature name="Canal">
381     <category>water</category>
382     <icon image="features/waterway__canal.png">
383       <font size="14pt"><b>${name}</b></font>
384     </icon>
385
386     <line/>
387     <tag k="waterway" v="canal"/>
388   </feature>
389
390   <feature name="Dam">
391     <category>water</category>
392     <icon image="features/waterway__dam.png">
393       <font size="14pt"><b>${name}</b></font>
394     </icon>
395
396     <line/>
397     <tag k="waterway" v="dam"/>
398   </feature>
399
400
401   <!-- Railways -->
402
403   <feature name="Railway Line">
404     <category>transport</category>
405     <icon image="features/transport__railway.png">
406       <font size="14pt"><b>${name}</b></font>
407     </icon>
408
409     <line/>
410     <tag k="railway" v="rail"/>
411   </feature>
412
413   <feature name="Tram Line">
414     <category>transport</category>
415     <icon image="features/transport__tram.png">
416       <font size="14pt"><b>${name}</b></font>
417     </icon>
418
419     <line/>
420     <tag k="railway" v="tram"/>
421   </feature>
422
423   <feature name="Subway Line">
424     <category>transport</category>
425     <icon image="features/transport__subway.png">
426       <font size="14pt"><b>${name}</b></font>
427     </icon>
428
429     <line/>
430     <tag k="railway" v="subway"/>
431   </feature>
432
433   <feature name="Railway Station">
434     <icon image="features/transport__railway.png">
435       <font size="14pt"><b>${name}</b></font>
436     </icon>
437     
438     <point/>
439     <tag k="railway" v="station"/>
440   </feature>
441   
442   <!-- building -->
443
444   <feature name="Building">
445     <icon>
446       <b>${name} ${addr:housename}</b><br/>
447       ${addr:housenumber} ${addr:street} ${addr:postcode}
448     </icon>
449
450     <area/>
451     <tag k="building" v="*"/>
452     <inputSet ref="buildingAddress" />
453   </feature>
454
455   <feature name="Park">
456     <icon>
457       <b>${name}</b><br/>
458     </icon>
459
460     <area/>
461     <tag k="leisure" v="park"/>
462   </feature>
463   
464   <feature name="Forest">
465     <icon>
466       <b>${name}</b><br/>
467     </icon>
468
469     <area/>
470     <tag k="landuse" v="forest"/>
471   </feature>
472
473 </mapFeatures>
474