source: josm/trunk/resources/data/maps.xsd @ 16117

Last change on this file since 16117 was 16117, checked in by stoecker, 3 years ago

fix #18926 - drop last-check attribute

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