source: josm/trunk/data/maps.xsd@ 8048

Last change on this file since 8048 was 8048, checked in by stoecker, 10 years ago

change XSD, so description and mirror can appear more than once (with unwanted side effects)

  • Property svn:eol-style set to native
File size: 22.1 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://josm.openstreetmap.de/maps-1.0"
3 xmlns:tns="http://josm.openstreetmap.de/maps-1.0" elementFormDefault="qualified">
4
5 <xs:simpleType name="latitude">
6 <xs:restriction base="xs:decimal">
7 <xs:minInclusive value="-90" />
8 <xs:maxInclusive value="+90" />
9 </xs:restriction>
10 </xs:simpleType>
11
12 <xs:simpleType name="longitude">
13 <xs:restriction base="xs:decimal">
14 <xs:minInclusive value="-180" />
15 <xs:maxInclusive value="+180" />
16 </xs:restriction>
17 </xs:simpleType>
18
19 <xs:simpleType name="id">
20 <!-- exclude white space characters and characters that are not valid for file names in Windows -->
21 <xs:restriction base="xs:string">
22 <xs:pattern value='[^\s/\\:*?"&lt;>|]+' />
23 </xs:restriction>
24 </xs:simpleType>
25
26 <xs:simpleType name="type">
27 <xs:restriction base="xs:string">
28 <xs:enumeration value="wms" />
29 <xs:enumeration value="wms_endpoint" />
30 <xs:enumeration value="tms" />
31 <xs:enumeration value="html" />
32 <xs:enumeration value="bing" />
33 <xs:enumeration value="scanex" />
34 </xs:restriction>
35 </xs:simpleType>
36
37 <xs:simpleType name="zoom">
38 <xs:restriction base="xs:integer">
39 <xs:minInclusive value="1" />
40 <xs:maxInclusive value="22" />
41 </xs:restriction>
42 </xs:simpleType>
43
44 <xs:complexType name="eula">
45 <xs:simpleContent>
46 <xs:extension base="xs:anyURI" >
47 <xs:attribute name="mandatory" type="xs:boolean" use="optional" />
48 </xs:extension>
49 </xs:simpleContent>
50 </xs:complexType>
51
52 <xs:complexType name="attribution-text">
53 <xs:simpleContent>
54 <xs:extension base="xs:string">
55 <xs:attribute name="mandatory" type="xs:boolean" use="optional" />
56 </xs:extension>
57 </xs:simpleContent>
58 </xs:complexType>
59
60 <xs:complexType name="description">
61 <xs:simpleContent>
62 <xs:extension base="xs:string">
63 <xs:attribute name="lang" type="xs:string" use="required" />
64 </xs:extension>
65 </xs:simpleContent>
66 </xs:complexType>
67
68 <xs:complexType name="point">
69 <xs:attribute name="lat" type="tns:latitude" use="required" />
70 <xs:attribute name="lon" type="tns:longitude" use="required" />
71 </xs:complexType>
72
73 <xs:complexType name="shape">
74 <xs:sequence>
75 <xs:element name="point" minOccurs="3" maxOccurs="999" type="tns:point" />
76 </xs:sequence>
77 </xs:complexType>
78
79 <xs:complexType name="bounds">
80 <xs:sequence>
81 <xs:element name="shape" minOccurs="0" maxOccurs="100" type="tns:shape" />
82 </xs:sequence>
83 <xs:attribute name="min-lat" type="tns:latitude" use="required" />
84 <xs:attribute name="min-lon" type="tns:longitude" use="required" />
85 <xs:attribute name="max-lat" type="tns:latitude" use="required" />
86 <xs:attribute name="max-lon" type="tns:longitude" use="required" />
87 </xs:complexType>
88
89 <xs:complexType name="projections">
90 <xs:sequence>
91 <!-- TODO: find an easy way to validate projections codes -->
92 <xs:element name="code" minOccurs="0" maxOccurs="unbounded" type="xs:string" />
93 </xs:sequence>
94 </xs:complexType>
95
96 <!-- ISO3166-1, taken from http://www.iso.org/iso/country_codes/iso_3166_code_lists.htm + "EU" for Europe -->
97 <xs:simpleType name="iso3166">
98 <xs:restriction base="xs:string">
99 <!-- EUROPE (JOSM ONLY) -->
100 <xs:enumeration value="EU" />
101 <!-- AFGHANISTAN -->
102 <xs:enumeration value="AF" />
103 <!-- ÅLAND ISLANDS -->
104 <xs:enumeration value="AX" />
105 <!-- ALBANIA -->
106 <xs:enumeration value="AL" />
107 <!-- ALGERIA -->
108 <xs:enumeration value="DZ" />
109 <!-- AMERICAN SAMOA -->
110 <xs:enumeration value="AS" />
111 <!-- ANDORRA -->
112 <xs:enumeration value="AD" />
113 <!-- ANGOLA -->
114 <xs:enumeration value="AO" />
115 <!-- ANGUILLA -->
116 <xs:enumeration value="AI" />
117 <!-- ANTARCTICA -->
118 <xs:enumeration value="AQ" />
119 <!-- ANTIGUA AND BARBUDA -->
120 <xs:enumeration value="AG" />
121 <!-- ARGENTINA -->
122 <xs:enumeration value="AR" />
123 <!-- ARMENIA -->
124 <xs:enumeration value="AM" />
125 <!-- ARUBA -->
126 <xs:enumeration value="AW" />
127 <!-- AUSTRALIA -->
128 <xs:enumeration value="AU" />
129 <!-- AUSTRIA -->
130 <xs:enumeration value="AT" />
131 <!-- AZERBAIJAN -->
132 <xs:enumeration value="AZ" />
133 <!-- BAHAMAS -->
134 <xs:enumeration value="BS" />
135 <!-- BAHRAIN -->
136 <xs:enumeration value="BH" />
137 <!-- BANGLADESH -->
138 <xs:enumeration value="BD" />
139 <!-- BARBADOS -->
140 <xs:enumeration value="BB" />
141 <!-- BELARUS -->
142 <xs:enumeration value="BY" />
143 <!-- BELGIUM -->
144 <xs:enumeration value="BE" />
145 <!-- BELIZE -->
146 <xs:enumeration value="BZ" />
147 <!-- BENIN -->
148 <xs:enumeration value="BJ" />
149 <!-- BERMUDA -->
150 <xs:enumeration value="BM" />
151 <!-- BHUTAN -->
152 <xs:enumeration value="BT" />
153 <!-- BOLIVIA, PLURINATIONAL STATE OF -->
154 <xs:enumeration value="BO" />
155 <!-- BONAIRE, SINT EUSTATIUS AND SABA -->
156 <xs:enumeration value="BQ" />
157 <!-- BOSNIA AND HERZEGOVINA -->
158 <xs:enumeration value="BA" />
159 <!-- BOTSWANA -->
160 <xs:enumeration value="BW" />
161 <!-- BOUVET ISLAND -->
162 <xs:enumeration value="BV" />
163 <!-- BRAZIL -->
164 <xs:enumeration value="BR" />
165 <!-- BRITISH INDIAN OCEAN TERRITORY -->
166 <xs:enumeration value="IO" />
167 <!-- BRUNEI DARUSSALAM -->
168 <xs:enumeration value="BN" />
169 <!-- BULGARIA -->
170 <xs:enumeration value="BG" />
171 <!-- BURKINA FASO -->
172 <xs:enumeration value="BF" />
173 <!-- BURUNDI -->
174 <xs:enumeration value="BI" />
175 <!-- CAMBODIA -->
176 <xs:enumeration value="KH" />
177 <!-- CAMEROON -->
178 <xs:enumeration value="CM" />
179 <!-- CANADA -->
180 <xs:enumeration value="CA" />
181 <!-- CAPE VERDE -->
182 <xs:enumeration value="CV" />
183 <!-- CAYMAN ISLANDS -->
184 <xs:enumeration value="KY" />
185 <!-- CENTRAL AFRICAN REPUBLIC -->
186 <xs:enumeration value="CF" />
187 <!-- CHAD -->
188 <xs:enumeration value="TD" />
189 <!-- CHILE -->
190 <xs:enumeration value="CL" />
191 <!-- CHINA -->
192 <xs:enumeration value="CN" />
193 <!-- CHRISTMAS ISLAND -->
194 <xs:enumeration value="CX" />
195 <!-- COCOS (KEELING) ISLANDS -->
196 <xs:enumeration value="CC" />
197 <!-- COLOMBIA -->
198 <xs:enumeration value="CO" />
199 <!-- COMOROS -->
200 <xs:enumeration value="KM" />
201 <!-- CONGO -->
202 <xs:enumeration value="CG" />
203 <!-- CONGO, THE DEMOCRATIC REPUBLIC OF THE -->
204 <xs:enumeration value="CD" />
205 <!-- COOK ISLANDS -->
206 <xs:enumeration value="CK" />
207 <!-- COSTA RICA -->
208 <xs:enumeration value="CR" />
209 <!-- CÔTE D'IVOIRE -->
210 <xs:enumeration value="CI" />
211 <!-- CROATIA -->
212 <xs:enumeration value="HR" />
213 <!-- CUBA -->
214 <xs:enumeration value="CU" />
215 <!-- CURAÇAO -->
216 <xs:enumeration value="CW" />
217 <!-- CYPRUS -->
218 <xs:enumeration value="CY" />
219 <!-- CZECH REPUBLIC -->
220 <xs:enumeration value="CZ" />
221 <!-- DENMARK -->
222 <xs:enumeration value="DK" />
223 <!-- DJIBOUTI -->
224 <xs:enumeration value="DJ" />
225 <!-- DOMINICA -->
226 <xs:enumeration value="DM" />
227 <!-- DOMINICAN REPUBLIC -->
228 <xs:enumeration value="DO" />
229 <!-- ECUADOR -->
230 <xs:enumeration value="EC" />
231 <!-- EGYPT -->
232 <xs:enumeration value="EG" />
233 <!-- EL SALVADOR -->
234 <xs:enumeration value="SV" />
235 <!-- EQUATORIAL GUINEA -->
236 <xs:enumeration value="GQ" />
237 <!-- ERITREA -->
238 <xs:enumeration value="ER" />
239 <!-- ESTONIA -->
240 <xs:enumeration value="EE" />
241 <!-- ETHIOPIA -->
242 <xs:enumeration value="ET" />
243 <!-- FALKLAND ISLANDS (MALVINAS) -->
244 <xs:enumeration value="FK" />
245 <!-- FAROE ISLANDS -->
246 <xs:enumeration value="FO" />
247 <!-- FIJI -->
248 <xs:enumeration value="FJ" />
249 <!-- FINLAND -->
250 <xs:enumeration value="FI" />
251 <!-- FRANCE -->
252 <xs:enumeration value="FR" />
253 <!-- FRENCH GUIANA -->
254 <xs:enumeration value="GF" />
255 <!-- FRENCH POLYNESIA -->
256 <xs:enumeration value="PF" />
257 <!-- FRENCH SOUTHERN TERRITORIES -->
258 <xs:enumeration value="TF" />
259 <!-- GABON -->
260 <xs:enumeration value="GA" />
261 <!-- GAMBIA -->
262 <xs:enumeration value="GM" />
263 <!-- GEORGIA -->
264 <xs:enumeration value="GE" />
265 <!-- GERMANY -->
266 <xs:enumeration value="DE" />
267 <!-- GHANA -->
268 <xs:enumeration value="GH" />
269 <!-- GIBRALTAR -->
270 <xs:enumeration value="GI" />
271 <!-- GREECE -->
272 <xs:enumeration value="GR" />
273 <!-- GREENLAND -->
274 <xs:enumeration value="GL" />
275 <!-- GRENADA -->
276 <xs:enumeration value="GD" />
277 <!-- GUADELOUPE -->
278 <xs:enumeration value="GP" />
279 <!-- GUAM -->
280 <xs:enumeration value="GU" />
281 <!-- GUATEMALA -->
282 <xs:enumeration value="GT" />
283 <!-- GUERNSEY -->
284 <xs:enumeration value="GG" />
285 <!-- GUINEA -->
286 <xs:enumeration value="GN" />
287 <!-- GUINEA-BISSAU -->
288 <xs:enumeration value="GW" />
289 <!-- GUYANA -->
290 <xs:enumeration value="GY" />
291 <!-- HAITI -->
292 <xs:enumeration value="HT" />
293 <!-- HEARD ISLAND AND MCDONALD ISLANDS -->
294 <xs:enumeration value="HM" />
295 <!-- HOLY SEE (VATICAN CITY STATE) -->
296 <xs:enumeration value="VA" />
297 <!-- HONDURAS -->
298 <xs:enumeration value="HN" />
299 <!-- HONG KONG -->
300 <xs:enumeration value="HK" />
301 <!-- HUNGARY -->
302 <xs:enumeration value="HU" />
303 <!-- ICELAND -->
304 <xs:enumeration value="IS" />
305 <!-- INDIA -->
306 <xs:enumeration value="IN" />
307 <!-- INDONESIA -->
308 <xs:enumeration value="ID" />
309 <!-- IRAN, ISLAMIC REPUBLIC OF -->
310 <xs:enumeration value="IR" />
311 <!-- IRAQ -->
312 <xs:enumeration value="IQ" />
313 <!-- IRELAND -->
314 <xs:enumeration value="IE" />
315 <!-- ISLE OF MAN -->
316 <xs:enumeration value="IM" />
317 <!-- ISRAEL -->
318 <xs:enumeration value="IL" />
319 <!-- ITALY -->
320 <xs:enumeration value="IT" />
321 <!-- JAMAICA -->
322 <xs:enumeration value="JM" />
323 <!-- JAPAN -->
324 <xs:enumeration value="JP" />
325 <!-- JERSEY -->
326 <xs:enumeration value="JE" />
327 <!-- JORDAN -->
328 <xs:enumeration value="JO" />
329 <!-- KAZAKHSTAN -->
330 <xs:enumeration value="KZ" />
331 <!-- KENYA -->
332 <xs:enumeration value="KE" />
333 <!-- KIRIBATI -->
334 <xs:enumeration value="KI" />
335 <!-- KOREA, DEMOCRATIC PEOPLE'S REPUBLIC OF -->
336 <xs:enumeration value="KP" />
337 <!-- KOREA, REPUBLIC OF -->
338 <xs:enumeration value="KR" />
339 <!-- KUWAIT -->
340 <xs:enumeration value="KW" />
341 <!-- KYRGYZSTAN -->
342 <xs:enumeration value="KG" />
343 <!-- LAO PEOPLE'S DEMOCRATIC REPUBLIC -->
344 <xs:enumeration value="LA" />
345 <!-- LATVIA -->
346 <xs:enumeration value="LV" />
347 <!-- LEBANON -->
348 <xs:enumeration value="LB" />
349 <!-- LESOTHO -->
350 <xs:enumeration value="LS" />
351 <!-- LIBERIA -->
352 <xs:enumeration value="LR" />
353 <!-- LIBYAN ARAB JAMAHIRIYA -->
354 <xs:enumeration value="LY" />
355 <!-- LIECHTENSTEIN -->
356 <xs:enumeration value="LI" />
357 <!-- LITHUANIA -->
358 <xs:enumeration value="LT" />
359 <!-- LUXEMBOURG -->
360 <xs:enumeration value="LU" />
361 <!-- MACAO -->
362 <xs:enumeration value="MO" />
363 <!-- MACEDONIA, THE FORMER YUGOSLAV REPUBLIC OF -->
364 <xs:enumeration value="MK" />
365 <!-- MADAGASCAR -->
366 <xs:enumeration value="MG" />
367 <!-- MALAWI -->
368 <xs:enumeration value="MW" />
369 <!-- MALAYSIA -->
370 <xs:enumeration value="MY" />
371 <!-- MALDIVES -->
372 <xs:enumeration value="MV" />
373 <!-- MALI -->
374 <xs:enumeration value="ML" />
375 <!-- MALTA -->
376 <xs:enumeration value="MT" />
377 <!-- MARSHALL ISLANDS -->
378 <xs:enumeration value="MH" />
379 <!-- MARTINIQUE -->
380 <xs:enumeration value="MQ" />
381 <!-- MAURITANIA -->
382 <xs:enumeration value="MR" />
383 <!-- MAURITIUS -->
384 <xs:enumeration value="MU" />
385 <!-- MAYOTTE -->
386 <xs:enumeration value="YT" />
387 <!-- MEXICO -->
388 <xs:enumeration value="MX" />
389 <!-- MICRONESIA, FEDERATED STATES OF -->
390 <xs:enumeration value="FM" />
391 <!-- MOLDOVA, REPUBLIC OF -->
392 <xs:enumeration value="MD" />
393 <!-- MONACO -->
394 <xs:enumeration value="MC" />
395 <!-- MONGOLIA -->
396 <xs:enumeration value="MN" />
397 <!-- MONTENEGRO -->
398 <xs:enumeration value="ME" />
399 <!-- MONTSERRAT -->
400 <xs:enumeration value="MS" />
401 <!-- MOROCCO -->
402 <xs:enumeration value="MA" />
403 <!-- MOZAMBIQUE -->
404 <xs:enumeration value="MZ" />
405 <!-- MYANMAR -->
406 <xs:enumeration value="MM" />
407 <!-- NAMIBIA -->
408 <xs:enumeration value="NA" />
409 <!-- NAURU -->
410 <xs:enumeration value="NR" />
411 <!-- NEPAL -->
412 <xs:enumeration value="NP" />
413 <!-- NETHERLANDS -->
414 <xs:enumeration value="NL" />
415 <!-- NEW CALEDONIA -->
416 <xs:enumeration value="NC" />
417 <!-- NEW ZEALAND -->
418 <xs:enumeration value="NZ" />
419 <!-- NICARAGUA -->
420 <xs:enumeration value="NI" />
421 <!-- NIGER -->
422 <xs:enumeration value="NE" />
423 <!-- NIGERIA -->
424 <xs:enumeration value="NG" />
425 <!-- NIUE -->
426 <xs:enumeration value="NU" />
427 <!-- NORFOLK ISLAND -->
428 <xs:enumeration value="NF" />
429 <!-- NORTHERN MARIANA ISLANDS -->
430 <xs:enumeration value="MP" />
431 <!-- NORWAY -->
432 <xs:enumeration value="NO" />
433 <!-- OMAN -->
434 <xs:enumeration value="OM" />
435 <!-- PAKISTAN -->
436 <xs:enumeration value="PK" />
437 <!-- PALAU -->
438 <xs:enumeration value="PW" />
439 <!-- PALESTINIAN TERRITORY, OCCUPIED -->
440 <xs:enumeration value="PS" />
441 <!-- PANAMA -->
442 <xs:enumeration value="PA" />
443 <!-- PAPUA NEW GUINEA -->
444 <xs:enumeration value="PG" />
445 <!-- PARAGUAY -->
446 <xs:enumeration value="PY" />
447 <!-- PERU -->
448 <xs:enumeration value="PE" />
449 <!-- PHILIPPINES -->
450 <xs:enumeration value="PH" />
451 <!-- PITCAIRN -->
452 <xs:enumeration value="PN" />
453 <!-- POLAND -->
454 <xs:enumeration value="PL" />
455 <!-- PORTUGAL -->
456 <xs:enumeration value="PT" />
457 <!-- PUERTO RICO -->
458 <xs:enumeration value="PR" />
459 <!-- QATAR -->
460 <xs:enumeration value="QA" />
461 <!-- RÉUNION -->
462 <xs:enumeration value="RE" />
463 <!-- ROMANIA -->
464 <xs:enumeration value="RO" />
465 <!-- RUSSIAN FEDERATION -->
466 <xs:enumeration value="RU" />
467 <!-- RWANDA -->
468 <xs:enumeration value="RW" />
469 <!-- SAINT BARTHÉLEMY -->
470 <xs:enumeration value="BL" />
471 <!-- SAINT HELENA, ASCENSION AND TRISTAN DA CUNHA -->
472 <xs:enumeration value="SH" />
473 <!-- SAINT KITTS AND NEVIS -->
474 <xs:enumeration value="KN" />
475 <!-- SAINT LUCIA -->
476 <xs:enumeration value="LC" />
477 <!-- SAINT MARTIN (FRENCH PART) -->
478 <xs:enumeration value="MF" />
479 <!-- SAINT PIERRE AND MIQUELON -->
480 <xs:enumeration value="PM" />
481 <!-- SAINT VINCENT AND THE GRENADINES -->
482 <xs:enumeration value="VC" />
483 <!-- SAMOA -->
484 <xs:enumeration value="WS" />
485 <!-- SAN MARINO -->
486 <xs:enumeration value="SM" />
487 <!-- SAO TOME AND PRINCIPE -->
488 <xs:enumeration value="ST" />
489 <!-- SAUDI ARABIA -->
490 <xs:enumeration value="SA" />
491 <!-- SENEGAL -->
492 <xs:enumeration value="SN" />
493 <!-- SERBIA -->
494 <xs:enumeration value="RS" />
495 <!-- SEYCHELLES -->
496 <xs:enumeration value="SC" />
497 <!-- SIERRA LEONE -->
498 <xs:enumeration value="SL" />
499 <!-- SINGAPORE -->
500 <xs:enumeration value="SG" />
501 <!-- SINT MAARTEN (DUTCH PART) -->
502 <xs:enumeration value="SX" />
503 <!-- SLOVAKIA -->
504 <xs:enumeration value="SK" />
505 <!-- SLOVENIA -->
506 <xs:enumeration value="SI" />
507 <!-- SOLOMON ISLANDS -->
508 <xs:enumeration value="SB" />
509 <!-- SOMALIA -->
510 <xs:enumeration value="SO" />
511 <!-- SOUTH AFRICA -->
512 <xs:enumeration value="ZA" />
513 <!-- SOUTH GEORGIA AND THE SOUTH SANDWICH ISLANDS -->
514 <xs:enumeration value="GS" />
515 <!-- SOUTH SUDAN -->
516 <xs:enumeration value="SS" />
517 <!-- SPAIN -->
518 <xs:enumeration value="ES" />
519 <!-- SRI LANKA -->
520 <xs:enumeration value="LK" />
521 <!-- SUDAN -->
522 <xs:enumeration value="SD" />
523 <!-- SURINAME -->
524 <xs:enumeration value="SR" />
525 <!-- SVALBARD AND JAN MAYEN -->
526 <xs:enumeration value="SJ" />
527 <!-- SWAZILAND -->
528 <xs:enumeration value="SZ" />
529 <!-- SWEDEN -->
530 <xs:enumeration value="SE" />
531 <!-- SWITZERLAND -->
532 <xs:enumeration value="CH" />
533 <!-- SYRIAN ARAB REPUBLIC -->
534 <xs:enumeration value="SY" />
535 <!-- TAIWAN, PROVINCE OF CHINA -->
536 <xs:enumeration value="TW" />
537 <!-- TAJIKISTAN -->
538 <xs:enumeration value="TJ" />
539 <!-- TANZANIA, UNITED REPUBLIC OF -->
540 <xs:enumeration value="TZ" />
541 <!-- THAILAND -->
542 <xs:enumeration value="TH" />
543 <!-- TIMOR-LESTE -->
544 <xs:enumeration value="TL" />
545 <!-- TOGO -->
546 <xs:enumeration value="TG" />
547 <!-- TOKELAU -->
548 <xs:enumeration value="TK" />
549 <!-- TONGA -->
550 <xs:enumeration value="TO" />
551 <!-- TRINIDAD AND TOBAGO -->
552 <xs:enumeration value="TT" />
553 <!-- TUNISIA -->
554 <xs:enumeration value="TN" />
555 <!-- TURKEY -->
556 <xs:enumeration value="TR" />
557 <!-- TURKMENISTAN -->
558 <xs:enumeration value="TM" />
559 <!-- TURKS AND CAICOS ISLANDS -->
560 <xs:enumeration value="TC" />
561 <!-- TUVALU -->
562 <xs:enumeration value="TV" />
563 <!-- UGANDA -->
564 <xs:enumeration value="UG" />
565 <!-- UKRAINE -->
566 <xs:enumeration value="UA" />
567 <!-- UNITED ARAB EMIRATES -->
568 <xs:enumeration value="AE" />
569 <!-- UNITED KINGDOM -->
570 <xs:enumeration value="GB" />
571 <!-- UNITED STATES -->
572 <xs:enumeration value="US" />
573 <!-- UNITED STATES MINOR OUTLYING ISLANDS -->
574 <xs:enumeration value="UM" />
575 <!-- URUGUAY -->
576 <xs:enumeration value="UY" />
577 <!-- UZBEKISTAN -->
578 <xs:enumeration value="UZ" />
579 <!-- VANUATU -->
580 <xs:enumeration value="VU" />
581 <!-- VENEZUELA, BOLIVARIAN REPUBLIC OF -->
582 <xs:enumeration value="VE" />
583 <!-- VIET NAM -->
584 <xs:enumeration value="VN" />
585 <!-- VIRGIN ISLANDS, BRITISH -->
586 <xs:enumeration value="VG" />
587 <!-- VIRGIN ISLANDS, U.S. -->
588 <xs:enumeration value="VI" />
589 <!-- WALLIS AND FUTUNA -->
590 <xs:enumeration value="WF" />
591 <!-- WESTERN SAHARA -->
592 <xs:enumeration value="EH" />
593 <!-- YEMEN -->
594 <xs:enumeration value="YE" />
595 <!-- ZAMBIA -->
596 <xs:enumeration value="ZM" />
597 <!-- ZIMBABWE -->
598 <xs:enumeration value="ZW" />
599 </xs:restriction>
600 </xs:simpleType>
601
602 <xs:complexType name="imagery">
603 <xs:sequence>
604 <xs:element name="entry" minOccurs="0" maxOccurs="unbounded">
605 <xs:complexType>
606 <!-- this is actually not fully correct, but XSD does not allow multiple time the
607 same argument in one xs:all, so this sequence/choice combination, which
608 actually allows to much, only description and mirror can appear more than once! -->
609 <xs:sequence>
610 <xs:choice minOccurs="1" maxOccurs="unbounded">
611 <!-- The name of the imagery source -->
612 <xs:element name="name" minOccurs="1" maxOccurs="1" type="xs:string" />
613 <!-- A description of the imagery source -->
614 <xs:element name="description" minOccurs="0" type="tns:description" />
615 <!-- A unique id for the imagery source -->
616 <xs:element name="id" minOccurs="0" maxOccurs="1" type="tns:id" />
617 <!-- The type. Can be tms, wms and html. In addition, there are the special types bing and scanex
618 with hardcoded behaviour. -->
619 <xs:element name="type" minOccurs="1" maxOccurs="1" type="tns:type" />
620 <!-- To define as default server for this type -->
621 <xs:element name="default" minOccurs="0" maxOccurs="1" type="xs:boolean" />
622 <!-- The URL of the service. Can contain templates, e.g. {zoom} will be replaced by the current
623 zoom level (see below). The list of services is a XML document, so the '&' character is represented by
624 '&amp;'. Alternatively, the URL can be wrapped in a <![CDATA[...]]> section. -->
625 <xs:element name="url" minOccurs="1" maxOccurs="1" type="xs:string" />
626 <!-- A list of supported projections (inside <code> tags) -->
627 <xs:element name="projections" minOccurs="0" maxOccurs="1" type="tns:projections" />
628 <!-- TMS only: The minimum zoom level -->
629 <xs:element name="min-zoom" minOccurs="0" maxOccurs="1" type="tns:zoom" />
630 <!-- TMS only: The maximum zoom level. For higher scales, the images of the maximum level is enlarged. -->
631 <xs:element name="max-zoom" minOccurs="0" maxOccurs="1" type="tns:zoom" />
632 <!-- The area of use, e.g. <bounds min-lat='45.7' min-lon='5.9' max-lat='55.0' max-lon='17.3'/> -->
633 <xs:element name="bounds" minOccurs="0" maxOccurs="1" type="tns:bounds" />
634 <!-- Provide a source that this background can be used for OSM. A page on the OSM-wiki with additional explanation and further references is preferred, but other sources (for example the license text) can also be linked. -->
635 <xs:element name="permission-ref" minOccurs="0" maxOccurs="1" type="xs:anyURI" />
636 <!-- A link to an EULA text that has to be accepted by the user, before the imagery source is added. -->
637 <xs:element name="eula" minOccurs="0" maxOccurs="1" type="tns:eula" />
638 <!-- The attribution text to be shown all the time on the map. -->
639 <xs:element name="attribution-text" minOccurs="0" maxOccurs="1" type="tns:attribution-text" />
640 <!-- A link that is opened, when the user clicks on the attribution text -->
641 <xs:element name="attribution-url" minOccurs="0" maxOccurs="1" type="xs:anyURI" />
642 <!-- A image that is displayed as attribution for the imagery background -->
643 <xs:element name="logo-image" minOccurs="0" maxOccurs="1" type="xs:string" />
644 <!-- A link that is opened, when the user clicks on the logo image -->
645 <xs:element name="logo-url" minOccurs="0" maxOccurs="1" type="xs:anyURI" />
646 <!-- terms-of-use text (if missing, default tou text will be used, unless terms-of-use-url is also missing) -->
647 <xs:element name="terms-of-use-text" minOccurs="0" maxOccurs="1" type="xs:string" />
648 <!-- A link that is opened, when the user clicks on the terms-of-use text -->
649 <xs:element name="terms-of-use-url" minOccurs="0" maxOccurs="1" type="xs:string" />
650 <!-- The ISO 3166 country code -->
651 <xs:element name="country-code" minOccurs="0" maxOccurs="1" type="tns:iso3166" />
652 <!-- A base64-encoded image that is displayed as menu/toolbar icon -->
653 <xs:element name="icon" minOccurs="0" maxOccurs="1" type="xs:string" />
654 <xs:element name="mirror" minOccurs="0">
655 <xs:complexType>
656 <xs:all>
657 <xs:element name="type" minOccurs="1" maxOccurs="1" type="tns:type" />
658 <xs:element name="url" minOccurs="1" maxOccurs="1" type="xs:string" />
659 <xs:element name="projections" minOccurs="0" maxOccurs="1" type="tns:projections" />
660 <xs:element name="min-zoom" minOccurs="0" maxOccurs="1" type="tns:zoom" />
661 <xs:element name="max-zoom" minOccurs="0" maxOccurs="1" type="tns:zoom" />
662 </xs:all>
663 </xs:complexType>
664 </xs:element>
665 </xs:choice>
666 </xs:sequence>
667 <xs:attribute name="last-check" type="xs:date" use="optional" />
668 </xs:complexType>
669 </xs:element>
670 </xs:sequence>
671 </xs:complexType>
672
673 <xs:element name="imagery" type="tns:imagery" />
674</xs:schema>
Note: See TracBrowser for help on using the repository browser.