svn-gvsig-desktop / tags / v1_1_1_Build_1017 / libraries / libFMap / xsd / StyledLayerDescriptor.xsd @ 39128
History | View | Annotate | Download (7.95 KB)
1 |
<?xml version="1.0" encoding="UTF-8"?> |
---|---|
2 |
<xsd:schema targetNamespace="http://www.opengis.net/sld" |
3 |
xmlns:sld="http://www.opengis.net/sld" |
4 |
xmlns:ogc="http://www.opengis.net/ogc" |
5 |
xmlns:xsd="http://www.w3.org/2001/XMLSchema" |
6 |
elementFormDefault="qualified"> |
7 |
<xsd:include schemaLocation="FeatureStyle.xsd"/> |
8 |
<xsd:import namespace="http://www.opengis.net/ogc" |
9 |
schemaLocation="../../filter/1.0.0/filter.xsd"/> |
10 |
|
11 |
<!-- *********************************************************************** --> |
12 |
<xsd:annotation> |
13 |
<xsd:documentation> |
14 |
STYLED LAYER DESCRIPTOR version 1.0.20 (2002-09-21) |
15 |
</xsd:documentation> |
16 |
</xsd:annotation> |
17 |
|
18 |
<xsd:element name="StyledLayerDescriptor"> |
19 |
<xsd:annotation> |
20 |
<xsd:documentation> |
21 |
A StyledLayerDescriptor is a sequence of styled layers, represented |
22 |
at the first level by NamedLayer and UserLayer elements. |
23 |
</xsd:documentation> |
24 |
</xsd:annotation> |
25 |
<xsd:complexType> |
26 |
<xsd:sequence> |
27 |
<xsd:element ref="sld:Name" minOccurs="0"/> |
28 |
<xsd:element ref="sld:Description" minOccurs="0"/> |
29 |
<xsd:element ref="sld:EnvironmentVariables" minOccurs="0"/> |
30 |
<xsd:element ref="sld:UseSLDLibrary" minOccurs="0" |
31 |
maxOccurs="unbounded"/> |
32 |
<xsd:choice minOccurs="0" maxOccurs="unbounded"> |
33 |
<xsd:element ref="sld:NamedLayer"/> |
34 |
<xsd:element ref="sld:UserLayer"/> |
35 |
</xsd:choice> |
36 |
</xsd:sequence> |
37 |
<xsd:attribute name="version" type="sld:VersionType" use="required"/> |
38 |
</xsd:complexType> |
39 |
</xsd:element> |
40 |
|
41 |
<!-- *********************************************************************** --> |
42 |
<xsd:annotation> |
43 |
<xsd:documentation> |
44 |
RUN-TIME ENVIRONMENT VARIABLES |
45 |
</xsd:documentation> |
46 |
</xsd:annotation> |
47 |
|
48 |
<xsd:element name="EnvironmentVariables"> |
49 |
<xsd:annotation> |
50 |
<xsd:documentation> |
51 |
An "EnvironmentVariables" element includes an XML blob which |
52 |
can be used to declare the values to use for global environment |
53 |
variables during the execution of the styling operations. |
54 |
These variables may be refered to in styles and symbols in the |
55 |
same way as feature properties. |
56 |
</xsd:documentation> |
57 |
</xsd:annotation> |
58 |
<xsd:complexType> |
59 |
<xsd:sequence> |
60 |
<xsd:any/> |
61 |
</xsd:sequence> |
62 |
</xsd:complexType> |
63 |
</xsd:element> |
64 |
|
65 |
<!-- *********************************************************************** --> |
66 |
<xsd:annotation> |
67 |
<xsd:documentation> |
68 |
SLD LIBRARIES |
69 |
</xsd:documentation> |
70 |
</xsd:annotation> |
71 |
|
72 |
<xsd:element name="UseSLDLibrary"> |
73 |
<xsd:annotation> |
74 |
<xsd:documentation> |
75 |
The UseSLDLibrary tag specifies that an external SLD document |
76 |
should be used as a "library" of named layers and styles to |
77 |
augment the set of named layers and styles that are available |
78 |
for use inside of a WMS. In the event of name collisions, the |
79 |
SLD library takes precedence over the ones internal to the WMS. |
80 |
Any number of libraries may be specified in an SLD and each |
81 |
successive library takes precedence over the former ones in the |
82 |
case of name collisions. |
83 |
</xsd:documentation> |
84 |
</xsd:annotation> |
85 |
<xsd:complexType> |
86 |
<xsd:sequence> |
87 |
<xsd:element ref="sld:OnlineResource"/> |
88 |
</xsd:sequence> |
89 |
</xsd:complexType> |
90 |
</xsd:element> |
91 |
|
92 |
<!-- *********************************************************************** --> |
93 |
<xsd:annotation> |
94 |
<xsd:documentation> |
95 |
LAYERS AND STYLES |
96 |
</xsd:documentation> |
97 |
</xsd:annotation> |
98 |
|
99 |
<xsd:element name="NamedLayer"> |
100 |
<xsd:annotation> |
101 |
<xsd:documentation> |
102 |
A NamedLayer is a layer of data that has a name advertised by a WMS. |
103 |
</xsd:documentation> |
104 |
</xsd:annotation> |
105 |
<xsd:complexType> |
106 |
<xsd:sequence> |
107 |
<xsd:element ref="sld:Name"/> |
108 |
<xsd:element ref="sld:Description" minOccurs="0"/> |
109 |
<xsd:element ref="sld:LayerFeatureConstraints" minOccurs="0"/> |
110 |
<xsd:choice minOccurs="0" maxOccurs="unbounded"> |
111 |
<xsd:element ref="sld:NamedStyle"/> |
112 |
<xsd:element ref="sld:UserStyle"/> |
113 |
</xsd:choice> |
114 |
</xsd:sequence> |
115 |
</xsd:complexType> |
116 |
</xsd:element> |
117 |
|
118 |
<xsd:element name="NamedStyle"> |
119 |
<xsd:annotation> |
120 |
<xsd:documentation> |
121 |
A NamedStyle is used to refer to a style that has a name in a WMS. |
122 |
</xsd:documentation> |
123 |
</xsd:annotation> |
124 |
<xsd:complexType> |
125 |
<xsd:sequence> |
126 |
<xsd:element ref="sld:Name"/> |
127 |
<xsd:element ref="sld:Description" minOccurs="0"/> |
128 |
</xsd:sequence> |
129 |
</xsd:complexType> |
130 |
</xsd:element> |
131 |
|
132 |
<xsd:element name="UserLayer"> |
133 |
<xsd:annotation> |
134 |
<xsd:documentation> |
135 |
A UserLayer allows a user-defined layer to be built from WFS and |
136 |
WCS data. |
137 |
</xsd:documentation> |
138 |
</xsd:annotation> |
139 |
<xsd:complexType> |
140 |
<xsd:sequence> |
141 |
<xsd:element ref="sld:Name" minOccurs="0"/> |
142 |
<xsd:element ref="sld:Description" minOccurs="0"/> |
143 |
<xsd:element ref="sld:RemoteOWS" minOccurs="0"/> |
144 |
<xsd:element ref="sld:LayerFeatureConstraints"/> |
145 |
<xsd:element ref="sld:UserStyle" maxOccurs="unbounded"/> |
146 |
</xsd:sequence> |
147 |
</xsd:complexType> |
148 |
</xsd:element> |
149 |
|
150 |
<xsd:element name="RemoteOWS"> |
151 |
<xsd:annotation> |
152 |
<xsd:documentation> |
153 |
A RemoteOWS gives a reference to a remote WFS/WCS/other-OWS server. |
154 |
</xsd:documentation> |
155 |
</xsd:annotation> |
156 |
<xsd:complexType> |
157 |
<xsd:sequence> |
158 |
<xsd:element ref="sld:Service"/> |
159 |
<xsd:element ref="sld:OnlineResource"/> |
160 |
</xsd:sequence> |
161 |
</xsd:complexType> |
162 |
</xsd:element> |
163 |
|
164 |
<xsd:element name="Service"> |
165 |
<xsd:annotation> |
166 |
<xsd:documentation> |
167 |
A Service refers to the type of a remote OWS server. |
168 |
</xsd:documentation> |
169 |
</xsd:annotation> |
170 |
<xsd:simpleType> |
171 |
<xsd:restriction base="xsd:string"> |
172 |
<xsd:enumeration value="WFS"/> |
173 |
<xsd:enumeration value="WCS"/> |
174 |
</xsd:restriction> |
175 |
</xsd:simpleType> |
176 |
</xsd:element> |
177 |
|
178 |
<xsd:element name="LayerFeatureConstraints"> |
179 |
<xsd:annotation> |
180 |
<xsd:documentation> |
181 |
LayerFeatureConstraints define what features & feature types are |
182 |
referenced in a layer. |
183 |
</xsd:documentation> |
184 |
</xsd:annotation> |
185 |
<xsd:complexType> |
186 |
<xsd:sequence> |
187 |
<xsd:element ref="sld:FeatureTypeConstraint" maxOccurs="unbounded"/> |
188 |
</xsd:sequence> |
189 |
</xsd:complexType> |
190 |
</xsd:element> |
191 |
|
192 |
<xsd:element name="FeatureTypeConstraint"> |
193 |
<xsd:annotation> |
194 |
<xsd:documentation> |
195 |
A FeatureTypeConstraint identifies a specific feature type and |
196 |
supplies fitlering. |
197 |
</xsd:documentation> |
198 |
</xsd:annotation> |
199 |
<xsd:complexType> |
200 |
<xsd:sequence> |
201 |
<xsd:element ref="sld:FeatureTypeName" minOccurs="0"/> |
202 |
<xsd:element ref="ogc:Filter" minOccurs="0"/> |
203 |
<xsd:element ref="sld:Extent" minOccurs="0" maxOccurs="unbounded"/> |
204 |
</xsd:sequence> |
205 |
</xsd:complexType> |
206 |
</xsd:element> |
207 |
|
208 |
<xsd:element name="Extent"> |
209 |
<xsd:annotation> |
210 |
<xsd:documentation> |
211 |
An Extent gives feature/coverage/raster/matrix dimension extent. |
212 |
</xsd:documentation> |
213 |
</xsd:annotation> |
214 |
<xsd:complexType> |
215 |
<xsd:sequence> |
216 |
<xsd:element ref="sld:Name"/> |
217 |
<xsd:element ref="sld:Value"/> |
218 |
</xsd:sequence> |
219 |
</xsd:complexType> |
220 |
</xsd:element> |
221 |
<xsd:element name="Value" type="xsd:string"/> |
222 |
|
223 |
<xsd:element name="UserStyle"> |
224 |
<xsd:annotation> |
225 |
<xsd:documentation> |
226 |
A UserStyle allows user-defined styling and is semantically |
227 |
equivalent to a WMS named style. |
228 |
</xsd:documentation> |
229 |
</xsd:annotation> |
230 |
<xsd:complexType> |
231 |
<xsd:sequence> |
232 |
<xsd:element ref="sld:Name" minOccurs="0"/> |
233 |
<xsd:element ref="sld:Description" minOccurs="0"/> |
234 |
<xsd:element ref="sld:IsDefault" minOccurs="0"/> |
235 |
<xsd:element ref="sld:FeatureStyle" maxOccurs="unbounded"/> |
236 |
</xsd:sequence> |
237 |
</xsd:complexType> |
238 |
</xsd:element> |
239 |
<xsd:element name="IsDefault" type="xsd:boolean"/> |
240 |
|
241 |
</xsd:schema> |