Mercurial > dive4elements > river
comparison flys-artifacts/doc/conf/meta-data.xml @ 1872:2e810c50e685
Refactored datacage conf to (re)use macros.
flys-artifacts/trunk@3226 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Thu, 10 Nov 2011 14:06:49 +0000 |
parents | 257f7b54a943 |
children | 841af55d5e53 |
comparison
equal
deleted
inserted
replaced
1871:257f7b54a943 | 1872:2e810c50e685 |
---|---|
76 </dc:elements> | 76 </dc:elements> |
77 </dc:context> | 77 </dc:context> |
78 </addtionals> | 78 </addtionals> |
79 </dc:macro> | 79 </dc:macro> |
80 | 80 |
81 <dc:macro name="basedata_2_fixations"> | |
82 <fixations> | |
83 <dc:context> | |
84 <dc:statement> | |
85 SELECT id AS prot_id, | |
86 description AS prot_description | |
87 FROM wsts WHERE kind = 2 AND river_id = ${river_id} | |
88 </dc:statement> | |
89 <dc:elements> | |
90 <fixation> | |
91 <dc:attribute name="name" value="${prot_description}"/> | |
92 <dc:context> | |
93 <dc:statement> | |
94 SELECT id AS prot_column_id, | |
95 name AS prot_column_name, | |
96 position AS prot_rel_pos | |
97 FROM wst_columns WHERE wst_id = ${prot_id} | |
98 ORDER by position | |
99 </dc:statement> | |
100 <dc:elements> | |
101 <column> | |
102 <dc:attribute name="name" value="${prot_column_name}"/> | |
103 <dc:attribute name="ids" value="fixations-wstv-${prot_rel_pos}-${prot_id}"/> | |
104 <dc:attribute name="factory" value="staticwkms"/> | |
105 </column> | |
106 </dc:elements> | |
107 </dc:context> | |
108 </fixation> | |
109 </dc:elements> | |
110 </dc:context> | |
111 </fixations> | |
112 </dc:macro> | |
113 | |
114 | |
81 <dc:macro name="basedata_4_heightmarks-points"> | 115 <dc:macro name="basedata_4_heightmarks-points"> |
82 <heightmarks> | 116 <heightmarks> |
83 <dc:context> | 117 <dc:context> |
84 <dc:statement> | 118 <dc:statement> |
85 SELECT id AS prot_id, | 119 SELECT id AS prot_id, |
165 <dc:call-macro name="basedata_4_heightmarks-points"/> | 199 <dc:call-macro name="basedata_4_heightmarks-points"/> |
166 </dc:if> | 200 </dc:if> |
167 <dc:comment comment="--- non-recommendations---"/> | 201 <dc:comment comment="--- non-recommendations---"/> |
168 </dc:otherwise> | 202 </dc:otherwise> |
169 </dc:choose> | 203 </dc:choose> |
170 <dc:if test="dc:contains($artifact-outs, 'longitudinal_section') or (dc:contains($artifact-outs, 'w_differences'))"> | 204 |
171 <dc:choose> | |
172 <dc:when test="dc:contains($parameters, 'recommended')"> | |
173 </dc:when> | |
174 <dc:otherwise> | |
175 <dc:call-macro name="basedata_0"/> | |
176 <dc:call-macro name="basedata_1_additionals"/> | |
177 <dc:comment comment=" FIXATIONS ---------------------------"/> | |
178 <fixations> | |
179 <dc:context> | |
180 <dc:statement> | |
181 SELECT id AS prot_id, | |
182 description AS prot_description | |
183 FROM wsts WHERE kind = 2 AND river_id = ${river_id} | |
184 </dc:statement> | |
185 <dc:elements> | |
186 <fixation> | |
187 <dc:attribute name="name" value="${prot_description}"/> | |
188 <dc:context> | |
189 <dc:statement> | |
190 SELECT id AS prot_column_id, | |
191 name AS prot_column_name, | |
192 position AS prot_rel_pos | |
193 FROM wst_columns WHERE wst_id = ${prot_id} | |
194 ORDER by position | |
195 </dc:statement> | |
196 <dc:elements> | |
197 <column> | |
198 <dc:attribute name="name" value="${prot_column_name}"/> | |
199 <dc:attribute name="ids" value="fixations-wstv-${prot_rel_pos}-${prot_id}"/> | |
200 <dc:attribute name="factory" value="staticwkms"/> | |
201 </column> | |
202 </dc:elements> | |
203 </dc:context> | |
204 </fixation> | |
205 </dc:elements> | |
206 </dc:context> | |
207 </fixations> | |
208 <dc:comment comment=" HOEHENMARKEN ---------------------------"/> | |
209 <heightmarks> | |
210 <dc:context> | |
211 <dc:statement> | |
212 SELECT id AS prot_id, | |
213 description AS prot_description | |
214 FROM wsts WHERE kind = 4 AND river_id = ${river_id} | |
215 </dc:statement> | |
216 <dc:elements> | |
217 <heightmark> | |
218 <dc:attribute name="name" value="${prot_description}"/> | |
219 <dc:context> | |
220 <dc:statement> | |
221 SELECT id AS prot_column_id, | |
222 name AS prot_column_name, | |
223 position AS prot_rel_pos | |
224 FROM wst_columns WHERE wst_id = ${prot_id} | |
225 ORDER by position | |
226 </dc:statement> | |
227 <dc:elements> | |
228 <column> | |
229 <dc:attribute name="name" value="${prot_column_name}"/> | |
230 <dc:attribute name="ids" value="heightmarks_points-wstv-${prot_rel_pos}-${prot_id}"/> | |
231 <dc:attribute name="factory" value="staticwkms"/> | |
232 </column> | |
233 </dc:elements> | |
234 </dc:context> | |
235 </heightmark> | |
236 </dc:elements> | |
237 </dc:context> | |
238 </heightmarks> | |
239 </dc:otherwise> | |
240 </dc:choose> | |
241 </dc:if> | |
242 | 205 |
243 <dc:if test="dc:contains($artifact-outs, 'waterlevels')"> | 206 <dc:if test="dc:contains($artifact-outs, 'waterlevels')"> |
244 <flood-protections> | 207 <flood-protections> |
245 <dc:attribute name="id" value="flood-protections-${river_id}"/> | 208 <dc:attribute name="id" value="flood-protections-${river_id}"/> |
246 <dc:context> | 209 <dc:context> |
409 </columns> | 372 </columns> |
410 </flood-protection> | 373 </flood-protection> |
411 </dc:elements> | 374 </dc:elements> |
412 </dc:context> | 375 </dc:context> |
413 </flood-protections> | 376 </flood-protections> |
414 <flood-water-marks> | 377 |
415 <dc:attribute name="id" value="flood-water-marks-${river_id}"/> | 378 <!-- ex. waterlevels --> |
416 <dc:context> | 379 <dc:call-macro name="basedata_0"/> |
417 <dc:statement> | 380 |
418 SELECT id AS fw_id, | 381 <dc:call-macro name="basedata_1_additionals"/> |
419 description AS fw_description | 382 |
420 FROM wsts WHERE kind = 4 AND river_id = ${river_id} | 383 <!-- ex. flood-water-marks --> |
421 </dc:statement> | 384 <dc:call-macro name="basedata_4_heightmarks-points"/> |
422 <dc:elements> | 385 |
423 <flood-water-mark> | |
424 <dc:attribute name="name" value="${fw_description}"/> | |
425 <dc:attribute name="db-id" value="${fw_id}"/> | |
426 <columns> | |
427 <dc:context> | |
428 <dc:statement> | |
429 SELECT id AS fw_column_id, | |
430 name AS fw_column_name | |
431 FROM wst_columns WHERE wst_id = ${fw_id} | |
432 ORDER by position | |
433 </dc:statement> | |
434 <dc:elements> | |
435 <column> | |
436 <dc:attribute name="name" value="${fw_column_name}"/> | |
437 <dc:attribute name="db-id" value="${fw_column_id}"/></column> | |
438 </dc:elements> | |
439 </dc:context> | |
440 </columns> | |
441 </flood-water-mark> | |
442 </dc:elements> | |
443 </dc:context> | |
444 </flood-water-marks> | |
445 <water-levels> | |
446 <dc:attribute name="id" value="water-levels-${river_id}"/> | |
447 <dc:context> | |
448 <dc:statement> | |
449 SELECT id AS wl_id, | |
450 description AS wl_description | |
451 FROM wsts WHERE kind = 0 AND river_id = ${river_id} | |
452 </dc:statement> | |
453 <dc:elements> | |
454 <water-level> | |
455 <dc:attribute name="name" value="${wl_description}"/> | |
456 <dc:attribute name="db-id" value="${wl_id}"/> | |
457 <columns> | |
458 <dc:context> | |
459 <dc:statement> | |
460 SELECT id AS wl_column_id, | |
461 name AS wl_column_name | |
462 FROM wst_columns WHERE wst_id = ${wl_id} | |
463 ORDER by position | |
464 </dc:statement> | |
465 <dc:elements> | |
466 <column> | |
467 <dc:attribute name="name" value="${wl_column_name}"/> | |
468 <dc:attribute name="db-id" value="${wl_column_id}"/> | |
469 </column> | |
470 </dc:elements> | |
471 </dc:context> | |
472 </columns> | |
473 </water-level> | |
474 </dc:elements> | |
475 </dc:context> | |
476 </water-levels> | |
477 <extra-longitudinal-sections> | |
478 <dc:attribute name="id" value="extra-longitudinal-sections-${river_id}"/> | |
479 <dc:context> | |
480 <dc:statement> | |
481 SELECT id AS els_id, | |
482 description AS els_description | |
483 FROM wsts WHERE kind = 1 AND river_id = ${river_id} | |
484 </dc:statement> | |
485 <dc:elements> | |
486 <extra-longitudinal-section> | |
487 <dc:attribute name="name" value="${els_description}"/> | |
488 <dc:attribute name="db-id" value="${els_id}"/> | |
489 <columns> | |
490 <dc:context> | |
491 <dc:statement> | |
492 SELECT id AS els_column_id, | |
493 name AS els_column_name | |
494 FROM wst_columns WHERE wst_id = ${els_id} | |
495 ORDER by position | |
496 </dc:statement> | |
497 <dc:elements> | |
498 <column> | |
499 <dc:attribute name="name" value="${els_column_name}"/> | |
500 <dc:attribute name="db-id" value="${els_column_id}"/> | |
501 </column> | |
502 </dc:elements> | |
503 </dc:context> | |
504 </columns> | |
505 </extra-longitudinal-section> | |
506 </dc:elements> | |
507 </dc:context> | |
508 </extra-longitudinal-sections> | |
509 </discharge-table-nn> | 386 </discharge-table-nn> |
510 </dc:if> | 387 </dc:if> |
511 <dc:if test="dc:contains($artifact-outs, 'computed_discharge_curve')"> | 388 <dc:if test="dc:contains($artifact-outs, 'computed_discharge_curve')"> |
512 <computed-discharge-curve> | 389 <computed-discharge-curve> |
513 <dc:call-macro name="mainvalues"/> | 390 <dc:call-macro name="mainvalues"/> |
514 </computed-discharge-curve> | 391 </computed-discharge-curve> |
515 </dc:if> | 392 </dc:if> |
516 <dc:if test="dc:contains($artifact-outs, 'duration_curve')"> | 393 <dc:if test="dc:contains($artifact-outs, 'duration_curve')"> |
517 <dc:call-macro name="mainvalues"/> | 394 <dc:call-macro name="mainvalues"/> |
518 </dc:if> | 395 </dc:if> |
396 | |
519 <dc:if test="dc:contains($artifact-outs, 'longitudinal_section')"> | 397 <dc:if test="dc:contains($artifact-outs, 'longitudinal_section')"> |
520 <longitudinal-section> | 398 <longitudinal-section> |
521 <dc:call-macro name="annotations"/> | 399 <dc:call-macro name="annotations"/> |
522 </longitudinal-section> | 400 </longitudinal-section> |
523 </dc:if> | 401 </dc:if> |