comparison artifacts/doc/conf/meta-data.xml @ 5976:178a873df7a9

Add OUT parameter to each ids parameter The Datacage should now be constructed in the form that a choice is done based on the current out. All outs are iterated and the recommendations / non recommendations added accordingly. There is another iteration in the old calculations part. Important: Please do not add any elements with a factory outside of an iterate loop!
author Andre Heinecke <aheinecke@intevation.de>
date Fri, 10 May 2013 15:23:14 +0200
parents 11e74ca3229a
children ebd6e8e234e0
comparison
equal deleted inserted replaced
5975:95b9e40bbad0 5976:178a873df7a9
78 <basedata name="{$prot_description}"> 78 <basedata name="{$prot_description}">
79 <dc:context> 79 <dc:context>
80 <dc:call-macro name="SQL-wst_columns_statement"/> 80 <dc:call-macro name="SQL-wst_columns_statement"/>
81 <dc:for-each> 81 <dc:for-each>
82 <column name="{$prot_column_name}" 82 <column name="{$prot_column_name}"
83 ids="base_data-wstv-{$prot_rel_pos}-{$prot_id}" 83 ids="base_data-wstv-{$prot_rel_pos}-{$prot_id}:OUT={$OUT}"
84 factory="staticwqkms" 84 factory="staticwqkms"
85 info="{$info} [km {$deffrom} - {$defto}]"/> 85 info="{$info} [km {$deffrom} - {$defto}]"/>
86 </dc:for-each> 86 </dc:for-each>
87 </dc:context> 87 </dc:context>
88 </basedata> 88 </basedata>
106 <basedata name="{$prot_description}"> 106 <basedata name="{$prot_description}">
107 <dc:context> 107 <dc:context>
108 <dc:call-macro name="SQL-wst_columns_statement"/> 108 <dc:call-macro name="SQL-wst_columns_statement"/>
109 <dc:for-each> 109 <dc:for-each>
110 <column name="{$prot_column_name}" 110 <column name="{$prot_column_name}"
111 ids="base_data-wstv-{$prot_rel_pos}-{$prot_id}" 111 ids="base_data-wstv-{$prot_rel_pos}-{$prot_id}:OUT={$OUT}"
112 factory="wqinterpol" 112 factory="wqinterpol"
113 info="{$info} [km {$deffrom} - {$defto}]"/> 113 info="{$info} [km {$deffrom} - {$defto}]"/>
114 </dc:for-each> 114 </dc:for-each>
115 </dc:context> 115 </dc:context>
116 </basedata> 116 </basedata>
134 <additional name="{$prot_description}"> 134 <additional name="{$prot_description}">
135 <dc:context> 135 <dc:context>
136 <dc:call-macro name="SQL-wst_columns_statement"/> 136 <dc:call-macro name="SQL-wst_columns_statement"/>
137 <dc:for-each> 137 <dc:for-each>
138 <column name="{$prot_column_name}" 138 <column name="{$prot_column_name}"
139 ids="additionalsmarks-wstv-{$prot_rel_pos}-{$prot_id}" 139 ids="additionalsmarks-wstv-{$prot_rel_pos}-{$prot_id}:OUT={$OUT}"
140 factory="staticwkms" 140 factory="staticwkms"
141 info="{$info} [km {$deffrom} - {$defto}]"/> 141 info="{$info} [km {$deffrom} - {$defto}]"/>
142 </dc:for-each> 142 </dc:for-each>
143 </dc:context></additional> 143 </dc:context></additional>
144 </dc:for-each> 144 </dc:for-each>
161 <additional name="{dc:replace($prot_description, 'Zus.Längsschnitte/', '')}"> 161 <additional name="{dc:replace($prot_description, 'Zus.Längsschnitte/', '')}">
162 <dc:context> 162 <dc:context>
163 <dc:call-macro name="SQL-wst_columns_statement"/> 163 <dc:call-macro name="SQL-wst_columns_statement"/>
164 <dc:for-each> 164 <dc:for-each>
165 <column name="{$prot_column_name}" 165 <column name="{$prot_column_name}"
166 ids="additionals-wstv-{$prot_rel_pos}-{$prot_id}" 166 ids="additionals-wstv-{$prot_rel_pos}-{$prot_id}:OUT={$OUT}"
167 factory="staticwkms" 167 factory="staticwkms"
168 info="{$info} [km {$deffrom} - {$defto}]"/> 168 info="{$info} [km {$deffrom} - {$defto}]"/>
169 </dc:for-each> 169 </dc:for-each>
170 </dc:context> 170 </dc:context>
171 </additional> 171 </additional>
189 <relativepoint name="{$prot_description}"> 189 <relativepoint name="{$prot_description}">
190 <dc:context> 190 <dc:context>
191 <dc:call-macro name="SQL-wst_columns_statement"/> 191 <dc:call-macro name="SQL-wst_columns_statement"/>
192 <dc:for-each> 192 <dc:for-each>
193 <column name="{$prot_column_name}" 193 <column name="{$prot_column_name}"
194 ids="additionals-wstv-{$prot_rel_pos}-{$prot_id}" 194 ids="additionals-wstv-{$prot_rel_pos}-{$prot_id}:OUT={$OUT}"
195 factory="staticwkms" 195 factory="staticwkms"
196 info="{$info} [km {$deffrom} - {$defto}]"/> 196 info="{$info} [km {$deffrom} - {$defto}]"/>
197 </dc:for-each> 197 </dc:for-each>
198 </dc:context> 198 </dc:context>
199 </relativepoint> 199 </relativepoint>
217 <fixation name="{dc:replace($prot_description, 'Fixierungen/', '')}"> 217 <fixation name="{dc:replace($prot_description, 'Fixierungen/', '')}">
218 <dc:context> 218 <dc:context>
219 <dc:call-macro name="SQL-wst_columns_statement"/> 219 <dc:call-macro name="SQL-wst_columns_statement"/>
220 <dc:for-each> 220 <dc:for-each>
221 <column name="{$prot_column_name}" 221 <column name="{$prot_column_name}"
222 ids="fixations-wstv-{$prot_rel_pos}-{$prot_id}" 222 ids="fixations-wstv-{$prot_rel_pos}-{$prot_id}:OUT={$OUT}"
223 factory="wqinterpol" 223 factory="wqinterpol"
224 info="{$info} [km {$deffrom} - {$defto}]"/> 224 info="{$info} [km {$deffrom} - {$defto}]"/>
225 </dc:for-each> 225 </dc:for-each>
226 </dc:context> 226 </dc:context>
227 </fixation> 227 </fixation>
245 <fixation name="{dc:replace($prot_description, 'Fixierungen/', '')}"> 245 <fixation name="{dc:replace($prot_description, 'Fixierungen/', '')}">
246 <dc:context> 246 <dc:context>
247 <dc:call-macro name="SQL-wst_columns_statement"/> 247 <dc:call-macro name="SQL-wst_columns_statement"/>
248 <dc:for-each> 248 <dc:for-each>
249 <column name="{$prot_column_name}" 249 <column name="{$prot_column_name}"
250 ids="fixations-wstv-{$prot_rel_pos}-{$prot_id}" 250 ids="fixations-wstv-{$prot_rel_pos}-{$prot_id}:OUT={$OUT}"
251 factory="staticwqkms" 251 factory="staticwqkms"
252 info="{$info} [km {$deffrom} - {$defto}]"/> 252 info="{$info} [km {$deffrom} - {$defto}]"/>
253 </dc:for-each> 253 </dc:for-each>
254 </dc:context> 254 </dc:context>
255 </fixation> 255 </fixation>
273 <relativepoint name="{dc:replace($prot_description, 'Fixierungen/', '')}"> 273 <relativepoint name="{dc:replace($prot_description, 'Fixierungen/', '')}">
274 <dc:context> 274 <dc:context>
275 <dc:call-macro name="SQL-wst_columns_statement"/> 275 <dc:call-macro name="SQL-wst_columns_statement"/>
276 <dc:for-each> 276 <dc:for-each>
277 <column name="{$prot_column_name}" 277 <column name="{$prot_column_name}"
278 ids="fixations-wstv-{$prot_rel_pos}-{$prot_id}" 278 ids="fixations-wstv-{$prot_rel_pos}-{$prot_id}:OUT={$OUT}"
279 factory="staticwkms" 279 factory="staticwkms"
280 info="{$info} [km {$deffrom} - {$defto}]"/> 280 info="{$info} [km {$deffrom} - {$defto}]"/>
281 </dc:for-each> 281 </dc:for-each>
282 </dc:context> 282 </dc:context>
283 </relativepoint> 283 </relativepoint>
301 <official name="{$prot_description}"> 301 <official name="{$prot_description}">
302 <dc:context> 302 <dc:context>
303 <dc:call-macro name="SQL-wst_columns_statement"/> 303 <dc:call-macro name="SQL-wst_columns_statement"/>
304 <dc:for-each> 304 <dc:for-each>
305 <column name="{$prot_column_name}" 305 <column name="{$prot_column_name}"
306 ids="additionals-wstv-{$prot_rel_pos}-{$prot_id}" 306 ids="additionals-wstv-{$prot_rel_pos}-{$prot_id}:OUT={$OUT}"
307 factory="staticwqkms" 307 factory="staticwqkms"
308 info="{$info} [km {$deffrom} - {$defto}]"/> 308 info="{$info} [km {$deffrom} - {$defto}]"/>
309 </dc:for-each> 309 </dc:for-each>
310 </dc:context> 310 </dc:context>
311 </official> 311 </official>
328 <relativepoint name="{$prot_description}"> 328 <relativepoint name="{$prot_description}">
329 <dc:context> 329 <dc:context>
330 <dc:call-macro name="SQL-wst_columns_statement"/> 330 <dc:call-macro name="SQL-wst_columns_statement"/>
331 <dc:for-each> 331 <dc:for-each>
332 <column name="{$prot_column_name}" 332 <column name="{$prot_column_name}"
333 ids="heightmarks_points-wstv-{$prot_rel_pos}-{$prot_id}" 333 ids="heightmarks_points-wstv-{$prot_rel_pos}-{$prot_id}:OUT={$OUT}"
334 factory="staticwkms" 334 factory="staticwkms"
335 info="{$info} [km {$deffrom} - {$defto}]"/> 335 info="{$info} [km {$deffrom} - {$defto}]"/>
336 </dc:for-each> 336 </dc:for-each>
337 </dc:context> 337 </dc:context>
338 </relativepoint> 338 </relativepoint>
355 <heightmark name="{dc:replace($prot_description, 'HW-Marken/', '')}"> 355 <heightmark name="{dc:replace($prot_description, 'HW-Marken/', '')}">
356 <dc:context> 356 <dc:context>
357 <dc:call-macro name="SQL-wst_columns_statement"/> 357 <dc:call-macro name="SQL-wst_columns_statement"/>
358 <dc:for-each> 358 <dc:for-each>
359 <column name="{$prot_column_name}" 359 <column name="{$prot_column_name}"
360 ids="heightmarks_points-wstv-{$prot_rel_pos}-{$prot_id}" 360 ids="heightmarks_points-wstv-{$prot_rel_pos}-{$prot_id}:OUT={$OUT}"
361 factory="staticwkms" 361 factory="staticwkms"
362 info="{$info} [km {$deffrom} - {$defto}]"/> 362 info="{$info} [km {$deffrom} - {$defto}]"/>
363 </dc:for-each> 363 </dc:for-each>
364 </dc:context> 364 </dc:context>
365 </heightmark> 365 </heightmark>
382 <heightmark name="{$prot_description}"> 382 <heightmark name="{$prot_description}">
383 <dc:context> 383 <dc:context>
384 <dc:call-macro name="SQL-wst_columns_statement"/> 384 <dc:call-macro name="SQL-wst_columns_statement"/>
385 <dc:for-each> 385 <dc:for-each>
386 <column name="{$prot_column_name}" 386 <column name="{$prot_column_name}"
387 ids="heightmarks_annotations-wstv-{$prot_rel_pos}-{$prot_id}" 387 ids="heightmarks_annotations-wstv-{$prot_rel_pos}-{$prot_id}:OUT={$OUT}"
388 factory="wqinterpol" 388 factory="wqinterpol"
389 info="{$info} [km {$deffrom} - {$defto}]"/> 389 info="{$info} [km {$deffrom} - {$defto}]"/>
390 </dc:for-each> 390 </dc:for-each>
391 </dc:context> 391 </dc:context>
392 </heightmark> 392 </heightmark>
412 <columns> 412 <columns>
413 <dc:context> 413 <dc:context>
414 <dc:call-macro name="SQL-wst_columns_statement"/> 414 <dc:call-macro name="SQL-wst_columns_statement"/>
415 <dc:for-each> 415 <dc:for-each>
416 <column name="{$prot_column_name}" 416 <column name="{$prot_column_name}"
417 ids="flood_protection-wstv-{$prot_rel_pos}-{$prot_id}" 417 ids="flood_protection-wstv-{$prot_rel_pos}-{$prot_id}:OUT={$OUT}"
418 factory="staticwkms" 418 factory="staticwkms"
419 info="{$info} [km {$deffrom} - {$defto}]"/> 419 info="{$info} [km {$deffrom} - {$defto}]"/>
420 </dc:for-each> 420 </dc:for-each>
421 </dc:context> 421 </dc:context>
422 </columns> 422 </columns>
441 factory="staticwkms"> 441 factory="staticwkms">
442 <dc:context> 442 <dc:context>
443 <dc:call-macro name="SQL-wst_columns_statement"/> 443 <dc:call-macro name="SQL-wst_columns_statement"/>
444 <dc:for-each> 444 <dc:for-each>
445 <column name="{$prot_column_name}" 445 <column name="{$prot_column_name}"
446 ids="flood_protection-wstv-{$prot_rel_pos}-{$prot_id}" 446 ids="flood_protection-wstv-{$prot_rel_pos}-{$prot_id}:OUT={$OUT}"
447 factory="staticwkms" 447 factory="staticwkms"
448 info="{$info} [km {$deffrom} - {$defto}]"/> 448 info="{$info} [km {$deffrom} - {$defto}]"/>
449 </dc:for-each> 449 </dc:for-each>
450 </dc:context> 450 </dc:context>
451 </flood_protection> 451 </flood_protection>
454 </flood_protections> 454 </flood_protections>
455 </dc:call-macro> 455 </dc:call-macro>
456 </dc:macro> 456 </dc:macro>
457 457
458 <dc:macro name="mainvalues"> 458 <dc:macro name="mainvalues">
459 <mainvalue factory="mainvalue" ids="{$river_id}"/> 459 <mainvalue factory="mainvalue" ids="{$river_id}:OUT={$OUT}"/>
460 <wmainvalue factory="mainvalue" ids="{$river_id}:w"/> 460 <wmainvalue factory="mainvalue" ids="{$river_id}:w:OUT={$OUT}"/>
461 <qmainvalue factory="mainvalue" ids="{$river_id}:q"/> 461 <qmainvalue factory="mainvalue" ids="{$river_id}:q:OUT={$OUT}"/>
462 </dc:macro> 462 </dc:macro>
463 463
464 <dc:macro name="qsectors"> 464 <dc:macro name="qsectors">
465 <qsector factory="qsectors" ids="{$river_id}"/> 465 <qsector factory="qsectors" ids="{$river_id}:OUT={$OUT}"/>
466 </dc:macro> 466 </dc:macro>
467 467
468 <dc:macro name="annotations"> 468 <dc:macro name="annotations">
469 <annotation factory="annotations" ids="{$river_id}"/> 469 <annotation factory="annotations" ids="{$river_id}:OUT={$OUT}"/>
470 </dc:macro> 470 </dc:macro>
471 471
472 <dc:macro name="annotations_per_type"> 472 <dc:macro name="annotations_per_type">
473 <annotations> 473 <annotations>
474 <dc:context> 474 <dc:context>
475 <all_annotations factory="annotations" ids="{$river_id}"/> 475 <all_annotations factory="annotations" ids="{$river_id}:OUT={$OUT}"/>
476 <dc:statement> 476 <dc:statement>
477 SELECT id AS anno_id, 477 SELECT id AS anno_id,
478 name AS anno_description 478 name AS anno_description
479 FROM annotation_types 479 FROM annotation_types
480 </dc:statement> 480 </dc:statement>
481 <dc:for-each> 481 <dc:for-each>
482 <annotation name="{$anno_description}" 482 <annotation name="{$anno_description}"
483 factory="annotations" 483 factory="annotations"
484 ids="{$river_id}:{$anno_description}"/> 484 ids="{$river_id}:{$anno_description}:OUT={$OUT}"/>
485 </dc:for-each> 485 </dc:for-each>
486 </dc:context> 486 </dc:context>
487 </annotations> 487 </annotations>
488 </dc:macro> 488 </dc:macro>
489 489
500 WHERE cs.river_id = ${river_id} 500 WHERE cs.river_id = ${river_id}
501 AND csl.km BETWEEN ${fromkm} AND ${tokm} 501 AND csl.km BETWEEN ${fromkm} AND ${tokm}
502 </dc:statement> 502 </dc:statement>
503 <dc:for-each> 503 <dc:for-each>
504 <cross_section name="{$prot_description}" 504 <cross_section name="{$prot_description}"
505 ids="{$prot_id}" 505 ids="{$prot_id}:OUT={$OUT}"
506 factory="crosssections"/> 506 factory="crosssections"/>
507 </dc:for-each> 507 </dc:for-each>
508 </dc:context> 508 </dc:context>
509 </cross_sections> 509 </cross_sections>
510 </dc:call-macro> 510 </dc:call-macro>
522 JOIN hyk_entries he ON he.hyk_id = h.id 522 JOIN hyk_entries he ON he.hyk_id = h.id
523 WHERE river_id = ${river_id} 523 WHERE river_id = ${river_id}
524 AND he.km BETWEEN ${fromkm} AND ${tokm} 524 AND he.km BETWEEN ${fromkm} AND ${tokm}
525 </dc:statement> 525 </dc:statement>
526 <dc:for-each> 526 <dc:for-each>
527 <hyk name="{$hyk_description}" ids="{$hyk_id}" factory="hyk"/> 527 <hyk name="{$hyk_description}"
528 ids="{$hyk_id}:OUT={$OUT}"
529 factory="hyk"/>
528 </dc:for-each> 530 </dc:for-each>
529 </dc:context></hyks> 531 </dc:context></hyks>
530 </dc:call-macro> 532 </dc:call-macro>
531 </dc:macro> 533 </dc:macro>
532 534
539 description AS fvmd 541 description AS fvmd
540 FROM flow_velocity_measurements WHERE river_id = ${river_id} 542 FROM flow_velocity_measurements WHERE river_id = ${river_id}
541 </dc:statement> 543 </dc:statement>
542 <dc:for-each> 544 <dc:for-each>
543 <flow_velocity_measurement name="{$fvmd}" 545 <flow_velocity_measurement name="{$fvmd}"
544 ids="{$fvmid}" 546 ids="{$fvmid}:OUT={$OUT}"
545 factory="flowvelocity"> 547 factory="flowvelocity">
546 <dc:context> 548 <dc:context>
547 <dc:statement> 549 <dc:statement>
548 SELECT id, description, station, datetime, v, w, q 550 SELECT id, description, station, datetime, v, w, q
549 FROM flow_velocity_measure_values 551 FROM flow_velocity_measure_values
550 WHERE measurements_id = ${fvmid} 552 WHERE measurements_id = ${fvmid}
551 AND station BETWEEN ${fromkm} AND ${tokm} 553 AND station BETWEEN ${fromkm} AND ${tokm}
552 </dc:statement> 554 </dc:statement>
553 <dc:for-each> 555 <dc:for-each>
554 <measurement_value name="{$description} - {$station} - {$datetime}" 556 <measurement_value name="{$description} - {$station} - {$datetime}"
555 ids="{$id}" 557 ids="{$id}:OUT={$OUT}"
556 factory="flowvelocity"/> 558 factory="flowvelocity"/>
557 </dc:for-each> 559 </dc:for-each>
558 </dc:context> 560 </dc:context>
559 </flow_velocity_measurement> 561 </flow_velocity_measurement>
560 </dc:for-each> 562 </dc:for-each>
572 description AS bedh_descr 574 description AS bedh_descr
573 FROM bed_height_single WHERE river_id = ${river_id} 575 FROM bed_height_single WHERE river_id = ${river_id}
574 </dc:statement> 576 </dc:statement>
575 <dc:for-each> 577 <dc:for-each>
576 <height factory="bedheight" 578 <height factory="bedheight"
577 ids="bedheight-singlevalues-{$bedh_id}-{$bedh_year}" 579 ids="bedheight-singlevalues-{$bedh_id}-{$bedh_year}:OUT={$OUT}"
578 description="{$bedh_descr}"/> 580 description="{$bedh_descr}"/>
579 </dc:for-each> 581 </dc:for-each>
580 </dc:context> 582 </dc:context>
581 </soundings_width> 583 </soundings_width>
582 </dc:macro> 584 </dc:macro>
597 FROM morphologic_width_values 599 FROM morphologic_width_values
598 WHERE morphologic_width_id = ${width_id} 600 WHERE morphologic_width_id = ${width_id}
599 </dc:statement> 601 </dc:statement>
600 <dc:for-each> 602 <dc:for-each>
601 <morphologic-width name="{$from} - {$to}" 603 <morphologic-width name="{$from} - {$to}"
602 ids="{$width_id}" 604 ids="{$width_id}:OUT={$OUT}"
603 factory="morph-width"/> 605 factory="morph-width"/>
604 </dc:for-each> 606 </dc:for-each>
605 </dc:context> 607 </dc:context>
606 </dc:for-each> 608 </dc:for-each>
607 </dc:context> 609 </dc:context>
619 <dc:call-macro name="basedata_3_officials"/> 621 <dc:call-macro name="basedata_3_officials"/>
620 <dc:call-macro name="basedata_5_flood-protections"/> 622 <dc:call-macro name="basedata_5_flood-protections"/>
621 <dc:call-macro name="annotations_per_type"/> 623 <dc:call-macro name="annotations_per_type"/>
622 </dc:macro> 624 </dc:macro>
623 625
624 <dc:comment> 626 <dc:macro name="discharge_table_gauge">
625 + River-Node
626 </dc:comment>
627 <dc:attribute name="name" value="${river_name}"/>
628
629 <dc:choose>
630 <dc:when test="dc:contains($parameters, 'recommended')">
631 <dc:comment>
632 Recommendations (client shall load immediately).
633 </dc:comment>
634 <dc:if test="dc:contains($artifact-outs, 'w_differences') or (dc:contains($artifact-outs, 'discharge_longitudinal_section'))">
635 <dc:call-macro name="annotations"/>
636 </dc:if>
637 <dc:if test="dc:contains($artifact-outs, 'historical_discharge_wq')">
638 <dc:call-macro name="mainvalues"/>
639 </dc:if>
640 <dc:if test="dc:contains($artifact-outs, 'cross_section')">
641 <dc:call-macro name="cross_sections"/>
642 <dc:call-macro name="hyks"/>
643 </dc:if>
644 <dc:if test="dc:contains($artifact-outs, 'computed_discharge_curve')">
645 <dc:call-macro name="mainvalues"/>
646 <dc:call-macro name="basedata_2_fixations_wqkms"/>
647 </dc:if>
648 <dc:if test="dc:contains($artifact-outs, 'duration_curve')">
649 <dc:call-macro name="mainvalues"/>
650 </dc:if>
651 <dc:if test="dc:contains($artifact-outs, 'reference_curve')">
652 <dc:call-macro name="annotations"/>
653 <dc:call-macro name="mainvalues"/>
654 </dc:if>
655 <dc:if test="dc:contains($artifact-outs, 'fix_wq_curve')">
656 <dc:call-macro name="qsectors"/>
657 </dc:if>
658 <dc:if test="dc:contains($artifact-outs, 'longitudinal_section')">
659 <dc:call-macro name="annotations"/>
660 </dc:if>
661 <dc:if test="dc:contains($artifact-outs, 'fix_longitudinal_section_curve')">
662 <dc:call-macro name="annotations"/>
663 </dc:if>
664 <dc:if test="dc:contains($artifact-outs, 'bed_difference_epoch')">
665 <dc:call-macro name="annotations"/>
666 </dc:if>
667 <dc:if test="dc:contains($artifact-outs, 'bed_difference_year')">
668 <dc:call-macro name="annotations"/>
669 </dc:if>
670 <dc:if test="dc:contains($artifact-outs, 'bed_difference_height_year')">
671 <dc:call-macro name="annotations"/>
672 </dc:if>
673 </dc:when>
674 <dc:otherwise>
675 <dc:comment>
676 Non - Recommendations.
677 </dc:comment>
678 <dc:if test="dc:contains($artifact-outs, 'cross_section')">
679 <dc:call-macro name="basedata_0"/>
680 <dc:call-macro name="basedata_1_additionals"/>
681 <dc:call-macro name="basedata_2_fixations"/>
682 <dc:call-macro name="basedata_3_officials"/>
683 <dc:call-macro name="basedata_4_heightmarks-points"/>
684 <dc:call-macro name="cross_sections"/>
685 <dc:call-macro name="hyks"/>
686 </dc:if>
687 <!--dc:if test="dc:contains($artifact-outs, 'computed_discharge_curve')">
688 <dc:call-macro name="basedata_0_wq"/>
689 <dc:call-macro name="basedata_4_heightmarks-wq"/>
690 </dc:if-->
691 <dc:if test="dc:contains($artifact-outs, 'longitudinal_section') or (dc:contains($artifact-outs, 'w_differences')) or (dc:contains($artifact-outs, 'discharge_longitudinal_section'))">
692 <dc:call-macro name="longitudinal-section-prototype"/>
693 </dc:if>
694 <dc:if test="dc:contains($artifact-outs, 'duration_curve')">
695 <dc:call-macro name="mainvalues"/>
696 <dc:call-macro name="basedata_2_fixations_relative_point"/>
697 <dc:call-macro name="basedata_4_heightmarks-points-relative_points"/>
698 <dc:call-macro name="basedata_5_flood-protections_relative_points"/>
699 </dc:if>
700 <dc:if test="dc:contains($artifact-outs, 'reference_curve')">
701 <dc:call-macro name="annotations"/>
702 <!--dc:call-macro name="basedata_0"/-->
703 <dc:call-macro name="basedata_1_additionals-relative_point"/>
704 <dc:comment comment=" FIXATIONS ---------------------------"/>
705 <dc:call-macro name="basedata_2_fixations_relative_point"/>
706 <dc:comment comment=" HOEHENMARKEN ---------------------------"/>
707 <dc:call-macro name="basedata_4_heightmarks-points-relative_points"/>
708 <dc:call-macro name="basedata_5_flood-protections_relative_points"/>
709 </dc:if>
710 <dc:if test="dc:contains($artifact-outs, 'fix_wq_curve')">
711 <dc:call-macro name="basedata_0_wq"/>
712 <dc:call-macro name="basedata_1_additionals_marks"/>
713 <dc:call-macro name="basedata_2_fixations_wqkms"/>
714 <dc:call-macro name="basedata_3_officials"/>
715 <dc:call-macro name="basedata_4_heightmarks-points"/>
716 <dc:call-macro name="basedata_5_flood-protections_relative_points"/>
717 </dc:if>
718 <dc:if test="dc:contains($artifact-outs, 'fix_deltawt_curve')">
719 </dc:if>
720 <dc:if test="dc:contains($artifact-outs, 'fix_longitudinal_section_curve')">
721 <dc:call-macro name="annotations"/>
722 </dc:if>
723 <dc:if test="dc:contains($artifact-outs, 'map')">
724 <dc:call-macro name="flood-map-complete"/>
725 </dc:if>
726 <dc:if test="dc:contains($artifact-outs, 'flow_velocity')">
727 <dc:call-macro name="annotations_per_type"/>
728 <dc:call-macro name="flow_velocity_measurements"/>
729 </dc:if>
730 <dc:if test="dc:contains($artifact-outs, 'bed_longitudinal_section')">
731 <dc:call-macro name="annotations_per_type"/>
732 </dc:if>
733 <dc:if test="dc:contains($artifact-outs, 'sedimentload_ls')">
734 <dc:call-macro name="annotations_per_type"/>
735 <dc:call-macro name="morph_width"/>
736 </dc:if>
737 <dc:comment>
738 MINFO bedheight middle
739 </dc:comment>
740 <dc:if test="dc:contains($artifact-outs, 'bedheight_middle')">
741 <dc:call-macro name="sounding-width"/>
742 <dc:call-macro name="basedata_0"/>
743 <dc:call-macro name="basedata_1_additionals"/>
744 <dc:call-macro name="basedata_2_fixations"/>
745 <dc:call-macro name="basedata_3_officials"/>
746 <dc:call-macro name="annotations_per_type"/>
747 </dc:if>
748 <dc:if test="dc:contains($artifact-outs, 'bed_difference_year') or
749 dc:contains($artifact-outs, 'bed_difference_epoch')">
750 <dc:call-macro name="basedata_0"/>
751 <dc:call-macro name="basedata_1_additionals"/>
752 <dc:call-macro name="basedata_2_fixations"/>
753 <dc:call-macro name="basedata_3_officials"/>
754 <dc:call-macro name="annotations_per_type"/>
755 <dc:call-macro name="morph_width"/>
756 </dc:if>
757 <dc:comment comment="--- non-recommendations---"/>
758 </dc:otherwise>
759 </dc:choose>
760
761 <dc:if test="dc:contains($artifact-outs, 'waterlevels')">
762
763 <!-- base data -->
764 <dc:call-macro name="basedata_0"/>
765
766 <!-- extra-longitudinal-sections -->
767 <dc:call-macro name="basedata_1_additionals"/>
768
769 <!-- fixations -->
770 <dc:call-macro name="basedata_2_fixations"/>
771
772 <!-- flood water marks-->
773 <dc:call-macro name="basedata_4_heightmarks-points"/>
774
775 <!-- flood protection -->
776 <dc:call-macro name="basedata_5_flood-protections"/>
777
778 </dc:if>
779
780 <dc:if test="dc:contains($artifact-outs, 'computed_discharge_curve') and not (dc:contains($parameters, 'recommended'))">
781 <discharge_table_nn> 627 <discharge_table_nn>
782 <discharge_table_gauge> 628 <discharge_table_gauge>
783 <dc:context> 629 <dc:context>
784 <dc:statement> 630 <dc:statement>
785 SELECT id AS gauge_id, 631 SELECT id AS gauge_id,
786 name AS gauge_name 632 name AS gauge_name
787 FROM gauges WHERE river_id = ${river_id} 633 FROM gauges WHERE river_id = ${river_id}
788 </dc:statement> 634 </dc:statement>
789 <dc:for-each> 635 <dc:for-each>
790 <gauge name="{$gauge_name}" 636 <gauge name="{$gauge_name}"
791 db-id="{$gauge_id}" 637 db-id="{$gauge_id}"
792 factory="gaugedischarge" 638 factory="gaugedischarge"
793 from="{$g_start}" 639 from="{$g_start}"
794 to="{$g_stop}" 640 to="{$g_stop}"
795 ids="{$gauge_name}"/> 641 ids="{$gauge_name}:OUT={$OUT}"/>
642 </dc:for-each>
643 </dc:context>
644 </discharge_table_gauge>
645 </discharge_table_nn>
646 </dc:macro>
647
648 <dc:macro name="discharge_computed">
649 <discharge_table_nn>
650 <discharge_table_gauge>
651 <dc:context>
652 <dc:statement>
653 SELECT id AS gauge_id,
654 name AS gauge_name
655 FROM gauges WHERE river_id = ${river_id}
656 </dc:statement>
657 <dc:for-each>
658 <gauge name="{$gauge_name}"
659 db-id="{$gauge_id}"
660 factory="gaugedischarge"
661 from="{$g_start}"
662 to="{$g_stop}"
663 ids="{$gauge_name}:OUT={$OUT}"/>
796 <dc:comment> 664 <dc:comment>
797 <!-- 665 <!--
798 <gauge> 666 <gauge>
799 <dc:attribute name="name" value="${gauge_name}"/> 667 <dc:attribute name="name" value="${gauge_name}"/>
800 <dc:attribute name="db-id" value="${gauge_id}"/> 668 <dc:attribute name="db-id" value="${gauge_id}"/>
812 <historical> 680 <historical>
813 <dc:attribute name="name" value="${gauge_desc}"/> 681 <dc:attribute name="name" value="${gauge_desc}"/>
814 <dc:attribute name="factory" value="gaugedischarge"/> 682 <dc:attribute name="factory" value="gaugedischarge"/>
815 <dc:attribute name="from" value="${g_start}"/> 683 <dc:attribute name="from" value="${g_start}"/>
816 <dc:attribute name="to" value="${g_stop}"/> 684 <dc:attribute name="to" value="${g_stop}"/>
817 <dc:attribute name="ids" value="${discharge_id}-${g_start}-${g_stop}"/> 685 <dc:attribute name="ids" value="${discharge_id}-${g_start}-${g_stop}:OUT=${out}"/>
818 </historical> 686 </historical>
819 </dc:for-each> 687 </dc:for-each>
820 </dc:context> 688 </dc:context>
821 </gauge> 689 </gauge>
822 --> 690 -->
823 </dc:comment> 691 </dc:comment>
824 </dc:for-each> 692 </dc:for-each>
825 </dc:context> 693 </dc:context>
826 </discharge_table_gauge> 694 </discharge_table_gauge>
827 </discharge_table_nn> 695 </discharge_table_nn>
828 696 </dc:macro>
829 <dc:call-macro name="basedata_2_fixations_wqkms"/> 697
830 698 <dc:macro name="discharge_fix_wq">
831 <dc:call-macro name="basedata_5_flood-protections"/>
832
833 <!-- former waterlevels -->
834 <dc:call-macro name="basedata_0"/>
835
836 <dc:call-macro name="basedata_1_additionals"/>
837
838 <!-- former flood-water-marks -->
839 <dc:call-macro name="basedata_4_heightmarks-points"/>
840 <computed_discharge_curve>
841 <dc:call-macro name="mainvalues"/>
842 </computed_discharge_curve>
843 </dc:if>
844
845 <dc:if test="dc:contains($artifact-outs, 'fix_wq_curve') and not (dc:contains($parameters, 'recommended'))">
846 <discharge_table_nn> 699 <discharge_table_nn>
847 <discharge_table_gauge> 700 <discharge_table_gauge>
848 <dc:context> 701 <dc:context>
849 <dc:statement> 702 <dc:statement>
850 SELECT id AS gauge_id, 703 SELECT id AS gauge_id,
855 <gauge name="{$gauge_name}" 708 <gauge name="{$gauge_name}"
856 db-id="{$gauge_id}" 709 db-id="{$gauge_id}"
857 factory="gaugedischarge" 710 factory="gaugedischarge"
858 from="{$g_start}" 711 from="{$g_start}"
859 to="{$g_stop}" 712 to="{$g_stop}"
860 ids="{$gauge_name}"/> 713 ids="{$gauge_name}:OUT={$OUT}"/>
861 </dc:for-each> 714 </dc:for-each>
862 </dc:context> 715 </dc:context>
863 </discharge_table_gauge> 716 </discharge_table_gauge>
864 </discharge_table_nn> 717 </discharge_table_nn>
865 </dc:if> 718 </dc:macro>
719
720 <dc:choose>
721 <dc:when test="dc:contains($parameters, 'recommended')">
722 <dc:comment>
723 Recommendations (client shall load immediately).
724 </dc:comment>
725 <dc:iterate var="out" container="artifact-outs">
726 <dc:choose>
727 <dc:when test="$out = 'w_differences'">
728 <dc:call-macro name="annotations"/>
729 </dc:when>
730 <dc:when test="$out = 'discharge_longitudinal_section'">
731 <dc:call-macro name="annotations"/>
732 </dc:when>
733 <dc:when test="$out = 'historical_discharge_wq'">
734 <dc:call-macro name="mainvalues"/>
735 </dc:when>
736 <dc:when test="$out = 'cross_section'">
737 <dc:call-macro name="cross_sections"/>
738 <dc:call-macro name="hyks"/>
739 </dc:when>
740 <dc:when test="$out = 'computed_discharge_curve'">
741 <dc:call-macro name="mainvalues"/>
742 <dc:call-macro name="basedata_2_fixations_wqkms"/>
743 </dc:when>
744 <dc:when test="$out = 'duration_curve'">
745 <dc:call-macro name="mainvalues"/>
746 </dc:when>
747 <dc:when test="$out = 'reference_curve'">
748 <dc:call-macro name="annotations"/>
749 <dc:call-macro name="mainvalues"/>
750 </dc:when>
751 <dc:when test="$out = 'fix_wq_curve'">
752 <dc:call-macro name="qsectors"/>
753 </dc:when>
754 <dc:when test="$out = 'longitudinal_section'">
755 <dc:call-macro name="annotations"/>
756 </dc:when>
757 <dc:when test="$out = 'fix_longitudinal_section_curve'">
758 <dc:call-macro name="annotations"/>
759 </dc:when>
760 <dc:when test="$out = 'bed_difference_epoch'">
761 <dc:call-macro name="annotations"/>
762 </dc:when>
763 <dc:when test="$out = 'bed_difference_year'">
764 <dc:call-macro name="annotations"/>
765 </dc:when>
766 <dc:when test="$out = 'bed_difference_height_year'">
767 <dc:call-macro name="annotations"/>
768 </dc:when>
769 <dc:when test="$out = 'floodmap'">
770 <dc:call-macro name="flood-map-recommended"/>
771 </dc:when>
772 <dc:when test="$out = 'floodmap-hws'">
773 <dc:call-macro name="flood-map-recommended"/>
774 </dc:when>
775 <dc:when test="$out = 'minfo-heights'">
776 <dc:call-macro name="minfo-heights"/>
777 <dc:macro name="minfo-heights">
778 <bedheights>
779 <dc:call-macro name="bed-heights-single"/>
780 <dc:call-macro name="bed-heights-epoch"/>
781 </bedheights>
782 </dc:macro>
783 </dc:when>
784 <dc:when test="$out = 'minfo-heights-epoch'">
785 <bedheights>
786 <dc:call-macro name="bed-heights-epoch"/>
787 </bedheights>
788 </dc:when>
789 </dc:choose>
790 </dc:iterate>
791 </dc:when>
792 <dc:otherwise>
793 <dc:comment>
794 Non - Recommendations.
795 </dc:comment>
796 <dc:iterate var="out" container="artifact-outs">
797 <dc:choose>
798 <dc:when test="$out = 'cross_section'">
799 <dc:call-macro name="basedata_0"/>
800 <dc:call-macro name="basedata_1_additionals"/>
801 <dc:call-macro name="basedata_2_fixations"/>
802 <dc:call-macro name="basedata_3_officials"/>
803 <dc:call-macro name="basedata_4_heightmarks-points"/>
804 <dc:call-macro name="cross_sections"/>
805 <dc:call-macro name="hyks"/>
806 </dc:when>
807 <dc:when test="$out = 'longitudinal_section'">
808 <dc:call-macro name="longitudinal-section-prototype"/>
809 </dc:when>
810 <dc:when test="$out = 'w_differences'">
811 <dc:call-macro name="longitudinal-section-prototype"/>
812 </dc:when>
813 <dc:when test="$out = 'discharge_longitudinal_section'">
814 <dc:call-macro name="longitudinal-section-prototype"/>
815 </dc:when>
816 <dc:when test="$out = 'duration_curve'">
817 <dc:call-macro name="mainvalues"/>
818 <dc:call-macro name="basedata_2_fixations_relative_point"/>
819 <dc:call-macro name="basedata_4_heightmarks-points-relative_points"/>
820 <dc:call-macro name="basedata_5_flood-protections_relative_points"/>
821 </dc:when>
822 <dc:when test="$out = 'reference_curve'">
823 <dc:call-macro name="annotations"/>
824 <dc:call-macro name="basedata_1_additionals-relative_point"/>
825 <dc:comment comment=" FIXATIONS ---------------------------"/>
826 <dc:call-macro name="basedata_2_fixations_relative_point"/>
827 <dc:comment comment=" HOEHENMARKEN ---------------------------"/>
828 <dc:call-macro name="basedata_4_heightmarks-points-relative_points"/>
829 <dc:call-macro name="basedata_5_flood-protections_relative_points"/>
830 </dc:when>
831 <dc:when test="$out = 'fix_wq_curve'">
832 <dc:call-macro name="basedata_0_wq"/>
833 <dc:call-macro name="basedata_1_additionals_marks"/>
834 <dc:call-macro name="basedata_2_fixations_wqkms"/>
835 <dc:call-macro name="basedata_3_officials"/>
836 <dc:call-macro name="basedata_4_heightmarks-points"/>
837 <dc:call-macro name="basedata_5_flood-protections_relative_points"/>
838 <dc:call-macro name="discharge_table_gauge"/>
839 <dc:call-macro name="discharge_fix_wq"/>
840 </dc:when>
841 <dc:when test="$out = 'fix_deltawt_curve'">
842 </dc:when>
843 <dc:when test="$out = 'fix_longitudinal_section_curve'">
844 <dc:call-macro name="annotations"/>
845 </dc:when>
846 <dc:when test="$out = 'map'">
847 <dc:call-macro name="flood-map-complete"/>
848 </dc:when>
849 <dc:when test="$out = 'flow_velocity'">
850 <dc:call-macro name="annotations_per_type"/>
851 <dc:call-macro name="flow_velocity_measurements"/>
852 </dc:when>
853 <dc:when test="$out = 'bed_longitudinal_section'">
854 <dc:call-macro name="annotations_per_type"/>
855 </dc:when>
856 <dc:when test="$out = 'sedimentload_ls'">
857 <dc:call-macro name="annotations_per_type"/>
858 <dc:call-macro name="morph_width"/>
859 </dc:when>
860 <dc:comment>
861 MINFO bedheight middle
862 </dc:comment>
863 <dc:when test="$out = 'bedheight_middle'">
864 <dc:call-macro name="sounding-width"/>
865 <dc:call-macro name="basedata_0"/>
866 <dc:call-macro name="basedata_1_additionals"/>
867 <dc:call-macro name="basedata_2_fixations"/>
868 <dc:call-macro name="basedata_3_officials"/>
869 <dc:call-macro name="annotations_per_type"/>
870 </dc:when>
871 <dc:when test="$out = 'bed_difference_year'">
872 <dc:call-macro name="basedata_0"/>
873 <dc:call-macro name="basedata_1_additionals"/>
874 <dc:call-macro name="basedata_2_fixations"/>
875 <dc:call-macro name="basedata_3_officials"/>
876 <dc:call-macro name="annotations_per_type"/>
877 <dc:call-macro name="morph_width"/>
878 </dc:when>
879 <dc:when test="$out = 'bed_difference_epoch'">
880 <dc:call-macro name="basedata_0"/>
881 <dc:call-macro name="basedata_1_additionals"/>
882 <dc:call-macro name="basedata_2_fixations"/>
883 <dc:call-macro name="basedata_3_officials"/>
884 <dc:call-macro name="annotations_per_type"/>
885 <dc:call-macro name="morph_width"/>
886 </dc:when>
887 <dc:when test="$out = 'floodmap'">
888 <dc:choose>
889 <dc:when test="dc:contains($parameters, 'dem')">
890 <dc:call-macro name="flood-map-dem"/>
891 </dc:when>
892 <dc:when test="dc:contains($parameters, 'hws')">
893 <hws>
894 <dc:call-macro name="flood-map-hws-lines"/>
895 <dc:call-macro name="flood-map-hws-points"/>
896 </hws>
897 </dc:when>
898 <dc:otherwise>
899 <dc:call-macro name="flood-map-complete"/>
900 </dc:otherwise>
901 </dc:choose>
902 </dc:when>
903 <dc:when test="$out = 'floodmap-hws'">
904 <dc:choose>
905 <dc:when test="dc:contains($parameters, 'dem')">
906 <dc:call-macro name="flood-map-dem"/>
907 </dc:when>
908 <dc:when test="dc:contains($parameters, 'hws')">
909 <hws>
910 <dc:call-macro name="flood-map-hws-lines"/>
911 <dc:call-macro name="flood-map-hws-points"/>
912 </hws>
913 </dc:when>
914 <dc:otherwise>
915 <dc:call-macro name="flood-map-complete"/>
916 </dc:otherwise>
917 </dc:choose>
918 </dc:when>
919 <dc:when test="$out = 'computed_discharge_curve'">
920 <dc:call-macro name="discharge_computed"/>
921 <dc:call-macro name="basedata_2_fixations_wqkms"/>
922
923 <dc:call-macro name="basedata_5_flood-protections"/>
924
925 <!-- former waterlevels -->
926 <dc:call-macro name="basedata_0"/>
927
928 <dc:call-macro name="basedata_1_additionals"/>
929
930 <!-- former flood-water-marks -->
931 <dc:call-macro name="basedata_4_heightmarks-points"/>
932 <computed_discharge_curve>
933 <dc:call-macro name="mainvalues"/>
934 </computed_discharge_curve>
935 </dc:when>
936 <dc:when test="$out = 'minfo-heights'">
937 <dc:call-macro name="minfo-heights"/>
938 <dc:macro name="minfo-heights">
939 <bedheights>
940 <dc:call-macro name="bed-heights-single"/>
941 <dc:call-macro name="bed-heights-epoch"/>
942 </bedheights>
943 </dc:macro>
944 </dc:when>
945 <dc:when test="$out = 'minfo-heights-epoch'">
946 <bedheights>
947 <dc:call-macro name="bed-heights-epoch"/>
948 </bedheights>
949 </dc:when>
950 </dc:choose>
951 </dc:iterate>
952 </dc:otherwise>
953 </dc:choose>
954
866 955
867 <dc:if test="dc:contains($artifact-outs, 'floodmap') or dc:contains($artifact-outs, 'floodmap-hws')"> 956 <dc:if test="dc:contains($artifact-outs, 'floodmap') or dc:contains($artifact-outs, 'floodmap-hws')">
868 <dc:choose>
869 <dc:when test="dc:contains($parameters, 'recommended')">
870 <dc:call-macro name="flood-map-recommended"/>
871 </dc:when>
872 <dc:when test="dc:contains($parameters, 'dem')">
873 <dc:call-macro name="flood-map-dem"/>
874 </dc:when>
875 <dc:when test="dc:contains($parameters, 'hws')">
876 <hws>
877 <dc:call-macro name="flood-map-hws-lines"/>
878 <dc:call-macro name="flood-map-hws-points"/>
879 </hws>
880 </dc:when>
881 <dc:otherwise>
882 <dc:call-macro name="flood-map-complete"/>
883 </dc:otherwise>
884 </dc:choose>
885
886 <dc:macro name="flood-map-recommended"> 957 <dc:macro name="flood-map-recommended">
887 <dc:comment> 958 <dc:comment>
888 FIXME: Following two macros look identical to me. 959 FIXME: Following two macros look identical to me.
889 </dc:comment> 960 </dc:comment>
890 <kilometrage> 961 <kilometrage>
891 <riveraxis factory="riveraxis" ids="{$river_id}"/> 962 <riveraxis factory="riveraxis" ids="{$river_id}:OUT={$OUT}"/>
892 </kilometrage> 963 </kilometrage>
893 <rastermap> 964 <rastermap>
894 <background factory="wmsbackground" ids="{$river_id}"/> 965 <background factory="wmsbackground" ids="{$river_id}:OUT={$OUT}"/>
895 </rastermap> 966 </rastermap>
896 </dc:macro> 967 </dc:macro>
897 968
898 <dc:macro name="flood-map-dem"> 969 <dc:macro name="flood-map-dem">
899 <dems> 970 <dems>
914 JOIN ranges r ON d.range_id = r.id 985 JOIN ranges r ON d.range_id = r.id
915 LEFT JOIN time_intervals t ON d.time_interval_id = t.id 986 LEFT JOIN time_intervals t ON d.time_interval_id = t.id
916 WHERE d.river_id = ${river_id} 987 WHERE d.river_id = ${river_id}
917 </dc:statement> 988 </dc:statement>
918 <dc:for-each> 989 <dc:for-each>
919 <dem factory="demfactory" ids="{$dem_id}" name="{$name}" 990 <dem factory="demfactory"
991 ids="{$dem_id}:OUT={$OUT}"
992 name="{$name}"
920 info="{dc:replace($info, '$', '&lt;BR&gt;')}{dc:date-format('yyyy', $start_time)} - {dc:date-format('yyyy', $stop_time)}"/> 993 info="{dc:replace($info, '$', '&lt;BR&gt;')}{dc:date-format('yyyy', $start_time)} - {dc:date-format('yyyy', $stop_time)}"/>
921 </dc:for-each> 994 </dc:for-each>
922 </dc:context> 995 </dc:context>
923 </dems> 996 </dems>
924 </dc:macro> 997 </dc:macro>
1007 <dc:context> 1080 <dc:context>
1008 <dc:statement> 1081 <dc:statement>
1009 SELECT DISTINCT 1 FROM river_axes_km WHERE river_id = ${river_id} 1082 SELECT DISTINCT 1 FROM river_axes_km WHERE river_id = ${river_id}
1010 </dc:statement> 1083 </dc:statement>
1011 <dc:for-each> 1084 <dc:for-each>
1012 <kilometrage factory="wmskmfactory" ids="{$river_id}"/> 1085 <kilometrage factory="wmskmfactory" ids="{$river_id}:OUT={$OUT}"/>
1013 </dc:for-each> 1086 </dc:for-each>
1014 </dc:context> 1087 </dc:context>
1015 </dc:macro> 1088 </dc:macro>
1016 1089
1017 <dc:macro name="flood-map-qps"> 1090 <dc:macro name="flood-map-qps">
1028 </dc:statement> 1101 </dc:statement>
1029 <dc:if test="dc:has-result()"> 1102 <dc:if test="dc:has-result()">
1030 <dc:for-each> 1103 <dc:for-each>
1031 <actual description="{$kind_name}" 1104 <actual description="{$kind_name}"
1032 factory="wmsqpsfactory" 1105 factory="wmsqpsfactory"
1033 ids="{$river_id};{$kind_name};{$kind_id}"/> 1106 ids="{$river_id};{$kind_name};{$kind_id}:OUT={$OUT}"/>
1034 </dc:for-each> 1107 </dc:for-each>
1035 </dc:if> 1108 </dc:if>
1036 </dc:context> 1109 </dc:context>
1037 <dc:context> 1110 <dc:context>
1038 <dc:comment>Now the other tracks</dc:comment> 1111 <dc:comment>Now the other tracks</dc:comment>
1049 <dc:if test="dc:has-result()"> 1122 <dc:if test="dc:has-result()">
1050 <other> 1123 <other>
1051 <dc:for-each> 1124 <dc:for-each>
1052 <misc-qps description="{$layer_name}" 1125 <misc-qps description="{$layer_name}"
1053 factory="wmsqpsfactory" 1126 factory="wmsqpsfactory"
1054 ids="{$river_id};{$layer_name};{$kind_id}"/> 1127 ids="{$river_id};{$layer_name};{$kind_id}:OUT={$OUT}"/>
1055 </dc:for-each> 1128 </dc:for-each>
1056 </other> 1129 </other>
1057 </dc:if> 1130 </dc:if>
1058 </dc:context> 1131 </dc:context>
1059 </dc:macro> 1132 </dc:macro>
1070 AND kind_id=1 1143 AND kind_id=1
1071 </dc:statement> 1144 </dc:statement>
1072 <dc:if test="dc:has-result()"> 1145 <dc:if test="dc:has-result()">
1073 <dc:for-each> 1146 <dc:for-each>
1074 <actual description="{$kind_name}" 1147 <actual description="{$kind_name}"
1075 ids="{$river_id};{$kind_name};{$kind_id}" 1148 ids="{$river_id};{$kind_name};{$kind_id}:OUT={$OUT}"
1076 factory="riveraxis"/> 1149 factory="riveraxis"/>
1077 </dc:for-each> 1150 </dc:for-each>
1078 </dc:if> 1151 </dc:if>
1079 </dc:context> 1152 </dc:context>
1080 <dc:context> 1153 <dc:context>
1090 </dc:statement> 1163 </dc:statement>
1091 <dc:if test="dc:has-result()"> 1164 <dc:if test="dc:has-result()">
1092 <other> 1165 <other>
1093 <dc:for-each> 1166 <dc:for-each>
1094 <misc-axis description="{$layer_name}" 1167 <misc-axis description="{$layer_name}"
1095 ids="{$river_id};{$layer_name};{$kind_id}" 1168 ids="{$river_id};{$layer_name};{$kind_id}:OUT={$OUT}"
1096 factory="riveraxis"/> 1169 factory="riveraxis"/>
1097 </dc:for-each> 1170 </dc:for-each>
1098 </other> 1171 </other>
1099 </dc:if> 1172 </dc:if>
1100 </dc:context> 1173 </dc:context>
1109 WHERE river_id = ${river_id} 1182 WHERE river_id = ${river_id}
1110 AND kind = 2 1183 AND kind = 2
1111 </dc:statement> 1184 </dc:statement>
1112 <dc:for-each> 1185 <dc:for-each>
1113 <line factory="wmshydrboundariesfactory" 1186 <line factory="wmshydrboundariesfactory"
1114 ids="{$river_id};{$name};2" 1187 ids="{$river_id};{$name};2:OUT={$OUT}"
1115 name="{$name}"/> 1188 name="{$name}"/>
1116 </dc:for-each> 1189 </dc:for-each>
1117 </dc:context> 1190 </dc:context>
1118 <dc:context> 1191 <dc:context>
1119 <dc:statement> 1192 <dc:statement>
1123 WHERE river_id = ${river_id} 1196 WHERE river_id = ${river_id}
1124 AND kind = 2 1197 AND kind = 2
1125 </dc:statement> 1198 </dc:statement>
1126 <dc:for-each> 1199 <dc:for-each>
1127 <line factory="wmshydrboundariespolyfactory" 1200 <line factory="wmshydrboundariespolyfactory"
1128 ids="{$river_id};{$name};2" 1201 ids="{$river_id};{$name};2:OUT={$OUT}"
1129 name="{$name}"/> 1202 name="{$name}"/>
1130 </dc:for-each> 1203 </dc:for-each>
1131 </dc:context> 1204 </dc:context>
1132 </dc:macro> 1205 </dc:macro>
1133 1206
1143 <dc:comment> What about all other line kinds?</dc:comment> 1216 <dc:comment> What about all other line kinds?</dc:comment>
1144 <dc:if test="dc:has-result()"> 1217 <dc:if test="dc:has-result()">
1145 <lines> 1218 <lines>
1146 <dc:for-each> 1219 <dc:for-each>
1147 <line factory="wmshydrboundariesfactory" 1220 <line factory="wmshydrboundariesfactory"
1148 ids="{$river_id};{$name};1" 1221 ids="{$river_id};{$name};1:OUT={$OUT}"
1149 name="{$name}"/> 1222 name="{$name}"/>
1150 </dc:for-each> 1223 </dc:for-each>
1151 </lines> 1224 </lines>
1152 </dc:if> 1225 </dc:if>
1153 </dc:context> 1226 </dc:context>
1167 <dc:if test="dc:has-result()"> 1240 <dc:if test="dc:has-result()">
1168 <sobek_areas> 1241 <sobek_areas>
1169 <dc:for-each> 1242 <dc:for-each>
1170 <boundary name="{$sectie}" 1243 <boundary name="{$sectie}"
1171 factory="wmshydrboundariespolyfactory" 1244 factory="wmshydrboundariespolyfactory"
1172 ids="{$river_id};{$sectie};1;{$sectie_id};-1"/> 1245 ids="{$river_id};{$sectie};1;{$sectie_id};-1:OUT={$OUT}"/>
1173 </dc:for-each> 1246 </dc:for-each>
1174 </sobek_areas> 1247 </sobek_areas>
1175 </dc:if> 1248 </dc:if>
1176 </dc:context> 1249 </dc:context>
1177 <dc:context> 1250 <dc:context>
1187 <dc:if test="dc:has-result()"> 1260 <dc:if test="dc:has-result()">
1188 <sobek_flooded> 1261 <sobek_flooded>
1189 <dc:for-each> 1262 <dc:for-each>
1190 <boundary name="{$sobek}" 1263 <boundary name="{$sobek}"
1191 factory="wmshydrboundariespolyfactory" 1264 factory="wmshydrboundariespolyfactory"
1192 ids="{$river_id};{$sobek};1;-1;{$sobek_id}"/> 1265 ids="{$river_id};{$sobek};1;-1;{$sobek_id}:OUT={$OUT}"/>
1193 </dc:for-each> 1266 </dc:for-each>
1194 </sobek_flooded> 1267 </sobek_flooded>
1195 </dc:if> 1268 </dc:if>
1196 </dc:context> 1269 </dc:context>
1197 <dc:context> 1270 <dc:context>
1205 AND b.sectie is NULL 1278 AND b.sectie is NULL
1206 </dc:statement> 1279 </dc:statement>
1207 <dc:for-each> 1280 <dc:for-each>
1208 <boundary name="{$name}" 1281 <boundary name="{$name}"
1209 factory="wmshydrboundariespolyfactory" 1282 factory="wmshydrboundariespolyfactory"
1210 ids="{$river_id};{$name}"/> 1283 ids="{$river_id};{$name}:OUT={$OUT}"/>
1211 </dc:for-each> 1284 </dc:for-each>
1212 </dc:context> 1285 </dc:context>
1213 </dc:macro> 1286 </dc:macro>
1214 1287
1215 <dc:macro name="flood-map-hydr-boundaries"> 1288 <dc:macro name="flood-map-hydr-boundaries">
1238 </dc:statement> 1311 </dc:statement>
1239 <dc:if test="dc:has-result()"> 1312 <dc:if test="dc:has-result()">
1240 <dc:for-each> 1313 <dc:for-each>
1241 <floody factory="wmsfloodplainfactory" 1314 <floody factory="wmsfloodplainfactory"
1242 description="{$kind_name}" 1315 description="{$kind_name}"
1243 ids="{$river_id};{$kind_name};{$kind_id}"/> 1316 ids="{$river_id};{$kind_name};{$kind_id}:OUT={$OUT}"/>
1244 </dc:for-each> 1317 </dc:for-each>
1245 </dc:if> 1318 </dc:if>
1246 </dc:context> 1319 </dc:context>
1247 <dc:context> 1320 <dc:context>
1248 <dc:statement> 1321 <dc:statement>
1258 <dc:if test="dc:has-result()"> 1331 <dc:if test="dc:has-result()">
1259 <other> 1332 <other>
1260 <dc:for-each> 1333 <dc:for-each>
1261 <floody factory="wmsfloodplainfactory" 1334 <floody factory="wmsfloodplainfactory"
1262 description="{$layer_name}" 1335 description="{$layer_name}"
1263 ids="{$river_id};{$layer_name};{$kind_id}"/> 1336 ids="{$river_id};{$layer_name};{$kind_id}:OUT={$OUT}"/>
1264 </dc:for-each> 1337 </dc:for-each>
1265 </other> 1338 </other>
1266 </dc:if> 1339 </dc:if>
1267 </dc:context> 1340 </dc:context>
1268 </floodplain> 1341 </floodplain>
1275 </dc:comment> 1348 </dc:comment>
1276 1349
1277 <dc:macro name="hwslines_by_kind_factory"> 1350 <dc:macro name="hwslines_by_kind_factory">
1278 <dc:for-each> 1351 <dc:for-each>
1279 <hws factory="wmshwslinesfactory" 1352 <hws factory="wmshwslinesfactory"
1280 ids="{$river_id};{$hws_name}" 1353 ids="{$river_id};{$hws_name}:OUT={$OUT}"
1281 name="{$hws_name}"/> 1354 name="{$hws_name}"/>
1282 </dc:for-each> 1355 </dc:for-each>
1283 </dc:macro> 1356 </dc:macro>
1284 1357
1285 <dc:filter expr="$hws_kind=1"> 1358 <dc:filter expr="$hws_kind=1">
1406 </dc:comment> 1479 </dc:comment>
1407 1480
1408 <dc:macro name="hwspoints_by_kind_factory"> 1481 <dc:macro name="hwspoints_by_kind_factory">
1409 <dc:for-each> 1482 <dc:for-each>
1410 <hws factory="wmshwspointsfactory" 1483 <hws factory="wmshwspointsfactory"
1411 ids="{$river_id};{$hws_name}" 1484 ids="{$river_id};{$hws_name}:OUT={$OUT}"
1412 name="{$hws_name}"/> 1485 name="{$hws_name}"/>
1413 </dc:for-each> 1486 </dc:for-each>
1414 </dc:macro> 1487 </dc:macro>
1415 1488
1416 <dc:filter expr="$hws_kind=1"> 1489 <dc:filter expr="$hws_kind=1">
1542 AND b.kind_id &lt;&gt; 0 1615 AND b.kind_id &lt;&gt; 0
1543 </dc:statement> 1616 </dc:statement>
1544 <dc:for-each> 1617 <dc:for-each>
1545 <buildings description="{$building_kind}" 1618 <buildings description="{$building_kind}"
1546 factory="wmsbuildingsfactory" 1619 factory="wmsbuildingsfactory"
1547 ids="{$river_id};{$building_kind};{$building_kind_id}"/> 1620 ids="{$river_id};{$building_kind};{$building_kind_id}:OUT={$OUT}"/>
1548 </dc:for-each> 1621 </dc:for-each>
1549 </dc:context> 1622 </dc:context>
1550 <dc:context> 1623 <dc:context>
1551 <dc:statement> 1624 <dc:statement>
1552 SELECT DISTINCT 1625 SELECT DISTINCT
1561 <dc:if test="dc:has-result()"> 1634 <dc:if test="dc:has-result()">
1562 <other> 1635 <other>
1563 <dc:for-each> 1636 <dc:for-each>
1564 <buildings description="{$building_name}" 1637 <buildings description="{$building_name}"
1565 factory="wmsbuildingsfactory" 1638 factory="wmsbuildingsfactory"
1566 ids="{$river_id};{$building_name}"/> 1639 ids="{$river_id};{$building_name}:OUT={$OUT}"/>
1567 </dc:for-each> 1640 </dc:for-each>
1568 </other> 1641 </other>
1569 </dc:if> 1642 </dc:if>
1570 </dc:context> 1643 </dc:context>
1571 <dc:context> 1644 <dc:context>
1580 <dc:if test="dc:has-result()"> 1653 <dc:if test="dc:has-result()">
1581 <jetties> 1654 <jetties>
1582 <dc:for-each> 1655 <dc:for-each>
1583 <jetty description="{$jetty_kind}" 1656 <jetty description="{$jetty_kind}"
1584 factory="wmsjettiesfactory" 1657 factory="wmsjettiesfactory"
1585 ids="{$river_id};{$jetty_kind};{$jetty_kind_id}"/> 1658 ids="{$river_id};{$jetty_kind};{$jetty_kind_id}:OUT={$OUT}"/>
1586 </dc:for-each> 1659 </dc:for-each>
1587 </jetties> 1660 </jetties>
1588 </dc:if> 1661 </dc:if>
1589 </dc:context> 1662 </dc:context>
1590 </dc:macro> 1663 </dc:macro>
1595 SELECT name AS name 1668 SELECT name AS name
1596 FROM fixpoints WHERE river_id = ${river_id} GROUP BY name 1669 FROM fixpoints WHERE river_id = ${river_id} GROUP BY name
1597 </dc:statement> 1670 </dc:statement>
1598 <dc:for-each> 1671 <dc:for-each>
1599 <fixpoints factory="wmsfixpointsfactory" 1672 <fixpoints factory="wmsfixpointsfactory"
1600 ids="{$river_id};{$name}"/> 1673 ids="{$river_id};{$name}:OUT={$OUT}"/>
1601 </dc:for-each> 1674 </dc:for-each>
1602 </dc:context> 1675 </dc:context>
1603 </dc:macro> 1676 </dc:macro>
1604 1677
1605 <dc:macro name="flood-map-gaugelocations"> 1678 <dc:macro name="flood-map-gaugelocations">
1606 <gauge_points factory="externalwmsfactory" ids="http://www.pegelonline.wsv.de/webservices/gis/wms;Pegelpunkte;Pegelpunkte (WSV)"/> 1679 <gauge_points factory="externalwmsfactory" ids="http://www.pegelonline.wsv.de/webservices/gis/wms;Pegelpunkte;Pegelpunkte (WSV):OUT={$OUT}"/>
1607 <gauge_names factory="externalwmsfactory" ids="http://www.pegelonline.wsv.de/webservices/gis/wms;Pegelnamen;Pegelnamen (WSV)"/> 1680 <gauge_names factory="externalwmsfactory" ids="http://www.pegelonline.wsv.de/webservices/gis/wms;Pegelnamen;Pegelnamen (WSV):OUT={$OUT}"/>
1608 <gauge_level factory="externalwmsfactory" ids="http://www.pegelonline.wsv.de/webservices/gis/wms;Pegelwasserstand;Aktueller Wasserstand (WSV)"/> 1681 <gauge_level factory="externalwmsfactory" ids="http://www.pegelonline.wsv.de/webservices/gis/wms;Pegelwasserstand;Aktueller Wasserstand (WSV):OUT={$OUT}"/>
1609 <gauge_tendency factory="externalwmsfactory" ids="http://www.pegelonline.wsv.de/webservices/gis/wms;TendenzWasserstand;Tendenz des Wasserstands (WSV)"/> 1682 <gauge_tendency factory="externalwmsfactory" ids="http://www.pegelonline.wsv.de/webservices/gis/wms;TendenzWasserstand;Tendenz des Wasserstands (WSV):OUT={$OUT}"/>
1610 </dc:macro> 1683 </dc:macro>
1611 1684
1612 <dc:macro name="flood-map-uesk"> 1685 <dc:macro name="flood-map-uesk">
1613 <dc:context> 1686 <dc:context>
1614 <dc:statement> 1687 <dc:statement>
1632 </dc:statement> 1705 </dc:statement>
1633 <dc:if test="dc:has-result()"> 1706 <dc:if test="dc:has-result()">
1634 <bfg> 1707 <bfg>
1635 <dc:for-each> 1708 <dc:for-each>
1636 <floodmaps factory="wmsfloodmapsfactory" 1709 <floodmaps factory="wmsfloodmapsfactory"
1637 ids="{$river_id};{$name}" 1710 ids="{$river_id};{$name}:OUT={$OUT}"
1638 name="{$name}"/> 1711 name="{$name}"/>
1639 </dc:for-each> 1712 </dc:for-each>
1640 </bfg> 1713 </bfg>
1641 </dc:if> 1714 </dc:if>
1642 </dc:context> 1715 </dc:context>
1648 </dc:statement> 1721 </dc:statement>
1649 <dc:if test="dc:has-result()"> 1722 <dc:if test="dc:has-result()">
1650 <federal> 1723 <federal>
1651 <dc:for-each> 1724 <dc:for-each>
1652 <floodmaps factory="wmsfloodmapsfactory" 1725 <floodmaps factory="wmsfloodmapsfactory"
1653 ids="{$river_id};{$name}" 1726 ids="{$river_id};{$name}:OUT={$OUT}"
1654 name="{$name}"/> 1727 name="{$name}"/>
1655 </dc:for-each> 1728 </dc:for-each>
1656 </federal> 1729 </federal>
1657 </dc:if> 1730 </dc:if>
1658 </dc:context> 1731 </dc:context>
1674 </dc:statement> 1747 </dc:statement>
1675 <dc:if test="dc:has-result()"> 1748 <dc:if test="dc:has-result()">
1676 <bfg> 1749 <bfg>
1677 <dc:for-each> 1750 <dc:for-each>
1678 <floodmaps factory="wmsfloodmapsfactory" 1751 <floodmaps factory="wmsfloodmapsfactory"
1679 ids="{$river_id};{$name}" 1752 ids="{$river_id};{$name}:OUT={$OUT}"
1680 name="{$name}"/> 1753 name="{$name}"/>
1681 </dc:for-each> 1754 </dc:for-each>
1682 </bfg> 1755 </bfg>
1683 </dc:if> 1756 </dc:if>
1684 </dc:context> 1757 </dc:context>
1691 </dc:statement> 1764 </dc:statement>
1692 <dc:if test="dc:has-result()"> 1765 <dc:if test="dc:has-result()">
1693 <federal> 1766 <federal>
1694 <dc:for-each> 1767 <dc:for-each>
1695 <floodmaps factory="wmsfloodmapsfactory" 1768 <floodmaps factory="wmsfloodmapsfactory"
1696 ids="{$river_id};{$name}" 1769 ids="{$river_id};{$name}:OUT={$OUT}"
1697 name="{$name}"/> 1770 name="{$name}"/>
1698 </dc:for-each> 1771 </dc:for-each>
1699 </federal> 1772 </federal>
1700 </dc:if> 1773 </dc:if>
1701 </dc:context> 1774 </dc:context>
1722 WHERE river_id = ${river_id} AND kind = 200 AND source = 1795 WHERE river_id = ${river_id} AND kind = 200 AND source =
1723 ${source} 1796 ${source}
1724 </dc:statement> 1797 </dc:statement>
1725 <dc:for-each> 1798 <dc:for-each>
1726 <floodmaps factory="wmsfloodmapsfactory" 1799 <floodmaps factory="wmsfloodmapsfactory"
1727 ids="{$river_id};{$name}" 1800 ids="{$river_id};{$name}:OUT={$OUT}"
1728 name="{$name}"/> 1801 name="{$name}"/>
1729 </dc:for-each> 1802 </dc:for-each>
1730 </dc:context> 1803 </dc:context>
1731 </year> 1804 </year>
1732 </dc:for-each> 1805 </dc:for-each>
1760 <dc:if test="dc:has-result()"> 1833 <dc:if test="dc:has-result()">
1761 <floodmarks> 1834 <floodmarks>
1762 <dc:for-each> 1835 <dc:for-each>
1763 <floodmark name="{$year}" 1836 <floodmark name="{$year}"
1764 factory="wmsfloodmarkfactory" 1837 factory="wmsfloodmarkfactory"
1765 ids="{$river_id};{$year};{$year}"/> 1838 ids="{$river_id};{$year};{$year}:OUT={$OUT}"/>
1766 </dc:for-each> 1839 </dc:for-each>
1767 </floodmarks> 1840 </floodmarks>
1768 </dc:if> 1841 </dc:if>
1769 </dc:context> 1842 </dc:context>
1770 </dc:macro> 1843 </dc:macro>
1773 <buildings> 1846 <buildings>
1774 <dc:call-macro name="flood-map-buildings"/> 1847 <dc:call-macro name="flood-map-buildings"/>
1775 </buildings> 1848 </buildings>
1776 <catchments> 1849 <catchments>
1777 <catchment_wms factory="externalwmsfactory" 1850 <catchment_wms factory="externalwmsfactory"
1778 ids="http://geoportal.bafg.de/wmsproxy/INSPIRE/DrainageBasin;HY.PHYSICALWATERS.CATCHMENTS;Einzugsgebiete (WMS)" /> 1851 ids="http://geoportal.bafg.de/wmsproxy/INSPIRE/DrainageBasin;HY.PHYSICALWATERS.CATCHMENTS;Einzugsgebiete (WMS):OUT={$OUT}" />
1779 <gaugelocations> 1852 <gaugelocations>
1780 <dc:call-macro name="flood-map-gaugelocations"/> 1853 <dc:call-macro name="flood-map-gaugelocations"/>
1781 </gaugelocations> 1854 </gaugelocations>
1782 </catchments> 1855 </catchments>
1783 <dc:call-macro name="floodmarks"/> 1856 <dc:call-macro name="floodmarks"/>
1795 <dc:call-macro name="flood-map-uesk"/> 1868 <dc:call-macro name="flood-map-uesk"/>
1796 </dc:macro> 1869 </dc:macro>
1797 1870
1798 </dc:if> 1871 </dc:if>
1799 1872
1800 <dc:if test="dc:contains($artifact-outs, 'minfo-heights')">
1801 <dc:call-macro name="minfo-heights"/>
1802 <dc:macro name="minfo-heights">
1803 <bedheights>
1804 <dc:call-macro name="bed-heights-single"/>
1805 <dc:call-macro name="bed-heights-epoch"/>
1806 </bedheights>
1807 </dc:macro>
1808 </dc:if>
1809 <dc:if test="dc:contains($artifact-outs, 'minfo-heights-epoch')">
1810 <bedheights>
1811 <dc:call-macro name="bed-heights-epoch"/>
1812 </bedheights>
1813 </dc:if>
1814
1815 <dc:macro name="bed-heights-single"> 1873 <dc:macro name="bed-heights-single">
1816 <single> 1874 <single>
1817 <dc:context> 1875 <dc:context>
1818 <dc:statement> 1876 <dc:statement>
1819 SELECT id AS bedh_id, 1877 SELECT id AS bedh_id,
1821 description AS bedh_descr 1879 description AS bedh_descr
1822 FROM bed_height_single WHERE river_id = ${river_id} 1880 FROM bed_height_single WHERE river_id = ${river_id}
1823 </dc:statement> 1881 </dc:statement>
1824 <dc:for-each> 1882 <dc:for-each>
1825 <height factory="bedheight" 1883 <height factory="bedheight"
1826 ids="bedheight-single-{$bedh_id}-{$bedh_year}" 1884 ids="bedheight-single-{$bedh_id}-{$bedh_year}:OUT={$OUT}"
1827 description="{$bedh_descr}"/> 1885 description="{$bedh_descr}"/>
1828 </dc:for-each> 1886 </dc:for-each>
1829 </dc:context> 1887 </dc:context>
1830 </single> 1888 </single>
1831 </dc:macro> 1889 </dc:macro>
1839 description AS bedh_descr 1897 description AS bedh_descr
1840 FROM bed_height_epoch WHERE river_id = ${river_id} 1898 FROM bed_height_epoch WHERE river_id = ${river_id}
1841 </dc:statement> 1899 </dc:statement>
1842 <dc:for-each> 1900 <dc:for-each>
1843 <height factory="bedheight" 1901 <height factory="bedheight"
1844 ids="bedheight-epoch-{$bedh_id}-{$bedh_interval_id}" 1902 ids="bedheight-epoch-{$bedh_id}-{$bedh_interval_id}:OUT={$OUT}"
1845 description="{$bedh_descr}"/> 1903 description="{$bedh_descr}"/>
1846 </dc:for-each> 1904 </dc:for-each>
1847 </dc:context> 1905 </dc:context>
1848 </epoch> 1906 </epoch>
1849 </dc:macro> 1907 </dc:macro>
1896 </dc:if> 1954 </dc:if>
1897 </dc:for-each> 1955 </dc:for-each>
1898 </dc:macro> 1956 </dc:macro>
1899 1957
1900 <!-- OFFICIAL LINES --> 1958 <!-- OFFICIAL LINES -->
1901 <dc:if test="dc:contains($artifact-outs, 'longitudinal_section')"> 1959 <dc:macro name="officiallines_user">
1902 <dc:comment comment=".wst -------------------------------"/> 1960 <dc:comment comment=".wst -------------------------------"/>
1903 <officiallines> 1961 <officiallines>
1904 <dc:for-each> 1962 <dc:for-each>
1905 <dc:context> 1963 <dc:context>
1906 <dc:statement> 1964 <dc:statement>
1907 SELECT m.id AS a_id, 1965 SELECT m.id AS a_id,
1908 m.state AS a_state, 1966 m.state AS a_state,
1909 m.gid AS a_gid, 1967 m.gid AS a_gid,
1910 m.creation AS a_creation, 1968 m.creation AS a_creation,
1911 ardg.v AS gaugy, 1969 ardg.v AS gaugy,
1912 arv.v AS wqsingle 1970 arv.v AS wqsingle
1913 FROM master_artifacts m, 1971 FROM master_artifacts m,
1914 artifact_data ardg, 1972 artifact_data ardg,
1915 artifact_data arv 1973 artifact_data arv
1916 WHERE m.collection_id = ${collection_id} 1974 WHERE m.collection_id = ${collection_id}
1917 AND m.gid = CAST(${artifact-id} AS uuid) 1975 AND m.gid = CAST(${artifact-id} AS uuid)
1918 AND ardg.artifact_id = m.id 1976 AND ardg.artifact_id = m.id
1919 AND ardg.k = 'ld_gaugename' 1977 AND ardg.k = 'ld_gaugename'
1920 AND arv.artifact_id = m.id 1978 AND arv.artifact_id = m.id
1921 AND arv.k = 'wq_single' 1979 AND arv.k = 'wq_single'
1922 AND EXISTS ( 1980 AND EXISTS (
1923 SELECT id 1981 SELECT id
1924 FROM artifact_data ad 1982 FROM artifact_data ad
1925 WHERE ad.artifact_id = m.id 1983 WHERE ad.artifact_id = m.id
1926 AND k = 'river' 1984 AND k = 'river'
1927 AND v = ${river}) 1985 AND v = ${river})
1928 </dc:statement> 1986 </dc:statement>
1929 <dc:for-each> 1987 <dc:for-each>
1930 <dc:context connection="system"> 1988 <dc:context connection="system">
1931 <dc:statement> 1989 <dc:statement>
1932 SELECT ol.wst_id AS wstid, ol.wst_column_pos AS wstcolpos, ol.name AS olname, ol.value AS oval 1990 SELECT ol.wst_id AS wstid, ol.wst_column_pos AS wstcolpos, ol.name AS olname, ol.value AS oval
1934 WHERE ol.value = CAST(${wqsingle} AS NUMERIC(10,2)) AND ol.gauge_name = ${gaugy} 1992 WHERE ol.value = CAST(${wqsingle} AS NUMERIC(10,2)) AND ol.gauge_name = ${gaugy}
1935 </dc:statement> 1993 </dc:statement>
1936 <dc:for-each> 1994 <dc:for-each>
1937 <dc:element name="${olname}"> 1995 <dc:element name="${olname}">
1938 <dc:attribute name="name" value="${olname}"/> 1996 <dc:attribute name="name" value="${olname}"/>
1939 <dc:attribute name="ids" value="additionals-wstv-${wstcolpos}-${wstid}"/> 1997 <dc:attribute name="ids" value="additionals-wstv-${wstcolpos}-${wstid}:OUT=${out}"/>
1940 <dc:attribute name="factory" value="staticwkms"/> 1998 <dc:attribute name="factory" value="staticwkms"/>
1941 </dc:element> 1999 </dc:element>
1942 </dc:for-each> 2000 </dc:for-each>
1943 </dc:context> 2001 </dc:context>
1944 </dc:for-each> 2002 </dc:for-each>
1945 </dc:context> 2003 </dc:context>
1946 </dc:for-each> 2004 </dc:for-each>
1947 </officiallines> 2005 </officiallines>
1948 </dc:if> 2006 </dc:macro>
1949 <!-- END OFFICIAL LINES --> 2007 <!-- END OFFICIAL LINES -->
1950 2008
1951 <dc:comment> 2009 <dc:comment>
1952 SHOW W-DIFFERENCES 2010 SHOW W-DIFFERENCES
1953 </dc:comment> 2011 </dc:comment>
1966 <dc:for-each> 2024 <dc:for-each>
1967 <dc:element name="${facet_name}"> 2025 <dc:element name="${facet_name}">
1968 <dc:attribute name="description" value="${facet_description}"/> 2026 <dc:attribute name="description" value="${facet_description}"/>
1969 <dc:attribute name="factory" value="winfo"/> 2027 <dc:attribute name="factory" value="winfo"/>
1970 <dc:attribute name="artifact-id" value="${aid}"/> 2028 <dc:attribute name="artifact-id" value="${aid}"/>
1971 <dc:attribute name="ids" value="${aid}"/> 2029 <dc:attribute name="ids" value="${aid}:OUT=${out}"/>
1972 <dc:attribute name="out" value="w_differences"/> 2030 <dc:attribute name="out" value="w_differences"/>
1973 </dc:element> 2031 </dc:element>
1974 </dc:for-each> 2032 </dc:for-each>
1975 </dc:context> 2033 </dc:context>
1976 </dc:call-macro> 2034 </dc:call-macro>
1997 <dc:for-each> 2055 <dc:for-each>
1998 <dc:element name="${facet_name}"> 2056 <dc:element name="${facet_name}">
1999 <dc:attribute name="description" value="${facet_description}"/> 2057 <dc:attribute name="description" value="${facet_description}"/>
2000 <dc:attribute name="factory" value="winfo"/> 2058 <dc:attribute name="factory" value="winfo"/>
2001 <dc:attribute name="artifact-id" value="${aid}"/> 2059 <dc:attribute name="artifact-id" value="${aid}"/>
2002 <dc:attribute name="ids" value="${aid}"/> 2060 <dc:attribute name="ids" value="${aid}:OUT=${out}"/>
2003 <dc:attribute name="out" value="reference_curve"/> 2061 <dc:attribute name="out" value="reference_curve"/>
2004 </dc:element> 2062 </dc:element>
2005 </dc:for-each> 2063 </dc:for-each>
2006 </dc:context> 2064 </dc:context>
2007 </dc:call-macro> 2065 </dc:call-macro>
2028 <dc:for-each> 2086 <dc:for-each>
2029 <dc:element name="${facet_name}"> 2087 <dc:element name="${facet_name}">
2030 <dc:attribute name="description" value="${facet_description}"/> 2088 <dc:attribute name="description" value="${facet_description}"/>
2031 <dc:attribute name="factory" value="winfo"/> 2089 <dc:attribute name="factory" value="winfo"/>
2032 <dc:attribute name="artifact-id" value="${aid}"/> 2090 <dc:attribute name="artifact-id" value="${aid}"/>
2033 <dc:attribute name="ids" value="${aid}"/> 2091 <dc:attribute name="ids" value="${aid}:OUT=${out}"/>
2034 <dc:attribute name="out" value="computed_discharge_curve"/> 2092 <dc:attribute name="out" value="computed_discharge_curve"/>
2035 </dc:element> 2093 </dc:element>
2036 </dc:for-each> 2094 </dc:for-each>
2037 </dc:context> 2095 </dc:context>
2038 </dc:call-macro> 2096 </dc:call-macro>
2066 </dc:statement> 2124 </dc:statement>
2067 <longitudinal_section_columns description="{$river} {$a_creation}"> 2125 <longitudinal_section_columns description="{$river} {$a_creation}">
2068 <dc:for-each> 2126 <dc:for-each>
2069 <dc:element name="${facet_name}"> 2127 <dc:element name="${facet_name}">
2070 <dc:attribute name="description" value="${facet_description}"/> 2128 <dc:attribute name="description" value="${facet_description}"/>
2071 <dc:attribute name="ids" value="${facet_num}"/> 2129 <dc:attribute name="ids" value="${facet_num}:OUT=${out}"/>
2072 <dc:attribute name="factory" value="winfo"/> 2130 <dc:attribute name="factory" value="winfo"/>
2073 <dc:attribute name="artifact-id" value="${a_gid}"/> 2131 <dc:attribute name="artifact-id" value="${a_gid}"/>
2074 <dc:attribute name="out" value="cross_section"/> 2132 <dc:attribute name="out" value="cross_section"/>
2075 </dc:element> 2133 </dc:element>
2076 </dc:for-each> 2134 </dc:for-each>
2105 </dc:statement> 2163 </dc:statement>
2106 <longitudinal_section_columns description="{$river} {$a_creation}"> 2164 <longitudinal_section_columns description="{$river} {$a_creation}">
2107 <dc:for-each> 2165 <dc:for-each>
2108 <dc:element name="${facet_name}"> 2166 <dc:element name="${facet_name}">
2109 <dc:attribute name="description" value="${facet_description}"/> 2167 <dc:attribute name="description" value="${facet_description}"/>
2110 <dc:attribute name="ids" value="${facet_num}"/> 2168 <dc:attribute name="ids" value="${facet_num}:OUT=${out}"/>
2111 <dc:attribute name="factory" value="winfo"/> 2169 <dc:attribute name="factory" value="winfo"/>
2112 <dc:attribute name="artifact-id" value="${a_gid}"/> 2170 <dc:attribute name="artifact-id" value="${a_gid}"/>
2113 <dc:attribute name="out" value="longitudinal_section"/> 2171 <dc:attribute name="out" value="longitudinal_section"/>
2114 </dc:element> 2172 </dc:element>
2115 </dc:for-each> 2173 </dc:for-each>
2149 </dc:statement> 2207 </dc:statement>
2150 <waterlevels description="{$river} {$a_creation} {$collection_name}"> 2208 <waterlevels description="{$river} {$a_creation} {$collection_name}">
2151 <dc:for-each> 2209 <dc:for-each>
2152 <dc:element name="${facet_name}"> 2210 <dc:element name="${facet_name}">
2153 <dc:attribute name="description" value="${facet_description}"/> 2211 <dc:attribute name="description" value="${facet_description}"/>
2154 <dc:attribute name="ids" value="${facet_num}"/> 2212 <dc:attribute name="ids" value="${facet_num}:OUT=${out}"/>
2155 <dc:attribute name="factory" value="fixanalysis"/> 2213 <dc:attribute name="factory" value="fixanalysis"/>
2156 <dc:attribute name="artifact-id" value="${a_gid}"/> 2214 <dc:attribute name="artifact-id" value="${a_gid}"/>
2157 <dc:attribute name="out" value="fix_longitudinal_section_curve"/> 2215 <dc:attribute name="out" value="fix_longitudinal_section_curve"/>
2158 </dc:element> 2216 </dc:element>
2159 </dc:for-each> 2217 </dc:for-each>
2193 </dc:statement> 2251 </dc:statement>
2194 <waterlevels description="{$river} {$a_creation} {$collection_name}"> 2252 <waterlevels description="{$river} {$a_creation} {$collection_name}">
2195 <dc:for-each> 2253 <dc:for-each>
2196 <dc:element name="${facet_name}"> 2254 <dc:element name="${facet_name}">
2197 <dc:attribute name="description" value="${facet_description}"/> 2255 <dc:attribute name="description" value="${facet_description}"/>
2198 <dc:attribute name="ids" value="${facet_num}"/> 2256 <dc:attribute name="ids" value="${facet_num}:OUT=${out}"/>
2199 <dc:attribute name="factory" value="fixanalysis"/> 2257 <dc:attribute name="factory" value="fixanalysis"/>
2200 <dc:attribute name="artifact-id" value="${a_gid}"/> 2258 <dc:attribute name="artifact-id" value="${a_gid}"/>
2201 <dc:attribute name="out" value="fix_deltawt_curve"/> 2259 <dc:attribute name="out" value="fix_deltawt_curve"/>
2202 </dc:element> 2260 </dc:element>
2203 </dc:for-each> 2261 </dc:for-each>
2234 </dc:statement> 2292 </dc:statement>
2235 <waterlevels description="{$river} {$a_creation} {$collection_name}"> 2293 <waterlevels description="{$river} {$a_creation} {$collection_name}">
2236 <dc:for-each> 2294 <dc:for-each>
2237 <dc:element name="${facet_name}"> 2295 <dc:element name="${facet_name}">
2238 <dc:attribute name="description" value="${facet_description}"/> 2296 <dc:attribute name="description" value="${facet_description}"/>
2239 <dc:attribute name="ids" value="${facet_num}"/> 2297 <dc:attribute name="ids" value="${facet_num}:OUT=${out}"/>
2240 <dc:attribute name="factory" value="fixanalysis"/> 2298 <dc:attribute name="factory" value="fixanalysis"/>
2241 <dc:attribute name="artifact-id" value="${a_gid}"/> 2299 <dc:attribute name="artifact-id" value="${a_gid}"/>
2242 <dc:attribute name="out" value="fix_deltawt_curve"/> 2300 <dc:attribute name="out" value="fix_deltawt_curve"/>
2243 </dc:element> 2301 </dc:element>
2244 </dc:for-each> 2302 </dc:for-each>
2273 </dc:statement> 2331 </dc:statement>
2274 <waterlevels description="{$river} {$a_creation} {$collection_name}"> 2332 <waterlevels description="{$river} {$a_creation} {$collection_name}">
2275 <dc:for-each> 2333 <dc:for-each>
2276 <dc:element name="${facet_name}"> 2334 <dc:element name="${facet_name}">
2277 <dc:attribute name="description" value="${facet_description}"/> 2335 <dc:attribute name="description" value="${facet_description}"/>
2278 <dc:attribute name="ids" value="${facet_num}"/> 2336 <dc:attribute name="ids" value="${facet_num}:OUT=${out}"/>
2279 <dc:attribute name="factory" value="fixanalysis"/> 2337 <dc:attribute name="factory" value="fixanalysis"/>
2280 <dc:attribute name="artifact-id" value="${a_gid}"/> 2338 <dc:attribute name="artifact-id" value="${a_gid}"/>
2281 <dc:attribute name="out" value="fix_derivate_curve"/> 2339 <dc:attribute name="out" value="fix_derivate_curve"/>
2282 </dc:element> 2340 </dc:element>
2283 </dc:for-each> 2341 </dc:for-each>
2316 </dc:statement> 2374 </dc:statement>
2317 <waterlevels description="{$river} {$a_creation} {$collection_name}"> 2375 <waterlevels description="{$river} {$a_creation} {$collection_name}">
2318 <dc:for-each> 2376 <dc:for-each>
2319 <dc:element name="${facet_name}"> 2377 <dc:element name="${facet_name}">
2320 <dc:attribute name="description" value="${facet_description}"/> 2378 <dc:attribute name="description" value="${facet_description}"/>
2321 <dc:attribute name="ids" value="${facet_num}"/> 2379 <dc:attribute name="ids" value="${facet_num}:OUT=${out}"/>
2322 <dc:attribute name="factory" value="fixanalysis"/> 2380 <dc:attribute name="factory" value="fixanalysis"/>
2323 <dc:attribute name="artifact-id" value="${a_gid}"/> 2381 <dc:attribute name="artifact-id" value="${a_gid}"/>
2324 <dc:attribute name="out" value="fix_wq_curve"/> 2382 <dc:attribute name="out" value="fix_wq_curve"/>
2325 </dc:element> 2383 </dc:element>
2326 </dc:for-each> 2384 </dc:for-each>
2356 <dc:for-each> 2414 <dc:for-each>
2357 <dc:element name="${facet_name}"> 2415 <dc:element name="${facet_name}">
2358 <dc:attribute name="description" value="${facet_description}"/> 2416 <dc:attribute name="description" value="${facet_description}"/>
2359 <dc:attribute name="factory" value="winfo"/> 2417 <dc:attribute name="factory" value="winfo"/>
2360 <dc:attribute name="artifact-id" value="${aid}"/> 2418 <dc:attribute name="artifact-id" value="${aid}"/>
2361 <dc:attribute name="ids" value="${aid}"/> 2419 <dc:attribute name="ids" value="${aid}:OUT=${out}"/>
2362 <dc:attribute name="out" value="duration_curve"/> 2420 <dc:attribute name="out" value="duration_curve"/>
2363 </dc:element> 2421 </dc:element>
2364 </dc:for-each> 2422 </dc:for-each>
2365 </dc:context> 2423 </dc:context>
2366 </dc:call-macro> 2424 </dc:call-macro>
2396 </dc:statement> 2454 </dc:statement>
2397 <waterlevels description="{$river} {$a_creation} {$collection_name}"> 2455 <waterlevels description="{$river} {$a_creation} {$collection_name}">
2398 <dc:for-each> 2456 <dc:for-each>
2399 <dc:element name="${facet_name}"> 2457 <dc:element name="${facet_name}">
2400 <dc:attribute name="description" value="${facet_description}"/> 2458 <dc:attribute name="description" value="${facet_description}"/>
2401 <dc:attribute name="ids" value="${facet_num}"/> 2459 <dc:attribute name="ids" value="${facet_num}:OUT=${out}"/>
2402 <dc:attribute name="factory" value="winfo"/> 2460 <dc:attribute name="factory" value="winfo"/>
2403 <dc:attribute name="artifact-id" value="${a_gid}"/> 2461 <dc:attribute name="artifact-id" value="${a_gid}"/>
2404 <dc:attribute name="out" value="longitudinal_section"/> 2462 <dc:attribute name="out" value="longitudinal_section"/>
2405 </dc:element> 2463 </dc:element>
2406 </dc:for-each> 2464 </dc:for-each>
2439 <dc:for-each> 2497 <dc:for-each>
2440 <dc:element name="${facet_name}"> 2498 <dc:element name="${facet_name}">
2441 <dc:attribute name="description" value="${facet_description}"/> 2499 <dc:attribute name="description" value="${facet_description}"/>
2442 <dc:attribute name="factory" value="winfo"/> 2500 <dc:attribute name="factory" value="winfo"/>
2443 <dc:attribute name="artifact-id" value="${aid}"/> 2501 <dc:attribute name="artifact-id" value="${aid}"/>
2444 <dc:attribute name="ids" value="${aid}"/> 2502 <dc:attribute name="ids" value="${aid}:OUT=${out}"/>
2445 <dc:attribute name="out" value="floodmap"/> 2503 <dc:attribute name="out" value="floodmap"/>
2446 </dc:element> 2504 </dc:element>
2447 </dc:for-each> 2505 </dc:for-each>
2448 </dc:context> 2506 </dc:context>
2449 </dc:call-macro> 2507 </dc:call-macro>
2478 <dc:for-each> 2536 <dc:for-each>
2479 <dc:element name="${facet_name}"> 2537 <dc:element name="${facet_name}">
2480 <dc:attribute name="description" value="${facet_description}"/> 2538 <dc:attribute name="description" value="${facet_description}"/>
2481 <dc:attribute name="factory" value="fixanalysis"/> 2539 <dc:attribute name="factory" value="fixanalysis"/>
2482 <dc:attribute name="artifact-id" value="${aid}"/> 2540 <dc:attribute name="artifact-id" value="${aid}"/>
2483 <dc:attribute name="ids" value="${facet_num}"/> 2541 <dc:attribute name="ids" value="${facet_num}:OUT=${out}"/>
2484 <dc:attribute name="out" value="longitudinal_section"/> 2542 <dc:attribute name="out" value="longitudinal_section"/>
2485 </dc:element> 2543 </dc:element>
2486 </dc:for-each> 2544 </dc:for-each>
2487 </fix_vollmer_wq_curve> 2545 </fix_vollmer_wq_curve>
2488 </dc:context> 2546 </dc:context>
2511 </dc:statement> 2569 </dc:statement>
2512 <own-hws> 2570 <own-hws>
2513 <dc:for-each> 2571 <dc:for-each>
2514 <dc:element name="${facet_name}"> 2572 <dc:element name="${facet_name}">
2515 <dc:attribute name="description" value="${facet_description}"/> 2573 <dc:attribute name="description" value="${facet_description}"/>
2516 <dc:attribute name="ids" value="${facet_num}"/> 2574 <dc:attribute name="ids" value="${facet_num}:OUT=${out}"/>
2517 <dc:attribute name="factory" value="winfo"/> 2575 <dc:attribute name="factory" value="winfo"/>
2518 <dc:attribute name="artifact-id" value="${a_gid}"/> 2576 <dc:attribute name="artifact-id" value="${a_gid}"/>
2519 <dc:attribute name="out" value="floodmap"/> 2577 <dc:attribute name="out" value="floodmap"/>
2520 </dc:element> 2578 </dc:element>
2521 </dc:for-each> 2579 </dc:for-each>
2557 </dc:statement> 2615 </dc:statement>
2558 <dc:for-each> 2616 <dc:for-each>
2559 <dc:element name="${facet_name}"> 2617 <dc:element name="${facet_name}">
2560 <dc:attribute name="factory" value="minfo"/> 2618 <dc:attribute name="factory" value="minfo"/>
2561 <dc:attribute name="description" value="${facet_description}"/> 2619 <dc:attribute name="description" value="${facet_description}"/>
2562 <dc:attribute name="ids" value="${facet_num}-${facet_name}"/> 2620 <dc:attribute name="ids" value="${facet_num}-${facet_name}:OUT=${out}"/>
2563 <dc:attribute name="artifact-id" value="${aid}"/> 2621 <dc:attribute name="artifact-id" value="${aid}"/>
2564 <dc:attribute name="out" value="bed_longitudinal_section"/> 2622 <dc:attribute name="out" value="bed_longitudinal_section"/>
2565 </dc:element> 2623 </dc:element>
2566 </dc:for-each> 2624 </dc:for-each>
2567 </dc:context> 2625 </dc:context>
2605 </dc:statement> 2663 </dc:statement>
2606 <dc:for-each> 2664 <dc:for-each>
2607 <dc:element name="${facet_name}"> 2665 <dc:element name="${facet_name}">
2608 <dc:attribute name="factory" value="minfo"/> 2666 <dc:attribute name="factory" value="minfo"/>
2609 <dc:attribute name="description" value="${facet_description}"/> 2667 <dc:attribute name="description" value="${facet_description}"/>
2610 <dc:attribute name="ids" value="${facet_num}-${facet_name}"/> 2668 <dc:attribute name="ids" value="${facet_num}-${facet_name}:OUT=${out}"/>
2611 <dc:attribute name="artifact-id" value="${aid}"/> 2669 <dc:attribute name="artifact-id" value="${aid}"/>
2612 <dc:attribute name="out" value="bed_longitudinal_section"/> 2670 <dc:attribute name="out" value="bed_longitudinal_section"/>
2613 </dc:element> 2671 </dc:element>
2614 </dc:for-each> 2672 </dc:for-each>
2615 </dc:context> 2673 </dc:context>
2654 </dc:statement> 2712 </dc:statement>
2655 <dc:for-each> 2713 <dc:for-each>
2656 <dc:element name="${facet_name}"> 2714 <dc:element name="${facet_name}">
2657 <dc:attribute name="factory" value="minfo"/> 2715 <dc:attribute name="factory" value="minfo"/>
2658 <dc:attribute name="description" value="${facet_description}"/> 2716 <dc:attribute name="description" value="${facet_description}"/>
2659 <dc:attribute name="ids" value="${facet_num}-${facet_name}"/> 2717 <dc:attribute name="ids" value="${facet_num}-${facet_name}:OUT=${out}"/>
2660 <dc:attribute name="artifact-id" value="${aid}"/> 2718 <dc:attribute name="artifact-id" value="${aid}"/>
2661 <dc:attribute name="out" value="bed_longitudinal_section"/> 2719 <dc:attribute name="out" value="bed_longitudinal_section"/>
2662 </dc:element> 2720 </dc:element>
2663 </dc:for-each> 2721 </dc:for-each>
2664 </dc:context> 2722 </dc:context>
2703 </dc:statement> 2761 </dc:statement>
2704 <dc:for-each> 2762 <dc:for-each>
2705 <dc:element name="${facet_name}"> 2763 <dc:element name="${facet_name}">
2706 <dc:attribute name="factory" value="minfo"/> 2764 <dc:attribute name="factory" value="minfo"/>
2707 <dc:attribute name="description" value="${facet_description}"/> 2765 <dc:attribute name="description" value="${facet_description}"/>
2708 <dc:attribute name="ids" value="${facet_num}-${facet_name}"/> 2766 <dc:attribute name="ids" value="${facet_num}-${facet_name}:OUT=${out}"/>
2709 <dc:attribute name="artifact-id" value="${aid}"/> 2767 <dc:attribute name="artifact-id" value="${aid}"/>
2710 <dc:attribute name="out" value="bed_longitudinal_section"/> 2768 <dc:attribute name="out" value="bed_longitudinal_section"/>
2711 </dc:element> 2769 </dc:element>
2712 </dc:for-each> 2770 </dc:for-each>
2713 </dc:context> 2771 </dc:context>
2753 </dc:statement> 2811 </dc:statement>
2754 <dc:for-each> 2812 <dc:for-each>
2755 <dc:element name="${facet_name}"> 2813 <dc:element name="${facet_name}">
2756 <dc:attribute name="factory" value="minfo"/> 2814 <dc:attribute name="factory" value="minfo"/>
2757 <dc:attribute name="description" value="${facet_description}"/> 2815 <dc:attribute name="description" value="${facet_description}"/>
2758 <dc:attribute name="ids" value="${facet_num}-${facet_name}"/> 2816 <dc:attribute name="ids" value="${facet_num}-${facet_name}:OUT=${out}"/>
2759 <dc:attribute name="artifact-id" value="${aid}"/> 2817 <dc:attribute name="artifact-id" value="${aid}"/>
2760 <dc:attribute name="out" value="flow_velocity"/> 2818 <dc:attribute name="out" value="flow_velocity"/>
2761 </dc:element> 2819 </dc:element>
2762 </dc:for-each> 2820 </dc:for-each>
2763 </dc:context> 2821 </dc:context>
2799 </dc:statement> 2857 </dc:statement>
2800 <dc:for-each> 2858 <dc:for-each>
2801 <dc:element name="${facet_name}"> 2859 <dc:element name="${facet_name}">
2802 <dc:attribute name="factory" value="minfo"/> 2860 <dc:attribute name="factory" value="minfo"/>
2803 <dc:attribute name="description" value="${facet_description}"/> 2861 <dc:attribute name="description" value="${facet_description}"/>
2804 <dc:attribute name="ids" value="${facet_num}-${facet_name}"/> 2862 <dc:attribute name="ids" value="${facet_num}-${facet_name}:OUT=${out}"/>
2805 <dc:attribute name="artifact-id" value="${aid}"/> 2863 <dc:attribute name="artifact-id" value="${aid}"/>
2806 <dc:attribute name="out" value="sedimentload_ls"/> 2864 <dc:attribute name="out" value="sedimentload_ls"/>
2807 </dc:element> 2865 </dc:element>
2808 </dc:for-each> 2866 </dc:for-each>
2809 </dc:context> 2867 </dc:context>
2849 </dc:statement> 2907 </dc:statement>
2850 <dc:for-each> 2908 <dc:for-each>
2851 <dc:element name="${facet_name}"> 2909 <dc:element name="${facet_name}">
2852 <dc:attribute name="factory" value="minfo"/> 2910 <dc:attribute name="factory" value="minfo"/>
2853 <dc:attribute name="description" value="${facet_description}"/> 2911 <dc:attribute name="description" value="${facet_description}"/>
2854 <dc:attribute name="ids" value="${facet_num}-${facet_name}"/> 2912 <dc:attribute name="ids" value="${facet_num}-${facet_name}:OUT=${out}"/>
2855 <dc:attribute name="artifact-id" value="${aid}"/> 2913 <dc:attribute name="artifact-id" value="${aid}"/>
2856 <dc:choose> 2914 <dc:choose>
2857 <dc:when test="dc:contains($o_name, 'bed_difference_year')"> 2915 <dc:when test="dc:contains($o_name, 'bed_difference_year')">
2858 <dc:attribute name="out" value="bed_difference_year"/> 2916 <dc:attribute name="out" value="bed_difference_year"/>
2859 </dc:when> 2917 </dc:when>
2903 </dc:statement> 2961 </dc:statement>
2904 <dc:for-each> 2962 <dc:for-each>
2905 <dc:element name="${facet_name}"> 2963 <dc:element name="${facet_name}">
2906 <dc:attribute name="factory" value="fixanalysis"/> 2964 <dc:attribute name="factory" value="fixanalysis"/>
2907 <dc:attribute name="description" value="${facet_description}"/> 2965 <dc:attribute name="description" value="${facet_description}"/>
2908 <dc:attribute name="ids" value="${facet_num}-${facet_name}"/> 2966 <dc:attribute name="ids" value="${facet_num}-${facet_name}:OUT=${out}"/>
2909 <dc:attribute name="artifact-id" value="${aid}"/> 2967 <dc:attribute name="artifact-id" value="${aid}"/>
2910 <dc:attribute name="out" value="longitudinal_section"/> 2968 <dc:attribute name="out" value="longitudinal_section"/>
2911 </dc:element> 2969 </dc:element>
2912 </dc:for-each> 2970 </dc:for-each>
2913 </dc:context> 2971 </dc:context>
2950 </dc:statement> 3008 </dc:statement>
2951 <dc:for-each> 3009 <dc:for-each>
2952 <dc:element name="${facet_name}"> 3010 <dc:element name="${facet_name}">
2953 <dc:attribute name="factory" value="winfo"/> 3011 <dc:attribute name="factory" value="winfo"/>
2954 <dc:attribute name="description" value="${facet_description}"/> 3012 <dc:attribute name="description" value="${facet_description}"/>
2955 <dc:attribute name="ids" value="${facet_num}-${facet_name}"/> 3013 <dc:attribute name="ids" value="${facet_num}-${facet_name}:OUT=${out}"/>
2956 <dc:attribute name="artifact-id" value="${aid}"/> 3014 <dc:attribute name="artifact-id" value="${aid}"/>
2957 <dc:attribute name="out" value="longitudinal_section"/> 3015 <dc:attribute name="out" value="longitudinal_section"/>
2958 </dc:element> 3016 </dc:element>
2959 </dc:for-each> 3017 </dc:for-each>
2960 </dc:context> 3018 </dc:context>
2965 </dc:context> 3023 </dc:context>
2966 </dc:for-each> 3024 </dc:for-each>
2967 </waterlevels-discharge> 3025 </waterlevels-discharge>
2968 </dc:macro> 3026 </dc:macro>
2969 3027
2970 <dc:if test="dc:contains($artifact-outs, 'longitudinal_section') or (dc:contains($artifact-outs, 'discharge_longitudinal_section') or (dc:contains($artifact-outs, 'w_differences')))"> 3028 <dc:iterate var="out" container="artifact-outs">
2971 <dc:call-macro name="longitudinal"/> 3029 <dc:choose>
2972 </dc:if> 3030 <dc:when test="$out = 'longitudinal_section'">
2973 <dc:if test="dc:contains($artifact-outs, 'fix_deltawt_curve')"> 3031 <dc:call-macro name="longitudinal"/>
2974 <dc:call-macro name="delta-wt"/> 3032 <dc:call-macro name="differences"/>
2975 </dc:if> 3033 <dc:call-macro name="officiallines_user"/>
2976 <dc:if test="dc:contains($artifact-outs, 'longitudinal_section') or (dc:contains($artifact-outs, 'w_differences') or (dc:contains($artifact-outs, 'discharge_longitudinal_section')))"> 3034 </dc:when>
2977 <dc:call-macro name="differences"/> 3035 <dc:when test="$out = 'discharge_longitudinal_section'">
2978 </dc:if> 3036 <dc:call-macro name="longitudinal"/>
2979 <dc:if test="dc:contains($artifact-outs, 'reference_curve')"> 3037 <dc:call-macro name="differences"/>
2980 <dc:call-macro name="reference-curves"/> 3038 </dc:when>
2981 </dc:if> 3039 <dc:when test="$out = 'w_differences'">
2982 <dc:if test="dc:contains($artifact-outs, 'computed_discharge_curve')"> 3040 <dc:call-macro name="longitudinal"/>
2983 <dc:call-macro name="computed-discharge-curve"/> 3041 <dc:call-macro name="differences"/>
2984 </dc:if> 3042 </dc:when>
2985 <dc:if test="dc:contains($artifact-outs, 'cross_section')"> 3043 <dc:when test="$out = 'fix_deltawt_curve'">
2986 <dc:call-macro name="waterlevels"/> 3044 <dc:call-macro name="delta-wt"/>
2987 </dc:if> 3045 </dc:when>
2988 <dc:if test="dc:contains($artifact-outs, 'fix_longitudinal_section_curve')"> 3046 <dc:when test="$out = 'reference_curve'">
2989 <dc:call-macro name="longitudinal-section"/> 3047 <dc:call-macro name="reference-curves"/>
2990 </dc:if> 3048 </dc:when>
2991 <dc:if test="dc:contains($artifact-outs, 'fix_derivate_curve')"> 3049 <dc:when test="$out = 'computed_discharge_curve'">
2992 <dc:call-macro name="fix-derivate-curve"/> 3050 <dc:call-macro name="computed-discharge-curve"/>
2993 </dc:if> 3051 </dc:when>
2994 <dc:if test="dc:contains($artifact-outs, 'fix_wq_curve')"> 3052 <dc:when test="$out = 'cross_section'">
2995 <dc:call-macro name="fix-wq-curve"/> 3053 <dc:call-macro name="waterlevels"/>
2996 </dc:if> 3054 </dc:when>
2997 <dc:if test="dc:contains($artifact-outs, 'duration_curve')"> 3055 <dc:when test="$out = 'fix_longitudinal_section_curve'">
2998 <dc:call-macro name="duration-curve"/> 3056 <dc:call-macro name="longitudinal-section"/>
2999 </dc:if> 3057 </dc:when>
3000 <dc:if test="dc:contains($artifact-outs, 'waterlevels') or (dc:contains($artifact-outs, 'fix_wq_curve'))"> 3058 <dc:when test="$out = 'fix_derivate_curve'">
3001 <dc:call-macro name="waterlevels-fix"/> 3059 <dc:call-macro name="fix-derivate-curve"/>
3002 </dc:if> 3060 </dc:when>
3003 <dc:if test="dc:contains($artifact-outs, 'floodmap') or dc:contains($artifact-outs, 'map')"> 3061 <dc:when test="$out = 'fix_wq_curve'">
3004 <dc:call-macro name="flood-map"/> 3062 <dc:call-macro name="fix-wq-curve"/>
3005 </dc:if> 3063 </dc:when>
3006 <dc:if test="dc:contains($artifact-outs, 'bedheight_middle')"> 3064 <dc:when test="$out = 'duration_curve'">
3007 <dc:call-macro name="waterlevels-discharge"/> 3065 <dc:call-macro name="duration-curve"/>
3008 <dc:call-macro name="waterlevels-fix"/> 3066 </dc:when>
3009 </dc:if> 3067 <dc:when test="$out = 'waterlevels'">
3010 <dc:if test="dc:contains($artifact-outs, 'floodmap-hws')"> 3068 <!-- base data -->
3011 <dc:call-macro name="floodmap-hws-user"/> 3069 <dc:call-macro name="basedata_0"/>
3012 </dc:if> 3070 <!-- extra-longitudinal-sections -->
3013 <dc:if test="dc:contains($artifact-outs, 'flow_velocity')"> 3071 <dc:call-macro name="basedata_1_additionals"/>
3014 <dc:call-macro name="bedquality-bed"/> 3072 <!-- fixations -->
3015 <dc:call-macro name="bedquality-load"/> 3073 <dc:call-macro name="basedata_2_fixations"/>
3016 </dc:if> 3074 <!-- flood water marks-->
3017 <dc:if test="dc:contains($artifact-outs, 'bed_longitudinal_section')"> 3075 <dc:call-macro name="basedata_4_heightmarks-points"/>
3018 <dc:call-macro name="bedquality-bed"/> 3076 <!-- flood protection -->
3019 <dc:call-macro name="bedquality-load"/> 3077 <dc:call-macro name="basedata_5_flood-protections"/>
3020 <dc:call-macro name="bedquality-density"/> 3078 <dc:call-macro name="waterlevels-fix"/>
3021 <dc:call-macro name="bedquality-porosity"/> 3079 </dc:when>
3022 </dc:if> 3080 <dc:when test="$out = 'fix_wq_curve'">
3023 <dc:if test="dc:contains($artifact-outs, 'sedimentload_ls')"> 3081 <dc:call-macro name="waterlevels-fix"/>
3024 <dc:call-macro name="differences"/> 3082 </dc:when>
3025 <dc:call-macro name="bedheight-differences"/> 3083 <dc:when test="$out = 'floodmap'">
3026 <dc:call-macro name="flow-velocity"/> 3084 <dc:call-macro name="flood-map"/>
3027 <dc:call-macro name="sediment-load"/> 3085 </dc:when>
3028 </dc:if> 3086 <dc:when test="$out = 'map'">
3029 <dc:if test="dc:contains($artifact-outs, 'bed_difference_year') or 3087 <dc:call-macro name="flood-map"/>
3030 dc:contains($artifact-outs, 'bed_difference_epoch')"> 3088 </dc:when>
3031 <dc:call-macro name="waterlevels-discharge"/> 3089 <dc:when test="$out = 'bedheight_middle'">
3032 <dc:call-macro name="bedheight-differences"/> 3090 <dc:call-macro name="waterlevels-discharge"/>
3033 <dc:call-macro name="differences"/> 3091 <dc:call-macro name="waterlevels-fix"/>
3034 <dc:call-macro name="waterlevels-fix"/> 3092 </dc:when>
3035 <dc:call-macro name="delta-wt-ls"/> 3093 <dc:when test="$out = 'floodmap-hws'">
3036 </dc:if> 3094 <dc:call-macro name="floodmap-hws-user"/>
3095 </dc:when>
3096 <dc:when test="$out = 'flow_velocity'">
3097 <dc:call-macro name="bedquality-bed"/>
3098 <dc:call-macro name="bedquality-load"/>
3099 </dc:when>
3100 <dc:when test="$out = 'bed_longitudinal_section'">
3101 <dc:call-macro name="bedquality-bed"/>
3102 <dc:call-macro name="bedquality-load"/>
3103 <dc:call-macro name="bedquality-density"/>
3104 <dc:call-macro name="bedquality-porosity"/>
3105 </dc:when>
3106 <dc:when test="$out = 'sedimentload_ls'">
3107 <dc:call-macro name="differences"/>
3108 <dc:call-macro name="bedheight-differences"/>
3109 <dc:call-macro name="flow-velocity"/>
3110 <dc:call-macro name="sediment-load"/>
3111 </dc:when>
3112 <dc:when test="$out = 'bed_difference_year'">
3113 <dc:call-macro name="waterlevels-discharge"/>
3114 <dc:call-macro name="bedheight-differences"/>
3115 <dc:call-macro name="differences"/>
3116 <dc:call-macro name="waterlevels-fix"/>
3117 <dc:call-macro name="delta-wt-ls"/>
3118 </dc:when>
3119 <dc:when test="$out = 'bed_difference_epoch'">
3120 <dc:call-macro name="waterlevels-discharge"/>
3121 <dc:call-macro name="bedheight-differences"/>
3122 <dc:call-macro name="differences"/>
3123 <dc:call-macro name="waterlevels-fix"/>
3124 <dc:call-macro name="delta-wt-ls"/>
3125 </dc:when>
3126 </dc:choose>
3127 </dc:iterate>
3037 </dc:context> 3128 </dc:context>
3038 </dc:call-macro> 3129 </dc:call-macro>
3039 3130
3040 </old_calculations> 3131 </old_calculations>
3041 3132

http://dive4elements.wald.intevation.org