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

Last change on this file since 9134 was 9134, checked in by wiktorn, 9 years ago

Introduce imagery-source warnings about alignment and reprojections.

Introduce new setting to maps.xsd:

  • valid-georeference - which marks imagery sources that are properly georeferenced (i.e. do not need imagery offset adjustments)
  • epsg4326to3857Supported - which marks imagery sources that might be safely queried using EPSG:3857 square BBOX, using EPSG:4326 projection

Make the AlignImageryPanel to show only, when valid-georeference is not set to true and provide the ability to hide this message ("do not show again"), which will be now remembered on per-source basis. Due to this changes, good imagery sources will not show warning to novice users and - experienced users will be presented with a warning, when they open an new imagery source which might be unaligned.

Introduce the ability to check "do not show again" the warning about EPSG:3857 to EPSG:4326 reprojections - as above - on per imagery basis.

All imagery sources should be now reviewed and set valid-georeference=true when appropriate.

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