-
Notifications
You must be signed in to change notification settings - Fork 1
/
BaseMaps.xsd
60 lines (52 loc) · 1.96 KB
/
BaseMaps.xsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="BaseMaps" type="BaseMapsType"/>
<!-- Metadata is just a standard type with key/value paris-->
<xs:complexType name="MetaType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute type="xs:string" name="name" use="required"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="MetadataType">
<xs:sequence>
<xs:element type="MetaType" name="Meta"/>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="lyrTilesType">
<xs:restriction base="xs:string">
<xs:enumeration value="wms" />
<xs:enumeration value="tms" />
<xs:enumeration value="xyz" />
</xs:restriction>
</xs:simpleType>
<!-- Layers have a few attributes and contain metadata -->
<xs:complexType name="LayerType">
<xs:sequence>
<xs:element type="MetadataType" name="Metadata"/>
</xs:sequence>
<xs:attribute type="xs:string" name="name" use="required"/>
<xs:attribute type="lyrTilesType" name="type" use="required"/>
<xs:attribute type="xs:string" name="url" use="required"/>
</xs:complexType>
<!-- Groups contain layers -->
<xs:complexType name="GroupLayerType">
<xs:sequence>
<xs:element type="LayerType" name="Layer" maxOccurs="unbounded" minOccurs="0"/>
</xs:sequence>
<xs:attribute type="xs:string" name="name" use="required"/>
</xs:complexType>
<!-- Regions contain Groups -->
<xs:complexType name="RegionType">
<xs:sequence>
<xs:element type="GroupLayerType" name="GroupLayer" maxOccurs="unbounded" minOccurs="0"/>
</xs:sequence>
<xs:attribute type="xs:string" name="name"/>
</xs:complexType>
<!-- Basemaps contain Regions -->
<xs:complexType name="BaseMapsType">
<xs:sequence>
<xs:element type="RegionType" name="Region"/>
</xs:sequence>
</xs:complexType>
</xs:schema>