forked from nasa-gibs/onearth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlayer_configuration.xsd
152 lines (150 loc) · 6.52 KB
/
layer_configuration.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<xs:element name="LayerConfiguration">
<xs:complexType>
<xs:sequence>
<xs:element ref="Identifier"/>
<xs:element ref="Title"/>
<xs:element ref="FileNamePrefix"/>
<xs:element ref="Abstract" minOccurs="0"/>
<xs:element ref="TiledGroupName" minOccurs="0"/>
<xs:element ref="WMSGroupName" minOccurs="0"/>
<xs:element ref="HeaderFileName" minOccurs="0"/>
<xs:element ref="DataFileLocation" minOccurs="0"/>
<xs:element ref="IndexFileLocation" minOccurs="0"/>
<xs:element ref="ZIndexFileLocation" minOccurs="0"/>
<xs:element ref="Compression" minOccurs="0"/>
<xs:element ref="TileMatrixSet" minOccurs="0"/>
<xs:element ref="EmptyTileSize" minOccurs="0"/>
<xs:element ref="EmptyTile" minOccurs="0"/>
<xs:element ref="Projection"/>
<xs:element ref="Pattern" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="EnvironmentConfig"/>
<xs:element ref="ArchiveLocation" minOccurs="0"/>
<xs:element ref="ColorMap" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="StyleJSON" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="Time" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="Size" minOccurs="0"/>
<xs:element ref="DataValues" minOccurs="0"/>
<xs:element ref="PageSize" minOccurs="0"/>
<xs:element ref="Rsets" minOccurs="0"/>
<xs:element ref="BoundingBox" minOccurs="0"/>
<xs:element ref="VectorType" minOccurs="0"/>
<xs:element ref="VectorStyleFile" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Identifier" type="xs:NCName"/>
<xs:element name="Title" type="xs:string"/>
<xs:element name="FileNamePrefix" type="xs:string"/>
<xs:element name="Abstract" type="xs:string"/>
<xs:element name="TiledGroupName" type="xs:string"/>
<xs:element name="WMSGroupName" type="xs:string"/>
<xs:element name="ArchiveLocation" nillable="true">
<xs:complexType mixed="true">
<xs:attribute name="static" use="required" type="xs:boolean"/>
<xs:attribute name="year" use="required" type="xs:boolean"/>
<xs:attribute name="subdaily" use="optional" type="xs:boolean"/>
<xs:attribute name="root" use="optional" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:element name="HeaderFileName">
<xs:complexType mixed="true">
<xs:attribute name="type" use="optional" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:element name="DataFileLocation" type="xs:string" nillable="true"/>
<xs:element name="IndexFileLocation" type="xs:string" nillable="true"/>
<xs:element name="ZIndexFileLocation" type="xs:string" nillable="true"/>
<xs:element name="Compression">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="JPEG"/>
<xs:enumeration value="PNG"/>
<xs:enumeration value="EPNG"/>
<xs:enumeration value="TIF"/>
<xs:enumeration value="LERC"/>
<xs:enumeration value="PBF"/>
<xs:enumeration value="MVT"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="TileMatrixSet" type="xs:string"/>
<xs:element name="EmptyTile" nillable="true">
<xs:complexType mixed="true">
<xs:attribute name="offset" use="required" type="xs:integer"/>
</xs:complexType>
</xs:element>
<xs:element name="EmptyTileSize">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:integer">
<xs:attribute name="offset" use="required" type="xs:integer"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element name="Projection" type="xs:string"> </xs:element>
<xs:element name="Pattern" type="xs:string"/>
<xs:element name="EnvironmentConfig" type="xs:string"/>
<xs:element name="ColorMap">
<xs:complexType mixed="true">
<xs:attribute name="version" use="optional" type="xs:string"/>
<xs:attribute name="default" use="optional" type="xs:boolean"/>
</xs:complexType>
</xs:element>
<xs:element name="StyleJSON">
<xs:complexType mixed="true">
<xs:attribute name="version" use="optional" type="xs:string"/>
<xs:attribute name="default" use="optional" type="xs:boolean"/>
</xs:complexType>
</xs:element>
<xs:element name="Time" type="xs:string" nillable="true"/>
<xs:element name="Size" nillable="true">
<xs:complexType>
<xs:attribute name="c" type="xs:integer" use="required"/>
<xs:attribute name="x" type="xs:integer" use="required"/>
<xs:attribute name="y" type="xs:integer" use="required"/>
<xs:attribute name="z" type="xs:integer" use="optional"/>
</xs:complexType>
</xs:element>
<xs:element name="DataValues" nillable="true">
<xs:complexType mixed="true">
<xs:attribute name="NoData" type="xs:string" use="optional"/>
</xs:complexType>
</xs:element>
<xs:element name="PageSize" nillable="true">
<xs:complexType>
<xs:attribute name="c" type="xs:integer" use="required"/>
<xs:attribute name="x" type="xs:integer" use="required"/>
<xs:attribute name="y" type="xs:integer" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="Rsets" nillable="true">
<xs:complexType>
<xs:attribute name="scale" type="xs:integer" use="required"/>
<xs:attribute name="model" type="xs:string" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="BoundingBox" nillable="true">
<xs:complexType>
<xs:attribute name="maxx" type="xs:decimal" use="required"/>
<xs:attribute name="maxy" type="xs:decimal" use="required"/>
<xs:attribute name="minx" type="xs:decimal" use="required"/>
<xs:attribute name="miny" type="xs:decimal" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="VectorType" type="xs:string"/>
<xs:element name="VectorStyleFile" type="xs:string"/>
</xs:schema>