Mercurial > dive4elements > river
comparison flys-artifacts/doc/conf/meta-data-template.xml @ 964:ff6ce301c472
Modified the CollectionMonitor (for recommended artifacts) to use the DataCage.
flys-artifacts/trunk@2384 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Thu, 21 Jul 2011 10:45:52 +0000 |
parents | db8d93cb65fd |
children | 89dfdfe823f0 |
comparison
equal
deleted
inserted
replaced
963:f48cef242e7f | 964:ff6ce301c472 |
---|---|
8 </dc:statement> | 8 </dc:statement> |
9 <dc:elements> | 9 <dc:elements> |
10 <river> | 10 <river> |
11 <dc:attribute name="name" value="${river_name}"/> | 11 <dc:attribute name="name" value="${river_name}"/> |
12 <dc:attribute name="db-id" value="${river_id}"/> | 12 <dc:attribute name="db-id" value="${river_id}"/> |
13 <discharge-table-nn> | 13 <dc:if test="dc:contains($artifact-outs, 'computed_discharge_curve')"> |
14 <discharge-table-gauge> | 14 <discharge-table-nn> |
15 <dc:context> | 15 <discharge-table-gauge> |
16 <dc:statement> | 16 <dc:context> |
17 SELECT id AS gauge_id, | 17 <dc:statement> |
18 name AS gauge_name | 18 SELECT id AS gauge_id, |
19 FROM gauges WHERE river_id = ${river_id} | 19 name AS gauge_name |
20 </dc:statement> | 20 FROM gauges WHERE river_id = ${river_id} |
21 <dc:elements> | 21 </dc:statement> |
22 <gauge> | 22 <dc:elements> |
23 <dc:attribute name="name" value="${gauge_name}"/> | 23 <gauge> |
24 <dc:attribute name="db-id" value="${gauge_id}"/> | 24 <dc:attribute name="name" value="${gauge_name}"/> |
25 <dc:context> | 25 <dc:attribute name="db-id" value="${gauge_id}"/> |
26 <dc:statement> | 26 <dc:context> |
27 SELECT description AS gauge_desc, | 27 <dc:statement> |
28 d.id AS discharge_id, | 28 SELECT description AS gauge_desc, |
29 ti.start_time AS g_start, | 29 d.id AS discharge_id, |
30 ti.stop_time AS g_stop | 30 ti.start_time AS g_start, |
31 FROM discharge_tables d JOIN time_intervals ti | 31 ti.stop_time AS g_stop |
32 ON d.time_interval_id = ti.id | 32 FROM discharge_tables d JOIN time_intervals ti |
33 WHERE d.gauge_id = ${gauge_id} AND d.kind = 1 | 33 ON d.time_interval_id = ti.id |
34 </dc:statement> | 34 WHERE d.gauge_id = ${gauge_id} AND d.kind = 1 |
35 <dc:elements> | 35 </dc:statement> |
36 <historical> | 36 <dc:elements> |
37 <dc:attribute name="name" value="${gauge_desc}"/> | 37 <historical> |
38 <dc:attribute name="from" value="${g_start}"/> | 38 <dc:attribute name="name" value="${gauge_desc}"/> |
39 <dc:attribute name="to" value="${g_stop}"/> | 39 <dc:attribute name="from" value="${g_start}"/> |
40 <dc:attribute name="db-id" value="${discharge_id}"/></historical> | 40 <dc:attribute name="to" value="${g_stop}"/> |
41 </dc:elements> | 41 <dc:attribute name="db-id" value="${discharge_id}"/></historical> |
42 </dc:context> | 42 </dc:elements> |
43 </gauge> | 43 </dc:context> |
44 </dc:elements> | 44 </gauge> |
45 </dc:context> | 45 </dc:elements> |
46 </discharge-table-gauge> | 46 </dc:context> |
47 <fixations> | 47 </discharge-table-gauge> |
48 <dc:attribute name="id" value="fixations-${river_id}"/> | 48 <fixations> |
49 <dc:context> | 49 <dc:attribute name="id" value="fixations-${river_id}"/> |
50 <dc:statement> | 50 <dc:context> |
51 SELECT id AS fix_id, | 51 <dc:statement> |
52 description AS fix_description | 52 SELECT id AS fix_id, |
53 FROM wsts WHERE kind = 2 AND river_id = ${river_id} | 53 description AS fix_description |
54 </dc:statement> | 54 FROM wsts WHERE kind = 2 AND river_id = ${river_id} |
55 <dc:elements> | 55 </dc:statement> |
56 <fixation> | 56 <dc:elements> |
57 <dc:attribute name="name" value="${fix_description}"/> | 57 <fixation> |
58 <dc:attribute name="db-id" value="${fix_id}"/> | 58 <dc:attribute name="name" value="${fix_description}"/> |
59 <columns> | 59 <dc:attribute name="db-id" value="${fix_id}"/> |
60 <dc:context> | 60 <columns> |
61 <dc:statement> | 61 <dc:context> |
62 SELECT id AS fix_column_id, | 62 <dc:statement> |
63 name AS fix_column_name | 63 SELECT id AS fix_column_id, |
64 FROM wst_columns WHERE wst_id = ${fix_id} | 64 name AS fix_column_name |
65 ORDER by position | 65 FROM wst_columns WHERE wst_id = ${fix_id} |
66 </dc:statement> | 66 ORDER by position |
67 <dc:elements> | 67 </dc:statement> |
68 <column> | 68 <dc:elements> |
69 <dc:attribute name="name" value="${fix_column_name}"/> | 69 <column> |
70 <dc:attribute name="db-id" value="${fix_column_id}"/></column> | 70 <dc:attribute name="name" value="${fix_column_name}"/> |
71 </dc:elements> | 71 <dc:attribute name="db-id" value="${fix_column_id}"/></column> |
72 </dc:context> | 72 </dc:elements> |
73 </columns> | 73 </dc:context> |
74 </fixation> | 74 </columns> |
75 </dc:elements> | 75 </fixation> |
76 </dc:context> | 76 </dc:elements> |
77 </fixations> | 77 </dc:context> |
78 <flood-protections> | 78 </fixations> |
79 <dc:attribute name="id" value="flood-protections-${river_id}"/> | 79 <flood-protections> |
80 <dc:context> | 80 <dc:attribute name="id" value="flood-protections-${river_id}"/> |
81 <dc:statement> | 81 <dc:context> |
82 SELECT id AS prot_id, | 82 <dc:statement> |
83 description AS prot_description | 83 SELECT id AS prot_id, |
84 FROM wsts WHERE kind = 5 AND river_id = ${river_id} | 84 description AS prot_description |
85 </dc:statement> | 85 FROM wsts WHERE kind = 5 AND river_id = ${river_id} |
86 <dc:elements> | 86 </dc:statement> |
87 <flood-protection> | 87 <dc:elements> |
88 <dc:attribute name="name" value="${prot_description}"/> | 88 <flood-protection> |
89 <dc:attribute name="db-id" value="${prot_id}"/> | 89 <dc:attribute name="name" value="${prot_description}"/> |
90 <columns> | 90 <dc:attribute name="db-id" value="${prot_id}"/> |
91 <dc:context> | 91 <columns> |
92 <dc:statement> | 92 <dc:context> |
93 SELECT id AS prot_column_id, | 93 <dc:statement> |
94 name AS prot_column_name | 94 SELECT id AS prot_column_id, |
95 FROM wst_columns WHERE wst_id = ${prot_id} | 95 name AS prot_column_name |
96 ORDER by position | 96 FROM wst_columns WHERE wst_id = ${prot_id} |
97 </dc:statement> | 97 ORDER by position |
98 <dc:elements> | 98 </dc:statement> |
99 <column> | 99 <dc:elements> |
100 <dc:attribute name="name" value="${prot_column_name}"/> | 100 <column> |
101 <dc:attribute name="db-id" value="${prot_column_id}"/></column> | 101 <dc:attribute name="name" value="${prot_column_name}"/> |
102 </dc:elements> | 102 <dc:attribute name="db-id" value="${prot_column_id}"/></column> |
103 </dc:context> | 103 </dc:elements> |
104 </columns> | 104 </dc:context> |
105 </flood-protection> | 105 </columns> |
106 </dc:elements> | 106 </flood-protection> |
107 </dc:context> | 107 </dc:elements> |
108 </flood-protections> | 108 </dc:context> |
109 <flood-water-marks> | 109 </flood-protections> |
110 <dc:attribute name="id" value="flood-water-marks-${river_id}"/> | 110 <flood-water-marks> |
111 <dc:context> | 111 <dc:attribute name="id" value="flood-water-marks-${river_id}"/> |
112 <dc:statement> | 112 <dc:context> |
113 SELECT id AS fw_id, | 113 <dc:statement> |
114 description AS fw_description | 114 SELECT id AS fw_id, |
115 FROM wsts WHERE kind = 4 AND river_id = ${river_id} | 115 description AS fw_description |
116 </dc:statement> | 116 FROM wsts WHERE kind = 4 AND river_id = ${river_id} |
117 <dc:elements> | 117 </dc:statement> |
118 <flood-water-mark> | 118 <dc:elements> |
119 <dc:attribute name="name" value="${fw_description}"/> | 119 <flood-water-mark> |
120 <dc:attribute name="db-id" value="${fw_id}"/> | 120 <dc:attribute name="name" value="${fw_description}"/> |
121 <columns> | 121 <dc:attribute name="db-id" value="${fw_id}"/> |
122 <dc:context> | 122 <columns> |
123 <dc:statement> | 123 <dc:context> |
124 SELECT id AS fw_column_id, | 124 <dc:statement> |
125 name AS fw_column_name | 125 SELECT id AS fw_column_id, |
126 FROM wst_columns WHERE wst_id = ${fw_id} | 126 name AS fw_column_name |
127 ORDER by position | 127 FROM wst_columns WHERE wst_id = ${fw_id} |
128 </dc:statement> | 128 ORDER by position |
129 <dc:elements> | 129 </dc:statement> |
130 <column> | 130 <dc:elements> |
131 <dc:attribute name="name" value="${fw_column_name}"/> | 131 <column> |
132 <dc:attribute name="db-id" value="${fw_column_id}"/></column> | 132 <dc:attribute name="name" value="${fw_column_name}"/> |
133 </dc:elements> | 133 <dc:attribute name="db-id" value="${fw_column_id}"/></column> |
134 </dc:context> | 134 </dc:elements> |
135 </columns> | 135 </dc:context> |
136 </flood-water-mark> | 136 </columns> |
137 </dc:elements> | 137 </flood-water-mark> |
138 </dc:context> | 138 </dc:elements> |
139 </flood-water-marks> | 139 </dc:context> |
140 <water-levels> | 140 </flood-water-marks> |
141 <dc:attribute name="id" value="water-levels-${river_id}"/> | 141 <water-levels> |
142 <dc:context> | 142 <dc:attribute name="id" value="water-levels-${river_id}"/> |
143 <dc:statement> | 143 <dc:context> |
144 SELECT id AS wl_id, | 144 <dc:statement> |
145 description AS wl_description | 145 SELECT id AS wl_id, |
146 FROM wsts WHERE kind = 0 AND river_id = ${river_id} | 146 description AS wl_description |
147 </dc:statement> | 147 FROM wsts WHERE kind = 0 AND river_id = ${river_id} |
148 <dc:elements> | 148 </dc:statement> |
149 <water-level> | 149 <dc:elements> |
150 <dc:attribute name="name" value="${wl_description}"/> | 150 <water-level> |
151 <dc:attribute name="db-id" value="${wl_id}"/> | 151 <dc:attribute name="name" value="${wl_description}"/> |
152 <columns> | 152 <dc:attribute name="db-id" value="${wl_id}"/> |
153 <dc:context> | 153 <columns> |
154 <dc:statement> | 154 <dc:context> |
155 SELECT id AS wl_column_id, | 155 <dc:statement> |
156 name AS wl_column_name | 156 SELECT id AS wl_column_id, |
157 FROM wst_columns WHERE wst_id = ${wl_id} | 157 name AS wl_column_name |
158 ORDER by position | 158 FROM wst_columns WHERE wst_id = ${wl_id} |
159 </dc:statement> | 159 ORDER by position |
160 <dc:elements> | 160 </dc:statement> |
161 <column> | 161 <dc:elements> |
162 <dc:attribute name="name" value="${wl_column_name}"/> | 162 <column> |
163 <dc:attribute name="db-id" value="${wl_column_id}"/></column> | 163 <dc:attribute name="name" value="${wl_column_name}"/> |
164 </dc:elements> | 164 <dc:attribute name="db-id" value="${wl_column_id}"/></column> |
165 </dc:context> | 165 </dc:elements> |
166 </columns> | 166 </dc:context> |
167 </water-level> | 167 </columns> |
168 </dc:elements> | 168 </water-level> |
169 </dc:context> | 169 </dc:elements> |
170 </water-levels> | 170 </dc:context> |
171 <extra-longitudinal-sections> | 171 </water-levels> |
172 <dc:attribute name="id" value="extra-longitudinal-sections-${river_id}"/> | 172 <extra-longitudinal-sections> |
173 <dc:context> | 173 <dc:attribute name="id" value="extra-longitudinal-sections-${river_id}"/> |
174 <dc:statement> | 174 <dc:context> |
175 SELECT id AS els_id, | 175 <dc:statement> |
176 description AS els_description | 176 SELECT id AS els_id, |
177 FROM wsts WHERE kind = 1 AND river_id = ${river_id} | 177 description AS els_description |
178 </dc:statement> | 178 FROM wsts WHERE kind = 1 AND river_id = ${river_id} |
179 <dc:elements> | 179 </dc:statement> |
180 <extra-longitudinal-section> | 180 <dc:elements> |
181 <dc:attribute name="name" value="${els_description}"/> | 181 <extra-longitudinal-section> |
182 <dc:attribute name="db-id" value="${els_id}"/> | 182 <dc:attribute name="name" value="${els_description}"/> |
183 <columns> | 183 <dc:attribute name="db-id" value="${els_id}"/> |
184 <dc:context> | 184 <columns> |
185 <dc:statement> | 185 <dc:context> |
186 SELECT id AS els_column_id, | 186 <dc:statement> |
187 name AS els_column_name | 187 SELECT id AS els_column_id, |
188 FROM wst_columns WHERE wst_id = ${els_id} | 188 name AS els_column_name |
189 ORDER by position | 189 FROM wst_columns WHERE wst_id = ${els_id} |
190 </dc:statement> | 190 ORDER by position |
191 <dc:elements> | 191 </dc:statement> |
192 <column> | 192 <dc:elements> |
193 <dc:attribute name="name" value="${els_column_name}"/> | 193 <column> |
194 <dc:attribute name="db-id" value="${els_column_id}"/></column> | 194 <dc:attribute name="name" value="${els_column_name}"/> |
195 </dc:elements> | 195 <dc:attribute name="db-id" value="${els_column_id}"/></column> |
196 </dc:context> | 196 </dc:elements> |
197 </columns> | 197 </dc:context> |
198 </extra-longitudinal-section> | 198 </columns> |
199 </dc:elements> | 199 </extra-longitudinal-section> |
200 </dc:context> | 200 </dc:elements> |
201 </extra-longitudinal-sections> | 201 </dc:context> |
202 </discharge-table-nn> | 202 </extra-longitudinal-sections> |
203 <longitudinal-section> | 203 </discharge-table-nn> |
204 <fixations><dc:attribute name="ref" value="fixations-${river_id}"/></fixations> | 204 </dc:if> |
205 <flood-protections><dc:attribute name="ref" value="flood-protections-${river_id}"/></flood-protections> | 205 <dc:if test="dc:contains($artifact-outs, 'longitudinal_section')"> |
206 <flood-water-marks><dc:attribute name="ref" value="flood-water-marks-${river_id}"/></flood-water-marks> | 206 <longitudinal-section> |
207 <water-levels><dc:attribute name="ref" value="water-levels-${river_id}"/></water-levels> | 207 <fixations><dc:attribute name="ref" value="fixations-${river_id}"/></fixations> |
208 <extra-longitudinal-sections><dc:attribute name="ref" value="extra-longitudinal-sections-${river_id}"/></extra-longitudinal-sections> | 208 <flood-protections><dc:attribute name="ref" value="flood-protections-${river_id}"/></flood-protections> |
209 </longitudinal-section> | 209 <flood-water-marks><dc:attribute name="ref" value="flood-water-marks-${river_id}"/></flood-water-marks> |
210 <water-levels><dc:attribute name="ref" value="water-levels-${river_id}"/></water-levels> | |
211 <extra-longitudinal-sections><dc:attribute name="ref" value="extra-longitudinal-sections-${river_id}"/></extra-longitudinal-sections> | |
212 </longitudinal-section> | |
213 </dc:if> | |
214 <dc:if test="dc:contains($artifact-outs, 'floodmap')"> | |
215 <floodmap> | |
216 <dc:choose> | |
217 <dc:when test="$recommended"> | |
218 <dc:call-macro name="flood-map-recommended"/> | |
219 </dc:when> | |
220 <dc:otherwise> | |
221 <dc:call-macro name="flood-map-complete"/> | |
222 </dc:otherwise> | |
223 </dc:choose> | |
224 </floodmap> | |
225 <dc:macro name="flood-map-recommended"> | |
226 <kilometrage> | |
227 <riveraxis> | |
228 <dc:attribute name="factory" value="riveraxis"/> | |
229 </riveraxis> | |
230 </kilometrage> | |
231 <rastermap> | |
232 <background> | |
233 <dc:attribute name="factory" value="wmsbackground"/> | |
234 </background> | |
235 </rastermap> | |
236 </dc:macro> | |
237 <dc:macro name="flood-map-complete"> | |
238 <kilometrage> | |
239 <riveraxis> | |
240 <dc:attribute name="factory" value="riveraxis"/> | |
241 </riveraxis> | |
242 </kilometrage> | |
243 <rastermap> | |
244 <background> | |
245 <dc:attribute name="factory" value="wmsbackground"/> | |
246 </background> | |
247 </rastermap> | |
248 </dc:macro> | |
249 </dc:if> | |
210 </river> | 250 </river> |
211 </dc:elements> | 251 </dc:elements> |
212 </dc:context> | 252 </dc:context> |
213 </datacage> | 253 </datacage> |
214 </dc:template> | 254 </dc:template> |