forked from MapServer/MapServer
-
Notifications
You must be signed in to change notification settings - Fork 2
/
mapfile.dtd
244 lines (228 loc) · 6.8 KB
/
mapfile.dtd
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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
<!-- MapServer Map File DTD -->
<!--
top level MAP object
<!ELEMENT MAP
((EXTENT|FONTSET|IMAGECOLOR|IMAGETYPE|IMAGEQUALITY|INTERLACE|SHAPEPATH|SIZE|SYMBOLSET|TRANSPARENT|UNITS|METADATA)*,(LEGEND|PROJECTION|QUERYMAP|REFERENCE|SCALEBAR|WEB)*,(SYMBOL|LAYER)+)
>
-->
<!ELEMENT MAP
(EXTENT|FONTSET|IMAGECOLOR|IMAGETYPE|IMAGEQUALITY|INTERLACE|SHAPEPATH|SIZE|SYMBOLSET|TRANSPARENT|UNITS|METADATA|LEGEND|PROJECTION|QUERYMAP|REFERENCE|SCALEBAR|WEB|SYMBOL|LAYER)*
>
<!ATTLIST MAP
NAME NMTOKEN #REQUIRED
STATUS (ON|OFF) "ON"
>
<!ELEMENT EXTENT (#PCDATA)>
<!ELEMENT FONTSET (#PCDATA)>
<!ELEMENT IMAGECOLOR (#PCDATA)>
<!ELEMENT IMAGETYPE (#PCDATA)>
<!ELEMENT IMAGEQUALITY (#PCDATA)>
<!ELEMENT INTERLACE (#PCDATA)>
<!ELEMENT SHAPEPATH (#PCDATA)>
<!ELEMENT SIZE (#PCDATA)>
<!ELEMENT SYMBOLSET (#PCDATA)>
<!ELEMENT TRANSPARENT (#PCDATA)>
<!ELEMENT UNITS (#PCDATA)>
<!--
LEGEND object
-->
<!ELEMENT LEGEND
(IMAGECOLOR|INTERLACE|KEYSIZE|KEYSPACING|LABEL|OUTLINECOLOR|POSITION|POSTLABELCACHE|TRANSPARENT)*
>
<!ATTLIST LEGEND
STATUS (ON|OFF|EMBED) "OFF"
>
<!-- IMAGECOLOR already declared -->
<!-- INTERLACE already declared -->
<!ELEMENT KEYSIZE (#PCDATA)>
<!ELEMENT KEYSPACING (#PCDATA)>
<!ELEMENT OUTLINECOLOR (#PCDATA)>
<!ELEMENT POSITION (#PCDATA)>
<!ELEMENT POSTLABELCACHE (#PCDATA)>
<!-- TRANSPARENT already declared -->
<!--
QUERYMAP object
-->
<!ELEMENT QUERYMAP
(COLOR|SIZE)*
>
<!ATTLIST QUERYMAP
STATUS (ON|OFF) "OFF"
STYLE (HILITE|NORMAL|SELECTED) "HILITE"
>
<!ELEMENT COLOR (#PCDATA)>
<!-- SIZE already declared -->
<!--
a PROJECTION object - nothing more that character data
-->
<!ELEMENT PROJECTION (#PCDATA)>
<!--
a SCALEBAR object
-->
<!ELEMENT SCALEBAR
(BACKGROUNDCOLOR|COLOR|IMAGECOLOR|INTERLACE|INTERVALS|LABEL|OUTLINECOLOR|POSITION|POSTLABELCACHE|SIZE|TRANSPARENT|UNITS)*
>
<!ATTLIST SCALEBAR
STATUS (ON|OFF|EMBED) "OFF"
STYLE (0|1) "0"
>
<!ELEMENT BACKGROUNDCOLOR (#PCDATA)>
<!-- ELEMENT COLOR (#PCDATA) -->
<!-- IMAGECOLOR already declared -->
<!-- INTERLACE already declared -->
<!ELEMENT INTERVALS (#PCDATA)>
<!-- OUTLINECOLOR already declared -->
<!-- POSITION already declared -->
<!-- POSTLABELCACHE already declared -->
<!-- SIZE already declared -->
<!-- TRANSPARENT already declared -->
<!-- UNITS already declared -->
<!--
a REFERENCE map object
-->
<!ELEMENT REFERENCE
(COLOR|EXTENT|IMAGE|OUTLINECOLOR|SIZE)*
>
<!ATTLIST REFERENCE
STATUS (ON|OFF) "OFF"
>
<!-- COLOR already declared -->
<!-- EXTENT already declared -->
<!ELEMENT IMAGE (#PCDATA)>
<!-- OUTLINECOLOR already declared -->
<!-- SIZE already declared -->
<!--
a WEB object
-->
<!ELEMENT WEB
(ERROR|EMPTY|FOOTER|HEADER|IMAGEPATH|IMAGEURL|LOG|MAXSCALE|MAXTEMPLATE|MINSCALE|MINTEMPLATE|TEMPLATE|METADATA)*
>
<!ELEMENT EMPTY (#PCDATA)>
<!ELEMENT ERROR (#PCDATA)>
<!ELEMENT FOOTER (#PCDATA)>
<!ELEMENT HEADER (#PCDATA)>
<!ELEMENT IMAGEPATH (#PCDATA)>
<!ELEMENT IMAGEURL (#PCDATA)>
<!ELEMENT LOG (#PCDATA)>
<!ELEMENT MAXSCALE (#PCDATA)>
<!ELEMENT MAXTEMPLATE (#PCDATA)>
<!ELEMENT MINSCALE (#PCDATA)>
<!ELEMENT MINTEMPLATE (#PCDATA)>
<!ELEMENT TEMPLATE (#PCDATA)>
<!ELEMENT METADATA (#PCDATA)>
<!--
a LAYER object
-->
<!ELEMENT LAYER
(CLASS|CLASSITEM|CONNECTION|CONNECTIONTYPE|DATA|DESCRIPTION|FEATURE|FILTER|FILTERITEM|FOOTER|GROUP|HEADER|TEMPLATE|LABELANGLEITEM|LABELCACHE|LABELITEM|LABELMAXSCALE|LABELMINSCALE|LABELREQUIRES|LABELSIZEITEM|MAXFEATURES|MAXSCALE|MINSCALE|OFFSITE|POSTLABELCACHE|PROJECTION|REQUIRES|SYMBOLSCALE|TILEINDEX|TILEITEM|TILESRS|TOLERANCE|TOLERANCEUNITS|TRANSFORM|TRANSPARENCY|METADATA)*
>
<!ATTLIST LAYER
NAME NMTOKEN #REQUIRED
STATUS (ON|OFF|DEFAULT) "OFF"
TYPE (ANNOTATION|POINT|LINE|POLYGON|POLYLINE|QUERY|RASTER) #REQUIRED
DUMP (TRUE|FALSE) "FALSE"
>
<!ELEMENT CLASSITEM (#PCDATA)>
<!ELEMENT CONNECTION (#PCDATA)>
<!ELEMENT CONNECTIONTYPE (#PCDATA)>
<!ELEMENT DATA (#PCDATA)>
<!ELEMENT DESCRIPTION (#PCDATA)>
<!-- ELEMENT FEATURE (#PCDATA) -->
<!ELEMENT FILTER (#PCDATA)>
<!ELEMENT FILTERITEM (#PCDATA)>
<!-- FOOTER already declared -->
<!ELEMENT GROUP (#PCDATA)>
<!-- HEADER already declared -->
<!ELEMENT LABELANGLEITEM (#PCDATA)>
<!ELEMENT LABELCACHE (#PCDATA)>
<!ELEMENT LABELITEM (#PCDATA)>
<!ELEMENT LABELMAXSCALE (#PCDATA)>
<!ELEMENT LABELMINSCALE (#PCDATA)>
<!ELEMENT LABELREQUIRES (#PCDATA)>
<!ELEMENT LABELSIZEITEM (#PCDATA)>
<!ELEMENT MAXFEATURES (#PCDATA)>
<!-- MAXSCALE already declared -->
<!-- MINSCALE already declared -->
<!ELEMENT OFFSITE (#PCDATA)>
<!-- POSTLABELCACHE already declared -->
<!ELEMENT REQUIRES (#PCDATA)>
<!ELEMENT SYMBOLSCALE (#PCDATA)>
<!ELEMENT TILEINDEX (#PCDATA)>
<!ELEMENT TILEITEM (#PCDATA)>
<!ELEMENT TILESRS (#PCDATA)>
<!ELEMENT TOLERANCE (#PCDATA)>
<!ELEMENT TOLERANCEUNITS (#PCDATA)>
<!ELEMENT TRANSFORM (#PCDATA)>
<!ELEMENT TRANSPARENCY (#PCDATA)>
<!--
a FEATURE object
-->
<!ELEMENT FEATURE
(POINTS|TEXT)*
>
<!ELEMENT POINTS (#PCDATA)>
<!ELEMENT TEXT (#PCDATA)>
<!--
a CLASS object
-->
<!ELEMENT CLASS
(BACKGROUNDCOLOR|COLOR|EXPRESSION|LABEL|MAXSIZE|MINSIZE|OUTLINECOLOR|OVERLAYBACKGROUNDCOLOR|OVERLAYCOLOR|OVERLAYMAXSIZE|OVERLAYMINSIZE|OVERLAYOUTLINECOLOR|OVERLAYSIZE|OVERLAYSYMBOL|SIZE|SYMBOL|TEMPLATE|TEXT|TYPE)*
>
<!ATTLIST CLASS
NAME CDATA #IMPLIED
>
<!-- BACKGROUNDCOLOR already declared -->
<!-- COLOR already declared -->
<!ELEMENT EXPRESSION (#PCDATA)>
<!ELEMENT MAXSIZE (#PCDATA)>
<!ELEMENT MINSIZE (#PCDATA)>
<!-- OUTLINECOLOR already declared -->
<!ELEMENT OVERLAYBACKGROUNDCOLOR (#PCDATA)>
<!ELEMENT OVERLAYCOLOR (#PCDATA)>
<!ELEMENT OVERLAYMAXSIZE (#PCDATA)>
<!ELEMENT OVERLAYMINSIZE (#PCDATA)>
<!ELEMENT OVERLAYOUTLINECOLOR (#PCDATA)>
<!ELEMENT OVERLAYSIZE (#PCDATA)>
<!ELEMENT OVERLAYSYMBOL (#PCDATA)>
<!-- SIZE already declared -->
<!ELEMENT SYMBOL (#PCDATA)>
<!-- TEMPLATE already declared -->
<!-- TEXT already declared -->
<!ELEMENT TYPE (#PCDATA)>
<!--
a LABEL object
-->
<!ELEMENT LABEL
(ANGLE|ANTIALIAS|BUFFER|BACKGROUNDCOLOR|BACKGROUNDSHADOWCOLOR|BACKGROUNDSHADOWSIZE|COLOR|FONT|FORCE|MAXSIZE|MINDISTANCE|MINFEATURESIZE|MINSIZE|OFFSET|OUTLINECOLOR|PARTIALS|POSITION|SHADOWCOLOR|SHADOWSIZE|SIZE|WRAP)*
>
<!ATTLIST LABEL
TYPE (BITMAP|TRUETYPE) #REQUIRED
>
<!ELEMENT ANGLE (#PCDATA)>
<!ELEMENT ANTIALIAS (#PCDATA)>
<!ELEMENT BUFFER (#PCDATA)>
<!-- BACKGROUNDCOLOR already declared -->
<!ELEMENT BACKGROUNDSHADOWCOLOR (#PCDATA)>
<!ELEMENT BACKGROUNDSHADOWSIZE (#PCDATA)>
<!-- COLOR already declared -->
<!ELEMENT FONT (#PCDATA)>
<!ELEMENT FORCE (#PCDATA)>
<!-- MAXSIZE already declared -->
<!ELEMENT MINDISTANCE (#PCDATA)>
<!ELEMENT MINFEATURESIZE (#PCDATA)>
<!-- MINSIZE already declared -->
<!-- OFFSET already declared -->
<!ELEMENT OFFSET (#PCDATA)>
<!-- OUTLINECOLOR already declared -->
<!ELEMENT PARTIALS (#PCDATA)>
<!-- POSITION already declared -->
<!ELEMENT SHADOWCOLOR (#PCDATA)>
<!ELEMENT SHADOWSIZE (#PCDATA)>
<!-- SIZE already declared -->
<!ELEMENT WRAP (#PCDATA)>
<!--
a JOIN object (still under development)
-->
<!--
a SYMBOL object
-->