comparison artifacts/doc/conf/meta-data.xml @ 6124:06cb01e8aef3

Add target_out attribute to elements with a factory This might be reverted later again but unblocks the datacage for now so that modifications can be done without having conflicts later.
author Andre Heinecke <aheinecke@intevation.de>
date Wed, 29 May 2013 09:22:11 +0200
parents 6815714c1f97
children 3f8f212253a0
comparison
equal deleted inserted replaced
6123:036b02fc0c81 6124:06cb01e8aef3
395 <dc:if test="dc:has-result()"> 395 <dc:if test="dc:has-result()">
396 <differences> 396 <differences>
397 <dc:for-each> 397 <dc:for-each>
398 <w_differences 398 <w_differences
399 description="{$facet_description}" 399 description="{$facet_description}"
400 factory="winfo" 400 factory="winfo" target_out="{$out}"
401 artifact-id="{$aid}" 401 artifact-id="{$aid}"
402 ids="{$aid}" 402 ids="{$aid}"
403 out="w_differences"/> 403 out="w_differences"/>
404 </dc:for-each> 404 </dc:for-each>
405 </differences> 405 </differences>
413 <reference_curves> 413 <reference_curves>
414 <dc:for-each> 414 <dc:for-each>
415 <dc:element name="${facet_name}"> 415 <dc:element name="${facet_name}">
416 <dc:attribute name="description" value="${facet_description}"/> 416 <dc:attribute name="description" value="${facet_description}"/>
417 <dc:attribute name="factory" value="winfo"/> 417 <dc:attribute name="factory" value="winfo"/>
418 <dc:attribute name="target_out" value="${out}"/>
418 <dc:attribute name="artifact-id" value="${a_id}"/> 419 <dc:attribute name="artifact-id" value="${a_id}"/>
419 <dc:attribute name="ids" value="${a_id}"/> 420 <dc:attribute name="ids" value="${a_id}"/>
420 <dc:attribute name="out" value="reference_curve"/> 421 <dc:attribute name="out" value="reference_curve"/>
421 </dc:element> 422 </dc:element>
422 </dc:for-each> 423 </dc:for-each>
431 <computed_discharge_curves> 432 <computed_discharge_curves>
432 <dc:for-each> 433 <dc:for-each>
433 <dc:element name="${facet_name}"> 434 <dc:element name="${facet_name}">
434 <dc:attribute name="description" value="${facet_description}"/> 435 <dc:attribute name="description" value="${facet_description}"/>
435 <dc:attribute name="factory" value="winfo"/> 436 <dc:attribute name="factory" value="winfo"/>
437 <dc:attribute name="target_out" value="${out}"/>
436 <dc:attribute name="artifact-id" value="${a_id}"/> 438 <dc:attribute name="artifact-id" value="${a_id}"/>
437 <dc:attribute name="ids" value="${a_id}"/> 439 <dc:attribute name="ids" value="${a_id}"/>
438 <dc:attribute name="out" value="computed_discharge_curve"/> 440 <dc:attribute name="out" value="computed_discharge_curve"/>
439 </dc:element> 441 </dc:element>
440 </dc:for-each> 442 </dc:for-each>
449 <floodmap> 451 <floodmap>
450 <dc:for-each> 452 <dc:for-each>
451 <dc:element name="${facet_name}"> 453 <dc:element name="${facet_name}">
452 <dc:attribute name="description" value="${facet_description}"/> 454 <dc:attribute name="description" value="${facet_description}"/>
453 <dc:attribute name="factory" value="winfo"/> 455 <dc:attribute name="factory" value="winfo"/>
456 <dc:attribute name="target_out" value="${out}"/>
454 <dc:attribute name="artifact-id" value="${a_id}"/> 457 <dc:attribute name="artifact-id" value="${a_id}"/>
455 <dc:attribute name="ids" value="${a_id}"/> 458 <dc:attribute name="ids" value="${a_id}"/>
456 <dc:attribute name="out" value="floodmap"/> 459 <dc:attribute name="out" value="floodmap"/>
457 </dc:element> 460 </dc:element>
458 </dc:for-each> 461 </dc:for-each>
471 <dc:for-each> 474 <dc:for-each>
472 <dc:element name="${facet_name}"> 475 <dc:element name="${facet_name}">
473 <dc:attribute name="description" value="${facet_description}"/> 476 <dc:attribute name="description" value="${facet_description}"/>
474 <dc:attribute name="ids" value="${facet_num}"/> 477 <dc:attribute name="ids" value="${facet_num}"/>
475 <dc:attribute name="factory" value="winfo"/> 478 <dc:attribute name="factory" value="winfo"/>
479 <dc:attribute name="target_out" value="${out}"/>
476 <dc:attribute name="artifact-id" value="${a_gid}"/> 480 <dc:attribute name="artifact-id" value="${a_gid}"/>
477 <dc:attribute name="out" value="cross_section"/> 481 <dc:attribute name="out" value="cross_section"/>
478 </dc:element> 482 </dc:element>
479 </dc:for-each> 483 </dc:for-each>
480 </longitudinal_section_columns> 484 </longitudinal_section_columns>
494 <dc:for-each> 498 <dc:for-each>
495 <dc:element name="${facet_name}"> 499 <dc:element name="${facet_name}">
496 <dc:attribute name="description" value="${facet_description}"/> 500 <dc:attribute name="description" value="${facet_description}"/>
497 <dc:attribute name="ids" value="${facet_num}"/> 501 <dc:attribute name="ids" value="${facet_num}"/>
498 <dc:attribute name="factory" value="winfo"/> 502 <dc:attribute name="factory" value="winfo"/>
503 <dc:attribute name="target_out" value="${out}"/>
499 <dc:attribute name="artifact-id" value="${a_gid}"/> 504 <dc:attribute name="artifact-id" value="${a_gid}"/>
500 <dc:attribute name="out" value="longitudinal_section"/> 505 <dc:attribute name="out" value="longitudinal_section"/>
501 </dc:element> 506 </dc:element>
502 </dc:for-each> 507 </dc:for-each>
503 </longitudinal_section_columns> 508 </longitudinal_section_columns>
520 <dc:for-each> 525 <dc:for-each>
521 <dc:element name="${facet_name}"> 526 <dc:element name="${facet_name}">
522 <dc:attribute name="description" value="${facet_description}"/> 527 <dc:attribute name="description" value="${facet_description}"/>
523 <dc:attribute name="ids" value="${facet_num}"/> 528 <dc:attribute name="ids" value="${facet_num}"/>
524 <dc:attribute name="factory" value="fixanalysis"/> 529 <dc:attribute name="factory" value="fixanalysis"/>
530 <dc:attribute name="target_out" value="${out}"/>
525 <dc:attribute name="artifact-id" value="${a_gid}"/> 531 <dc:attribute name="artifact-id" value="${a_gid}"/>
526 <dc:attribute name="out" value="fix_longitudinal_section_curve"/> 532 <dc:attribute name="out" value="fix_longitudinal_section_curve"/>
527 </dc:element> 533 </dc:element>
528 </dc:for-each> 534 </dc:for-each>
529 </waterlevels> 535 </waterlevels>
547 <dc:for-each> 553 <dc:for-each>
548 <dc:element name="${facet_name}"> 554 <dc:element name="${facet_name}">
549 <dc:attribute name="description" value="${facet_description}"/> 555 <dc:attribute name="description" value="${facet_description}"/>
550 <dc:attribute name="ids" value="${facet_num}"/> 556 <dc:attribute name="ids" value="${facet_num}"/>
551 <dc:attribute name="factory" value="fixanalysis"/> 557 <dc:attribute name="factory" value="fixanalysis"/>
558 <dc:attribute name="target_out" value="${out}"/>
552 <dc:attribute name="artifact-id" value="${a_gid}"/> 559 <dc:attribute name="artifact-id" value="${a_gid}"/>
553 <dc:attribute name="out" value="fix_deltawt_curve"/> 560 <dc:attribute name="out" value="fix_deltawt_curve"/>
554 </dc:element> 561 </dc:element>
555 </dc:for-each> 562 </dc:for-each>
556 </waterlevels> 563 </waterlevels>
571 <dc:for-each> 578 <dc:for-each>
572 <dc:element name="${facet_name}"> 579 <dc:element name="${facet_name}">
573 <dc:attribute name="description" value="${facet_description}"/> 580 <dc:attribute name="description" value="${facet_description}"/>
574 <dc:attribute name="ids" value="${facet_num}"/> 581 <dc:attribute name="ids" value="${facet_num}"/>
575 <dc:attribute name="factory" value="fixanalysis"/> 582 <dc:attribute name="factory" value="fixanalysis"/>
583 <dc:attribute name="target_out" value="${out}"/>
576 <dc:attribute name="artifact-id" value="${a_gid}"/> 584 <dc:attribute name="artifact-id" value="${a_gid}"/>
577 <dc:attribute name="out" value="fix_deltawt_curve"/> 585 <dc:attribute name="out" value="fix_deltawt_curve"/>
578 </dc:element> 586 </dc:element>
579 </dc:for-each> 587 </dc:for-each>
580 </waterlevels> 588 </waterlevels>
593 <dc:for-each> 601 <dc:for-each>
594 <dc:element name="${facet_name}"> 602 <dc:element name="${facet_name}">
595 <dc:attribute name="description" value="${facet_description}"/> 603 <dc:attribute name="description" value="${facet_description}"/>
596 <dc:attribute name="ids" value="${facet_num}"/> 604 <dc:attribute name="ids" value="${facet_num}"/>
597 <dc:attribute name="factory" value="fixanalysis"/> 605 <dc:attribute name="factory" value="fixanalysis"/>
606 <dc:attribute name="target_out" value="${out}"/>
598 <dc:attribute name="artifact-id" value="${a_gid}"/> 607 <dc:attribute name="artifact-id" value="${a_gid}"/>
599 <dc:attribute name="out" value="fix_derivate_curve"/> 608 <dc:attribute name="out" value="fix_derivate_curve"/>
600 </dc:element> 609 </dc:element>
601 </dc:for-each> 610 </dc:for-each>
602 </waterlevels> 611 </waterlevels>
619 <dc:for-each> 628 <dc:for-each>
620 <dc:element name="${facet_name}"> 629 <dc:element name="${facet_name}">
621 <dc:attribute name="description" value="${facet_description}"/> 630 <dc:attribute name="description" value="${facet_description}"/>
622 <dc:attribute name="ids" value="${facet_num}"/> 631 <dc:attribute name="ids" value="${facet_num}"/>
623 <dc:attribute name="factory" value="fixanalysis"/> 632 <dc:attribute name="factory" value="fixanalysis"/>
633 <dc:attribute name="target_out" value="${out}"/>
624 <dc:attribute name="artifact-id" value="${a_gid}"/> 634 <dc:attribute name="artifact-id" value="${a_gid}"/>
625 <dc:attribute name="out" value="fix_wq_curve"/> 635 <dc:attribute name="out" value="fix_wq_curve"/>
626 </dc:element> 636 </dc:element>
627 </dc:for-each> 637 </dc:for-each>
628 </waterlevels> 638 </waterlevels>
638 <computed_discharge_curves> 648 <computed_discharge_curves>
639 <dc:for-each> 649 <dc:for-each>
640 <dc:element name="${facet_name}"> 650 <dc:element name="${facet_name}">
641 <dc:attribute name="description" value="${facet_description}"/> 651 <dc:attribute name="description" value="${facet_description}"/>
642 <dc:attribute name="factory" value="winfo"/> 652 <dc:attribute name="factory" value="winfo"/>
653 <dc:attribute name="target_out" value="${out}"/>
643 <dc:attribute name="artifact-id" value="${a_id}"/> 654 <dc:attribute name="artifact-id" value="${a_id}"/>
644 <dc:attribute name="ids" value="${a_id}"/> 655 <dc:attribute name="ids" value="${a_id}"/>
645 <dc:attribute name="out" value="duration_curve"/> 656 <dc:attribute name="out" value="duration_curve"/>
646 </dc:element> 657 </dc:element>
647 </dc:for-each> 658 </dc:for-each>
660 <dc:for-each> 671 <dc:for-each>
661 <dc:element name="${facet_name}"> 672 <dc:element name="${facet_name}">
662 <dc:attribute name="description" value="${facet_description}"/> 673 <dc:attribute name="description" value="${facet_description}"/>
663 <dc:attribute name="ids" value="${facet_num}"/> 674 <dc:attribute name="ids" value="${facet_num}"/>
664 <dc:attribute name="factory" value="winfo"/> 675 <dc:attribute name="factory" value="winfo"/>
676 <dc:attribute name="target_out" value="${out}"/>
665 <dc:attribute name="artifact-id" value="${a_gid}"/> 677 <dc:attribute name="artifact-id" value="${a_gid}"/>
666 <dc:attribute name="out" value="longitudinal_section"/> 678 <dc:attribute name="out" value="longitudinal_section"/>
667 </dc:element> 679 </dc:element>
668 </dc:for-each> 680 </dc:for-each>
669 </waterlevels> 681 </waterlevels>
680 <dc:for-each> 692 <dc:for-each>
681 <dc:element name="${facet_name}"> 693 <dc:element name="${facet_name}">
682 <dc:attribute name="description" value="${facet_description}"/> 694 <dc:attribute name="description" value="${facet_description}"/>
683 <dc:attribute name="ids" value="${facet_num}"/> 695 <dc:attribute name="ids" value="${facet_num}"/>
684 <dc:attribute name="factory" value="winfo"/> 696 <dc:attribute name="factory" value="winfo"/>
697 <dc:attribute name="target_out" value="${out}"/>
685 <dc:attribute name="artifact-id" value="${a_gid}"/> 698 <dc:attribute name="artifact-id" value="${a_gid}"/>
686 <dc:attribute name="out" value="floodmap"/> 699 <dc:attribute name="out" value="floodmap"/>
687 </dc:element> 700 </dc:element>
688 </dc:for-each> 701 </dc:for-each>
689 </own-hws> 702 </own-hws>
699 <dc:group expr="concat($river, ' ', $a_creation, ' ', $collection_name)"> 712 <dc:group expr="concat($river, ' ', $a_creation, ' ', $collection_name)">
700 <quality-bed description="{dc:group-key()}"> 713 <quality-bed description="{dc:group-key()}">
701 <dc:for-each> 714 <dc:for-each>
702 <dc:element name="${facet_name}"> 715 <dc:element name="${facet_name}">
703 <dc:attribute name="factory" value="minfo"/> 716 <dc:attribute name="factory" value="minfo"/>
717 <dc:attribute name="target_out" value="${out}"/>
704 <dc:attribute name="description" value="${facet_description}"/> 718 <dc:attribute name="description" value="${facet_description}"/>
705 <dc:attribute name="ids" value="${facet_num}-${facet_name}"/> 719 <dc:attribute name="ids" value="${facet_num}-${facet_name}"/>
706 <dc:attribute name="artifact-id" value="${a_id}"/> 720 <dc:attribute name="artifact-id" value="${a_id}"/>
707 <dc:attribute name="out" value="bed_longitudinal_section"/> 721 <dc:attribute name="out" value="bed_longitudinal_section"/>
708 </dc:element> 722 </dc:element>
722 <dc:group expr="concat($river, ' ', $a_creation, ' ', $collection_name)"> 736 <dc:group expr="concat($river, ' ', $a_creation, ' ', $collection_name)">
723 <quality-load description="{dc:group-key()}"> 737 <quality-load description="{dc:group-key()}">
724 <dc:for-each> 738 <dc:for-each>
725 <dc:element name="${facet_name}"> 739 <dc:element name="${facet_name}">
726 <dc:attribute name="factory" value="minfo"/> 740 <dc:attribute name="factory" value="minfo"/>
741 <dc:attribute name="target_out" value="${out}"/>
727 <dc:attribute name="description" value="${facet_description}"/> 742 <dc:attribute name="description" value="${facet_description}"/>
728 <dc:attribute name="ids" value="${facet_num}-${facet_name}"/> 743 <dc:attribute name="ids" value="${facet_num}-${facet_name}"/>
729 <dc:attribute name="artifact-id" value="${a_id}"/> 744 <dc:attribute name="artifact-id" value="${a_id}"/>
730 <dc:attribute name="out" value="bed_longitudinal_section"/> 745 <dc:attribute name="out" value="bed_longitudinal_section"/>
731 </dc:element> 746 </dc:element>
746 <dc:group expr="concat($river, ' ', $a_creation, ' ', $collection_name)"> 761 <dc:group expr="concat($river, ' ', $a_creation, ' ', $collection_name)">
747 <density description="{dc:group-key()}"> 762 <density description="{dc:group-key()}">
748 <dc:for-each> 763 <dc:for-each>
749 <dc:element name="${facet_name}"> 764 <dc:element name="${facet_name}">
750 <dc:attribute name="factory" value="minfo"/> 765 <dc:attribute name="factory" value="minfo"/>
766 <dc:attribute name="target_out" value="${out}"/>
751 <dc:attribute name="description" value="${facet_description}"/> 767 <dc:attribute name="description" value="${facet_description}"/>
752 <dc:attribute name="ids" value="${facet_num}-${facet_name}"/> 768 <dc:attribute name="ids" value="${facet_num}-${facet_name}"/>
753 <dc:attribute name="artifact-id" value="${a_id}"/> 769 <dc:attribute name="artifact-id" value="${a_id}"/>
754 <dc:attribute name="out" value="bed_longitudinal_section"/> 770 <dc:attribute name="out" value="bed_longitudinal_section"/>
755 </dc:element> 771 </dc:element>
770 <dc:group expr="concat($river, ' ', $a_creation, ' ', $collection_name)"> 786 <dc:group expr="concat($river, ' ', $a_creation, ' ', $collection_name)">
771 <porosity description="{dc:group-key()}"> 787 <porosity description="{dc:group-key()}">
772 <dc:for-each> 788 <dc:for-each>
773 <dc:element name="${facet_name}"> 789 <dc:element name="${facet_name}">
774 <dc:attribute name="factory" value="minfo"/> 790 <dc:attribute name="factory" value="minfo"/>
791 <dc:attribute name="target_out" value="${out}"/>
775 <dc:attribute name="description" value="${facet_description}"/> 792 <dc:attribute name="description" value="${facet_description}"/>
776 <dc:attribute name="ids" value="${facet_num}-${facet_name}"/> 793 <dc:attribute name="ids" value="${facet_num}-${facet_name}"/>
777 <dc:attribute name="artifact-id" value="${a_id}"/> 794 <dc:attribute name="artifact-id" value="${a_id}"/>
778 <dc:attribute name="out" value="bed_longitudinal_section"/> 795 <dc:attribute name="out" value="bed_longitudinal_section"/>
779 </dc:element> 796 </dc:element>
796 <dc:group expr="concat($river, ' ', $a_creation, ' ', $collection_name)"> 813 <dc:group expr="concat($river, ' ', $a_creation, ' ', $collection_name)">
797 <flow description="{dc:group-key()}"> 814 <flow description="{dc:group-key()}">
798 <dc:for-each> 815 <dc:for-each>
799 <dc:element name="${facet_name}"> 816 <dc:element name="${facet_name}">
800 <dc:attribute name="factory" value="minfo"/> 817 <dc:attribute name="factory" value="minfo"/>
818 <dc:attribute name="target_out" value="${out}"/>
801 <dc:attribute name="description" value="${facet_description}"/> 819 <dc:attribute name="description" value="${facet_description}"/>
802 <dc:attribute name="ids" value="${facet_num}-${facet_name}"/> 820 <dc:attribute name="ids" value="${facet_num}-${facet_name}"/>
803 <dc:attribute name="artifact-id" value="${a_id}"/> 821 <dc:attribute name="artifact-id" value="${a_id}"/>
804 <dc:attribute name="out" value="flow_velocity"/> 822 <dc:attribute name="out" value="flow_velocity"/>
805 </dc:element> 823 </dc:element>
818 <dc:group expr="concat($river, ' ', $a_creation, ' ', $collection_name)"> 836 <dc:group expr="concat($river, ' ', $a_creation, ' ', $collection_name)">
819 <load description="{dc:group-key()}"> 837 <load description="{dc:group-key()}">
820 <dc:for-each> 838 <dc:for-each>
821 <dc:element name="${facet_name}"> 839 <dc:element name="${facet_name}">
822 <dc:attribute name="factory" value="minfo"/> 840 <dc:attribute name="factory" value="minfo"/>
841 <dc:attribute name="target_out" value="${out}"/>
823 <dc:attribute name="description" value="${facet_description}"/> 842 <dc:attribute name="description" value="${facet_description}"/>
824 <dc:attribute name="ids" value="${facet_num}-${facet_name}"/> 843 <dc:attribute name="ids" value="${facet_num}-${facet_name}"/>
825 <dc:attribute name="artifact-id" value="${a_id}"/> 844 <dc:attribute name="artifact-id" value="${a_id}"/>
826 <dc:attribute name="out" value="sedimentload_ls"/> 845 <dc:attribute name="out" value="sedimentload_ls"/>
827 </dc:element> 846 </dc:element>
841 <dc:group expr="concat($river, ' ', $a_creation, ' ', $collection_name)"> 860 <dc:group expr="concat($river, ' ', $a_creation, ' ', $collection_name)">
842 <difference description="{dc:group-key()}"> 861 <difference description="{dc:group-key()}">
843 <dc:for-each> 862 <dc:for-each>
844 <dc:element name="${facet_name}"> 863 <dc:element name="${facet_name}">
845 <dc:attribute name="factory" value="minfo"/> 864 <dc:attribute name="factory" value="minfo"/>
865 <dc:attribute name="target_out" value="${out}"/>
846 <dc:attribute name="description" value="${facet_description}"/> 866 <dc:attribute name="description" value="${facet_description}"/>
847 <dc:attribute name="ids" value="${facet_num}-${facet_name}"/> 867 <dc:attribute name="ids" value="${facet_num}-${facet_name}"/>
848 <dc:attribute name="artifact-id" value="${a_id}"/> 868 <dc:attribute name="artifact-id" value="${a_id}"/>
849 <dc:attribute name="out" value="${out}"/> 869 <dc:attribute name="out" value="${out}"/>
850 </dc:element> 870 </dc:element>
863 <dc:group expr="concat($oid, ' ', $river, ' ', $a_id, ' ', $a_creation, ' ', $collection_name)"> 883 <dc:group expr="concat($oid, ' ', $river, ' ', $a_id, ' ', $a_creation, ' ', $collection_name)">
864 <discharge description="{dc:group-key()}"> 884 <discharge description="{dc:group-key()}">
865 <dc:for-each> 885 <dc:for-each>
866 <dc:element name="${facet_name}"> 886 <dc:element name="${facet_name}">
867 <dc:attribute name="factory" value="winfo"/> 887 <dc:attribute name="factory" value="winfo"/>
888 <dc:attribute name="target_out" value="${out}"/>
868 <dc:attribute name="description" value="${facet_description}"/> 889 <dc:attribute name="description" value="${facet_description}"/>
869 <dc:attribute name="ids" value="${facet_num}-${facet_name}"/> 890 <dc:attribute name="ids" value="${facet_num}-${facet_name}"/>
870 <dc:attribute name="artifact-id" value="${a_id}"/> 891 <dc:attribute name="artifact-id" value="${a_id}"/>
871 <dc:attribute name="out" value="longitudinal_section"/> 892 <dc:attribute name="out" value="longitudinal_section"/>
872 </dc:element> 893 </dc:element>
878 </dc:filter> 899 </dc:filter>
879 </dc:macro> 900 </dc:macro>
880 <!-- Macros to load system data --> 901 <!-- Macros to load system data -->
881 902
882 <dc:macro name="annotations"> 903 <dc:macro name="annotations">
883 <annotation factory="annotations" ids="{$river_id}"/> 904 <annotation factory="annotations" ids="{$river_id}" target_out="{$out}" />
884 </dc:macro> 905 </dc:macro>
885 906
886 <dc:macro name="mainvalues"> 907 <dc:macro name="mainvalues">
887 <wmainvalue factory="mainvalue" ids="{$river_id}:w"/> 908 <wmainvalue factory="mainvalue" ids="{$river_id}:w" target_out="{$out}" />
888 <qmainvalue factory="mainvalue" ids="{$river_id}:q"/> 909 <qmainvalue factory="mainvalue" ids="{$river_id}:q" target_out="{$out}" />
889 </dc:macro> 910 </dc:macro>
890 911
891 <dc:macro name="cross_sections"> 912 <dc:macro name="cross_sections">
892 <cross_sections id="flood-protections-{$river_id}"> 913 <cross_sections id="flood-protections-{$river_id}">
893 <dc:context connection="system"> 914 <dc:context connection="system">
901 AND csl.km BETWEEN ${fromkm} AND ${tokm} 922 AND csl.km BETWEEN ${fromkm} AND ${tokm}
902 </dc:statement> 923 </dc:statement>
903 <dc:for-each> 924 <dc:for-each>
904 <cross_section name="{$prot_description}" 925 <cross_section name="{$prot_description}"
905 ids="{$prot_id}" 926 ids="{$prot_id}"
906 factory="crosssections"/> 927 factory="crosssections" target_out="{$out}" />
907 </dc:for-each> 928 </dc:for-each>
908 </dc:context> 929 </dc:context>
909 </cross_sections> 930 </cross_sections>
910 </dc:macro> 931 </dc:macro>
911 932
920 JOIN hyk_entries he ON he.hyk_id = h.id 941 JOIN hyk_entries he ON he.hyk_id = h.id
921 WHERE river_id = ${river_id} 942 WHERE river_id = ${river_id}
922 AND he.km BETWEEN ${fromkm} AND ${tokm} 943 AND he.km BETWEEN ${fromkm} AND ${tokm}
923 </dc:statement> 944 </dc:statement>
924 <dc:for-each> 945 <dc:for-each>
925 <hyk name="{$hyk_description}" 946 <hyk name="{$hyk_description}"
926 ids="{$hyk_id}" 947 ids="{$hyk_id}"
927 factory="hyk"/> 948 factory="hyk" target_out="{$out}" />
928 </dc:for-each> 949 </dc:for-each>
929 </dc:context> 950 </dc:context>
930 </hyks> 951 </hyks>
931 </dc:macro> 952 </dc:macro>
932 953
948 969
949 <dc:macro name="basedata_2_fixations_wqkms"> 970 <dc:macro name="basedata_2_fixations_wqkms">
950 <dc:call-macro name="fixings-macro"> 971 <dc:call-macro name="fixings-macro">
951 <column name="{$wst_column_name}" 972 <column name="{$wst_column_name}"
952 ids="fixations-wstv-{$wst_column_position}-{$wst_id}" 973 ids="fixations-wstv-{$wst_column_position}-{$wst_id}"
953 factory="wqinterpol" 974 factory="wqinterpol" target_out="{$out}"
954 info="{$info} [km {$deffrom} - {$defto}]"/> 975 info="{$info} [km {$deffrom} - {$defto}]"/>
955 </dc:call-macro> 976 </dc:call-macro>
956 </dc:macro> 977 </dc:macro>
957 978
958 <dc:macro name="basedata_2_fixations"> 979 <dc:macro name="basedata_2_fixations">
959 <dc:call-macro name="fixings-macro"> 980 <dc:call-macro name="fixings-macro">
960 <column name="{$wst_column_name}" 981 <column name="{$wst_column_name}"
961 ids="fixations-wstv-{$wst_column_position}-{$wst_id}" 982 ids="fixations-wstv-{$wst_column_position}-{$wst_id}"
962 factory="staticwqkms" 983 factory="staticwqkms" target_out="{$out}"
963 info="{$info} [km {$deffrom} - {$defto}]"/> 984 info="{$info} [km {$deffrom} - {$defto}]"/>
964 </dc:call-macro> 985 </dc:call-macro>
965 </dc:macro> 986 </dc:macro>
966 987
967 <dc:macro name="basedata_3_officials"> 988 <dc:macro name="basedata_3_officials">
971 <dc:group expr="$wst_description"> 992 <dc:group expr="$wst_description">
972 <official name="{dc:group-key()}"> 993 <official name="{dc:group-key()}">
973 <dc:for-each> 994 <dc:for-each>
974 <column name="{$wst_column_name}" 995 <column name="{$wst_column_name}"
975 ids="additionals-wstv-{$wst_column_position}-{$wst_id}" 996 ids="additionals-wstv-{$wst_column_position}-{$wst_id}"
976 factory="staticwqkms" 997 factory="staticwqkms" target_out="{$out}"
977 info="{$info} [km {$deffrom} - {$defto}]"/> 998 info="{$info} [km {$deffrom} - {$defto}]"/>
978 </dc:for-each> 999 </dc:for-each>
979 </official> 1000 </official>
980 </dc:group> 1001 </dc:group>
981 </officiallines> 1002 </officiallines>
990 <dc:group expr="dc:replace($wst_description, 'HW-Marken/', '')"> 1011 <dc:group expr="dc:replace($wst_description, 'HW-Marken/', '')">
991 <heightmark name="{dc:group-key()}"> 1012 <heightmark name="{dc:group-key()}">
992 <dc:for-each> 1013 <dc:for-each>
993 <column name="{$wst_column_name}" 1014 <column name="{$wst_column_name}"
994 ids="heightmarks_points-wstv-{$wst_column_position}-{$wst_id}" 1015 ids="heightmarks_points-wstv-{$wst_column_position}-{$wst_id}"
995 factory="staticwkms" 1016 factory="staticwkms" target_out="{$out}"
996 info="{$info} [km {$deffrom} - {$defto}]"/> 1017 info="{$info} [km {$deffrom} - {$defto}]"/>
997 </dc:for-each> 1018 </dc:for-each>
998 </heightmark> 1019 </heightmark>
999 </dc:group> 1020 </dc:group>
1000 </heightmarks> 1021 </heightmarks>
1009 <dc:group expr="dc:replace($wst_description, 'HW-Marken/', '')"> 1030 <dc:group expr="dc:replace($wst_description, 'HW-Marken/', '')">
1010 <relativepoint name="{dc:group-key()}"> 1031 <relativepoint name="{dc:group-key()}">
1011 <dc:for-each> 1032 <dc:for-each>
1012 <column name="{$wst_column_name}" 1033 <column name="{$wst_column_name}"
1013 ids="heightmarks_points-wstv-{$wst_column_position}-{$wst_id}" 1034 ids="heightmarks_points-wstv-{$wst_column_position}-{$wst_id}"
1014 factory="staticwkms" 1035 factory="staticwkms" target_out="{$out}"
1015 info="{$info} [km {$deffrom} - {$defto}]"/> 1036 info="{$info} [km {$deffrom} - {$defto}]"/>
1016 </dc:for-each> 1037 </dc:for-each>
1017 </relativepoint> 1038 </relativepoint>
1018 </dc:group> 1039 </dc:group>
1019 </heightmarks> 1040 </heightmarks>
1038 <dc:group expr="dc:replace($wst_description, 'HW-Schutzanlagen/', '')"> 1059 <dc:group expr="dc:replace($wst_description, 'HW-Schutzanlagen/', '')">
1039 <flood_protection name="{dc:group-key()}"> 1060 <flood_protection name="{dc:group-key()}">
1040 <dc:for-each> 1061 <dc:for-each>
1041 <column name="{$wst_column_name}" 1062 <column name="{$wst_column_name}"
1042 ids="flood_protection-wstv-{$wst_column_position}-{$wst_id}" 1063 ids="flood_protection-wstv-{$wst_column_position}-{$wst_id}"
1043 factory="staticwkms" 1064 factory="staticwkms" target_out="{$out}"
1044 info="{$info} [km {$deffrom} - {$defto}]"/> 1065 info="{$info} [km {$deffrom} - {$defto}]"/>
1045 </dc:for-each> 1066 </dc:for-each>
1046 </flood_protection> 1067 </flood_protection>
1047 </dc:group> 1068 </dc:group>
1048 </flood_protections> 1069 </flood_protections>
1051 </dc:macro> 1072 </dc:macro>
1052 1073
1053 <dc:macro name="annotations_per_type"> 1074 <dc:macro name="annotations_per_type">
1054 <annotations> 1075 <annotations>
1055 <dc:context> 1076 <dc:context>
1056 <all_annotations factory="annotations" ids="{$river_id}"/> 1077 <all_annotations factory="annotations" ids="{$river_id}" target_out="{$out}" />
1057 <dc:statement> 1078 <dc:statement>
1058 SELECT id AS anno_id, 1079 SELECT id AS anno_id,
1059 name AS anno_description 1080 name AS anno_description
1060 FROM annotation_types 1081 FROM annotation_types
1061 </dc:statement> 1082 </dc:statement>
1062 <dc:for-each> 1083 <dc:for-each>
1063 <annotation name="{$anno_description}" 1084 <annotation name="{$anno_description}"
1064 factory="annotations" 1085 factory="annotations" target_out="{$out}"
1065 ids="{$river_id}:{$anno_description}"/> 1086 ids="{$river_id}:{$anno_description}"/>
1066 </dc:for-each> 1087 </dc:for-each>
1067 </dc:context> 1088 </dc:context>
1068 </annotations> 1089 </annotations>
1069 </dc:macro> 1090 </dc:macro>
1075 <dc:group expr="dc:replace($wst_description, 'Fixierungen/', '')"> 1096 <dc:group expr="dc:replace($wst_description, 'Fixierungen/', '')">
1076 <relativepoint name="{dc:group-key()}"> 1097 <relativepoint name="{dc:group-key()}">
1077 <dc:for-each> 1098 <dc:for-each>
1078 <column name="{$wst_column_name}" 1099 <column name="{$wst_column_name}"
1079 ids="fixations-wstv-{$wst_column_position}-{$wst_id}" 1100 ids="fixations-wstv-{$wst_column_position}-{$wst_id}"
1080 factory="staticwkms" 1101 factory="staticwkms" target_out="{$out}"
1081 info="{$info} [km {$deffrom} - {$defto}]"/> 1102 info="{$info} [km {$deffrom} - {$defto}]"/>
1082 </dc:for-each> 1103 </dc:for-each>
1083 </relativepoint> 1104 </relativepoint>
1084 </dc:group> 1105 </dc:group>
1085 </fixations> 1106 </fixations>
1094 <dc:group expr="$wst_description"> 1115 <dc:group expr="$wst_description">
1095 <relativepoint name="{dc:group-key()}"> 1116 <relativepoint name="{dc:group-key()}">
1096 <dc:for-each> 1117 <dc:for-each>
1097 <column name="{$wst_column_name}" 1118 <column name="{$wst_column_name}"
1098 ids="flood_protection-wstv-{$wst_column_position}-{$wst_id}" 1119 ids="flood_protection-wstv-{$wst_column_position}-{$wst_id}"
1099 factory="staticwkms" 1120 factory="staticwkms" target_out="{$out}"
1100 info="{$info} [km {$deffrom} - {$defto}]"/> 1121 info="{$info} [km {$deffrom} - {$defto}]"/>
1101 </dc:for-each> 1122 </dc:for-each>
1102 </relativepoint> 1123 </relativepoint>
1103 </dc:group> 1124 </dc:group>
1104 </flood_protections> 1125 </flood_protections>
1113 <dc:group expr="$wst_description"> 1134 <dc:group expr="$wst_description">
1114 <relativepoint name="{dc:group-key()}"> 1135 <relativepoint name="{dc:group-key()}">
1115 <dc:for-each> 1136 <dc:for-each>
1116 <column name="{$wst_column_name}" 1137 <column name="{$wst_column_name}"
1117 ids="additionals-wstv-{$wst_column_position}-{$wst_id}" 1138 ids="additionals-wstv-{$wst_column_position}-{$wst_id}"
1118 factory="staticwkms" 1139 factory="staticwkms" target_out="{$out}"
1119 info="{$info} [km {$deffrom} - {$defto}]"/> 1140 info="{$info} [km {$deffrom} - {$defto}]"/>
1120 </dc:for-each> 1141 </dc:for-each>
1121 </relativepoint> 1142 </relativepoint>
1122 </dc:group> 1143 </dc:group>
1123 </additionals> 1144 </additionals>
1135 <dc:if test="dc:has-result()"> 1156 <dc:if test="dc:has-result()">
1136 <discharge_table_nn> 1157 <discharge_table_nn>
1137 <discharge_table_gauge> 1158 <discharge_table_gauge>
1138 <dc:for-each> 1159 <dc:for-each>
1139 <gauge name="{$gauge_name}" 1160 <gauge name="{$gauge_name}"
1140 factory="gaugedischarge" 1161 factory="gaugedischarge" target_out="{$out}"
1141 from="{$g_start}" 1162 from="{$g_start}"
1142 to="{$g_stop}" 1163 to="{$g_stop}"
1143 ids="{$gauge_name}"/> 1164 ids="{$gauge_name}"/>
1144 </dc:for-each> 1165 </dc:for-each>
1145 </discharge_table_gauge> 1166 </discharge_table_gauge>
1157 <dc:macro name="discharge_fix_wq"> 1178 <dc:macro name="discharge_fix_wq">
1158 <dc:call-macro name="discharge_table_gauge"/> 1179 <dc:call-macro name="discharge_table_gauge"/>
1159 </dc:macro> 1180 </dc:macro>
1160 1181
1161 <dc:macro name="qsectors"> 1182 <dc:macro name="qsectors">
1162 <qsector factory="qsectors" ids="{$river_id}"/> 1183 <qsector factory="qsectors" ids="{$river_id}" target_out="{$out}" />
1163 </dc:macro> 1184 </dc:macro>
1164 1185
1165 <dc:macro name="flood-map-recommended"> 1186 <dc:macro name="flood-map-recommended">
1166 <kilometrage> 1187 <kilometrage>
1167 <riveraxis factory="riveraxis" ids="{$river_id}"/> 1188 <riveraxis factory="riveraxis" ids="{$river_id}" target_out="{$out}" />
1168 </kilometrage> 1189 </kilometrage>
1169 <rastermap> 1190 <rastermap>
1170 <background factory="wmsbackground" ids="{$river_id}"/> 1191 <background factory="wmsbackground" ids="{$river_id}" target_out="{$out}" />
1171 </rastermap> 1192 </rastermap>
1172 </dc:macro> 1193 </dc:macro>
1173 1194
1174 <dc:macro name="minfo-heights"> 1195 <dc:macro name="minfo-heights">
1175 <bedheights> 1196 <bedheights>
1186 year AS bedh_year, 1207 year AS bedh_year,
1187 description AS bedh_descr 1208 description AS bedh_descr
1188 FROM bed_height_single WHERE river_id = ${river_id} 1209 FROM bed_height_single WHERE river_id = ${river_id}
1189 </dc:statement> 1210 </dc:statement>
1190 <dc:for-each> 1211 <dc:for-each>
1191 <height factory="bedheight" 1212 <height factory="bedheight" target_out="{$out}"
1192 ids="bedheight-single-{$bedh_id}-{$bedh_year}" 1213 ids="bedheight-single-{$bedh_id}-{$bedh_year}"
1193 description="{$bedh_descr}"/> 1214 description="{$bedh_descr}"/>
1194 </dc:for-each> 1215 </dc:for-each>
1195 </dc:context> 1216 </dc:context>
1196 </single> 1217 </single>
1204 time_interval_id AS bedh_interval_id, 1225 time_interval_id AS bedh_interval_id,
1205 description AS bedh_descr 1226 description AS bedh_descr
1206 FROM bed_height_epoch WHERE river_id = ${river_id} 1227 FROM bed_height_epoch WHERE river_id = ${river_id}
1207 </dc:statement> 1228 </dc:statement>
1208 <dc:for-each> 1229 <dc:for-each>
1209 <height factory="bedheight" 1230 <height factory="bedheight" target_out="{$out}"
1210 ids="bedheight-epoch-{$bedh_id}-{$bedh_interval_id}" 1231 ids="bedheight-epoch-{$bedh_id}-{$bedh_interval_id}"
1211 description="{$bedh_descr}"/> 1232 description="{$bedh_descr}"/>
1212 </dc:for-each> 1233 </dc:for-each>
1213 </dc:context> 1234 </dc:context>
1214 </epoch> 1235 </epoch>
1225 <flowvelocitymeasurement> 1246 <flowvelocitymeasurement>
1226 <dc:for-each> 1247 <dc:for-each>
1227 <dc:comment>TODO: Why has this an id and factory?</dc:comment> 1248 <dc:comment>TODO: Why has this an id and factory?</dc:comment>
1228 <flow_velocity_measurement name="{$fvmd}" 1249 <flow_velocity_measurement name="{$fvmd}"
1229 ids="{$fvmid}" 1250 ids="{$fvmid}"
1230 factory="flowvelocity"> 1251 factory="flowvelocity" target_out="{$out}" >
1231 <dc:context> 1252 <dc:context>
1232 <dc:statement> 1253 <dc:statement>
1233 SELECT id, description, station, datetime, v, w, q 1254 SELECT id, description, station, datetime, v, w, q
1234 FROM flow_velocity_measure_values 1255 FROM flow_velocity_measure_values
1235 WHERE measurements_id = ${fvmid} 1256 WHERE measurements_id = ${fvmid}
1236 AND station BETWEEN ${fromkm} AND ${tokm} 1257 AND station BETWEEN ${fromkm} AND ${tokm}
1237 </dc:statement> 1258 </dc:statement>
1238 <dc:for-each> 1259 <dc:for-each>
1239 <measurement_value name="{$description} - {$station} - {$datetime}" 1260 <measurement_value name="{$description} - {$station} - {$datetime}"
1240 ids="{$id}" 1261 ids="{$id}"
1241 factory="flowvelocity"/> 1262 factory="flowvelocity" target_out="{$out}" />
1242 </dc:for-each> 1263 </dc:for-each>
1243 </dc:context> 1264 </dc:context>
1244 </flow_velocity_measurement> 1265 </flow_velocity_measurement>
1245 </dc:for-each> 1266 </dc:for-each>
1246 </flowvelocitymeasurement> 1267 </flowvelocitymeasurement>
1266 WHERE morphologic_width_id = ${width_id} 1287 WHERE morphologic_width_id = ${width_id}
1267 </dc:statement> 1288 </dc:statement>
1268 <dc:for-each> 1289 <dc:for-each>
1269 <morphologic-width name="{$from_station} - {$to_station}" 1290 <morphologic-width name="{$from_station} - {$to_station}"
1270 ids="{$width_id}" 1291 ids="{$width_id}"
1271 factory="morph-width"/> 1292 factory="morph-width" target_out="{$out}" />
1272 </dc:for-each> 1293 </dc:for-each>
1273 </dc:context> 1294 </dc:context>
1274 </dc:for-each> 1295 </dc:for-each>
1275 </morph_width> 1296 </morph_width>
1276 </dc:if> 1297 </dc:if>
1286 FROM bed_height_single WHERE river_id = ${river_id} 1307 FROM bed_height_single WHERE river_id = ${river_id}
1287 </dc:statement> 1308 </dc:statement>
1288 <dc:if test="dc:has-result()"> 1309 <dc:if test="dc:has-result()">
1289 <soundings_width> 1310 <soundings_width>
1290 <dc:for-each> 1311 <dc:for-each>
1291 <height factory="bedheight" 1312 <height factory="bedheight" target_out="{$out}"
1292 ids="bedheight-singlevalues-{$bedh_id}-{$bedh_year}" 1313 ids="bedheight-singlevalues-{$bedh_id}-{$bedh_year}"
1293 description="{$bedh_descr}"/> 1314 description="{$bedh_descr}"/>
1294 </dc:for-each> 1315 </dc:for-each>
1295 </soundings_width> 1316 </soundings_width>
1296 </dc:if> 1317 </dc:if>
1315 1336
1316 <dc:macro name="basedata_0"> 1337 <dc:macro name="basedata_0">
1317 <dc:call-macro name="basedata_0_macro"> 1338 <dc:call-macro name="basedata_0_macro">
1318 <column name="{$wst_column_name}" 1339 <column name="{$wst_column_name}"
1319 ids="base_data-wstv-{$wst_column_position}-{$wst_id}" 1340 ids="base_data-wstv-{$wst_column_position}-{$wst_id}"
1320 factory="staticwqkms" 1341 factory="staticwqkms" target_out="{$out}"
1321 info="{$info} [km {$deffrom} - {$defto}]"/> 1342 info="{$info} [km {$deffrom} - {$defto}]"/>
1322 </dc:call-macro> 1343 </dc:call-macro>
1323 </dc:macro> 1344 </dc:macro>
1324 1345
1325 <dc:macro name="basedata_0_wq"> 1346 <dc:macro name="basedata_0_wq">
1326 <dc:call-macro name="basedata_0_macro"> 1347 <dc:call-macro name="basedata_0_macro">
1327 <column name="{$wst_column_name}" 1348 <column name="{$wst_column_name}"
1328 ids="base_data-wstv-{$wst_column_position}-{$wst_id}" 1349 ids="base_data-wstv-{$wst_column_position}-{$wst_id}"
1329 factory="wqinterpol" 1350 factory="wqinterpol" target_out="{$out}"
1330 info="{$info} [km {$deffrom} - {$defto}]"/> 1351 info="{$info} [km {$deffrom} - {$defto}]"/>
1331 </dc:call-macro> 1352 </dc:call-macro>
1332 </dc:macro> 1353 </dc:macro>
1333 1354
1334 <dc:macro name="basedata_1_additionals_macro"> 1355 <dc:macro name="basedata_1_additionals_macro">
1349 1370
1350 <dc:macro name="basedata_1_additionals"> 1371 <dc:macro name="basedata_1_additionals">
1351 <dc:call-macro name="basedata_1_additionals_macro"> 1372 <dc:call-macro name="basedata_1_additionals_macro">
1352 <column name="{$wst_column_name}" 1373 <column name="{$wst_column_name}"
1353 ids="additionals-wstv-{$wst_column_position}-{$wst_id}" 1374 ids="additionals-wstv-{$wst_column_position}-{$wst_id}"
1354 factory="staticwqkms" 1375 factory="staticwqkms" target_out="{$out}"
1355 info="{$info} [km {$deffrom} - {$defto}]"/> 1376 info="{$info} [km {$deffrom} - {$defto}]"/>
1356 </dc:call-macro> 1377 </dc:call-macro>
1357 </dc:macro> 1378 </dc:macro>
1358 1379
1359 <dc:macro name="basedata_1_additionals_marks"> 1380 <dc:macro name="basedata_1_additionals_marks">
1360 <dc:call-macro name="basedata_1_additionals_macro"> 1381 <dc:call-macro name="basedata_1_additionals_macro">
1361 <column name="{$wst_column_name}" 1382 <column name="{$wst_column_name}"
1362 ids="additionalsmarks-wstv-{$wst_column_position}-{$wst_id}" 1383 ids="additionalsmarks-wstv-{$wst_column_position}-{$wst_id}"
1363 factory="staticwkms" 1384 factory="staticwkms" target_out="{$out}"
1364 info="{$info} [km {$deffrom} - {$defto}]"/> 1385 info="{$info} [km {$deffrom} - {$defto}]"/>
1365 </dc:call-macro> 1386 </dc:call-macro>
1366 </dc:macro> 1387 </dc:macro>
1367 1388
1368 <!-- Floodmap part --> 1389 <!-- Floodmap part -->
1402 <dc:macro name="flood-map-recommended"> 1423 <dc:macro name="flood-map-recommended">
1403 <dc:comment> 1424 <dc:comment>
1404 FIXME: Following two macros look identical to me. 1425 FIXME: Following two macros look identical to me.
1405 </dc:comment> 1426 </dc:comment>
1406 <kilometrage> 1427 <kilometrage>
1407 <riveraxis factory="riveraxis" ids="{$river_id}"/> 1428 <riveraxis factory="riveraxis" ids="{$river_id}" target_out="{$out}" />
1408 </kilometrage> 1429 </kilometrage>
1409 <rastermap> 1430 <rastermap>
1410 <background factory="wmsbackground" ids="{$river_id}"/> 1431 <background factory="wmsbackground" ids="{$river_id}" target_out="{$out}" />
1411 </rastermap> 1432 </rastermap>
1412 </dc:macro> 1433 </dc:macro>
1413 1434
1414 <dc:macro name="flood-map-dem"> 1435 <dc:macro name="flood-map-dem">
1415 <dems> 1436 <dems>
1430 JOIN ranges r ON d.range_id = r.id 1451 JOIN ranges r ON d.range_id = r.id
1431 LEFT JOIN time_intervals t ON d.time_interval_id = t.id 1452 LEFT JOIN time_intervals t ON d.time_interval_id = t.id
1432 WHERE d.river_id = ${river_id} 1453 WHERE d.river_id = ${river_id}
1433 </dc:statement> 1454 </dc:statement>
1434 <dc:for-each> 1455 <dc:for-each>
1435 <dem factory="demfactory" 1456 <dem factory="demfactory" target_out="{$out}"
1436 ids="{$dem_id}" 1457 ids="{$dem_id}"
1437 name="{$name}" 1458 name="{$name}"
1438 info="{dc:replace($info, '$', '&lt;BR&gt;')}{dc:date-format('yyyy', $start_time)} - {dc:date-format('yyyy', $stop_time)}"/> 1459 info="{dc:replace($info, '$', '&lt;BR&gt;')}{dc:date-format('yyyy', $start_time)} - {dc:date-format('yyyy', $stop_time)}"/>
1439 </dc:for-each> 1460 </dc:for-each>
1440 </dc:context> 1461 </dc:context>
1443 1464
1444 <dc:macro name="filter_hws_ddg"> 1465 <dc:macro name="filter_hws_ddg">
1445 <dc:macro name="durchlass_damm_graben"> 1466 <dc:macro name="durchlass_damm_graben">
1446 <dc:macro name="ddg_factory"> 1467 <dc:macro name="ddg_factory">
1447 <dc:for-each> 1468 <dc:for-each>
1448 <hws factory="hwsfactory" name="{$hws_name}"/> 1469 <hws factory="hwsfactory" name="{$hws_name}" target_out="{$out}" />
1449 </dc:for-each> 1470 </dc:for-each>
1450 </dc:macro> 1471 </dc:macro>
1451 1472
1452 <dc:filter expr="$hws_kind=1"> 1473 <dc:filter expr="$hws_kind=1">
1453 <dc:if test="dc:has-result()"> 1474 <dc:if test="dc:has-result()">
1530 FROM hydr_boundaries 1551 FROM hydr_boundaries
1531 WHERE river_id = ${river_id} 1552 WHERE river_id = ${river_id}
1532 AND kind = 2 1553 AND kind = 2
1533 </dc:statement> 1554 </dc:statement>
1534 <dc:for-each> 1555 <dc:for-each>
1535 <line factory="wmshydrboundariesfactory" 1556 <line factory="wmshydrboundariesfactory" target_out="{$out}"
1536 ids="{$river_id};{$name};2" 1557 ids="{$river_id};{$name};2"
1537 name="{$name}"/> 1558 name="{$name}"/>
1538 </dc:for-each> 1559 </dc:for-each>
1539 </dc:context> 1560 </dc:context>
1540 <dc:context> 1561 <dc:context>
1544 FROM hydr_boundaries_poly 1565 FROM hydr_boundaries_poly
1545 WHERE river_id = ${river_id} 1566 WHERE river_id = ${river_id}
1546 AND kind = 2 1567 AND kind = 2
1547 </dc:statement> 1568 </dc:statement>
1548 <dc:for-each> 1569 <dc:for-each>
1549 <line factory="wmshydrboundariespolyfactory" 1570 <line factory="wmshydrboundariespolyfactory" target_out="{$out}"
1550 ids="{$river_id};{$name};2" 1571 ids="{$river_id};{$name};2"
1551 name="{$name}"/> 1572 name="{$name}"/>
1552 </dc:for-each> 1573 </dc:for-each>
1553 </dc:context> 1574 </dc:context>
1554 </federal> 1575 </federal>
1565 </dc:statement> 1586 </dc:statement>
1566 <dc:comment> What about all other line kinds?</dc:comment> 1587 <dc:comment> What about all other line kinds?</dc:comment>
1567 <dc:if test="dc:has-result()"> 1588 <dc:if test="dc:has-result()">
1568 <lines> 1589 <lines>
1569 <dc:for-each> 1590 <dc:for-each>
1570 <line factory="wmshydrboundariesfactory" 1591 <line factory="wmshydrboundariesfactory" target_out="{$out}"
1571 ids="{$river_id};{$name};1" 1592 ids="{$river_id};{$name};1"
1572 name="{$name}"/> 1593 name="{$name}"/>
1573 </dc:for-each> 1594 </dc:for-each>
1574 </lines> 1595 </lines>
1575 </dc:if> 1596 </dc:if>
1590 </dc:statement> 1611 </dc:statement>
1591 <dc:if test="dc:has-result()"> 1612 <dc:if test="dc:has-result()">
1592 <sobek_areas> 1613 <sobek_areas>
1593 <dc:for-each> 1614 <dc:for-each>
1594 <boundary name="{$sectie}" 1615 <boundary name="{$sectie}"
1595 factory="wmshydrboundariespolyfactory" 1616 factory="wmshydrboundariespolyfactory" target_out="{$out}"
1596 ids="{$river_id};{$sectie};1;{$sectie_id};-1"/> 1617 ids="{$river_id};{$sectie};1;{$sectie_id};-1"/>
1597 </dc:for-each> 1618 </dc:for-each>
1598 </sobek_areas> 1619 </sobek_areas>
1599 </dc:if> 1620 </dc:if>
1600 </dc:context> 1621 </dc:context>
1610 </dc:statement> 1631 </dc:statement>
1611 <dc:if test="dc:has-result()"> 1632 <dc:if test="dc:has-result()">
1612 <sobek_flooded> 1633 <sobek_flooded>
1613 <dc:for-each> 1634 <dc:for-each>
1614 <boundary name="{$sobek}" 1635 <boundary name="{$sobek}"
1615 factory="wmshydrboundariespolyfactory" 1636 factory="wmshydrboundariespolyfactory" target_out="{$out}"
1616 ids="{$river_id};{$sobek};1;-1;{$sobek_id}"/> 1637 ids="{$river_id};{$sobek};1;-1;{$sobek_id}"/>
1617 </dc:for-each> 1638 </dc:for-each>
1618 </sobek_flooded> 1639 </sobek_flooded>
1619 </dc:if> 1640 </dc:if>
1620 </dc:context> 1641 </dc:context>
1628 AND b.sobek IS NULL 1649 AND b.sobek IS NULL
1629 AND b.sectie is NULL 1650 AND b.sectie is NULL
1630 </dc:statement> 1651 </dc:statement>
1631 <dc:for-each> 1652 <dc:for-each>
1632 <boundary name="{$name}" 1653 <boundary name="{$name}"
1633 factory="wmshydrboundariespolyfactory" 1654 factory="wmshydrboundariespolyfactory" target_out="{$out}"
1634 ids="{$river_id};{$name}"/> 1655 ids="{$river_id};{$name}"/>
1635 </dc:for-each> 1656 </dc:for-each>
1636 </dc:context> 1657 </dc:context>
1637 </areas> 1658 </areas>
1638 </dc:macro> 1659 </dc:macro>
1659 WHERE river_id = ${river_id} AND kind = 111 1680 WHERE river_id = ${river_id} AND kind = 111
1660 </dc:statement> 1681 </dc:statement>
1661 <dc:if test="dc:has-result()"> 1682 <dc:if test="dc:has-result()">
1662 <bfg> 1683 <bfg>
1663 <dc:for-each> 1684 <dc:for-each>
1664 <floodmaps factory="wmsfloodmapsfactory" 1685 <floodmaps factory="wmsfloodmapsfactory" target_out="{$out}"
1665 ids="{$river_id};{$name}" 1686 ids="{$river_id};{$name}"
1666 name="{$name}"/> 1687 name="{$name}"/>
1667 </dc:for-each> 1688 </dc:for-each>
1668 </bfg> 1689 </bfg>
1669 </dc:if> 1690 </dc:if>
1675 WHERE river_id = ${river_id} AND kind = 112 1696 WHERE river_id = ${river_id} AND kind = 112
1676 </dc:statement> 1697 </dc:statement>
1677 <dc:if test="dc:has-result()"> 1698 <dc:if test="dc:has-result()">
1678 <federal> 1699 <federal>
1679 <dc:for-each> 1700 <dc:for-each>
1680 <floodmaps factory="wmsfloodmapsfactory" 1701 <floodmaps factory="wmsfloodmapsfactory" target_out="{$out}"
1681 ids="{$river_id};{$name}" 1702 ids="{$river_id};{$name}"
1682 name="{$name}"/> 1703 name="{$name}"/>
1683 </dc:for-each> 1704 </dc:for-each>
1684 </federal> 1705 </federal>
1685 </dc:if> 1706 </dc:if>
1701 WHERE river_id = ${river_id} AND kind = 121 1722 WHERE river_id = ${river_id} AND kind = 121
1702 </dc:statement> 1723 </dc:statement>
1703 <dc:if test="dc:has-result()"> 1724 <dc:if test="dc:has-result()">
1704 <bfg> 1725 <bfg>
1705 <dc:for-each> 1726 <dc:for-each>
1706 <floodmaps factory="wmsfloodmapsfactory" 1727 <floodmaps factory="wmsfloodmapsfactory" target_out="{$out}"
1707 ids="{$river_id};{$name}" 1728 ids="{$river_id};{$name}"
1708 name="{$name}"/> 1729 name="{$name}"/>
1709 </dc:for-each> 1730 </dc:for-each>
1710 </bfg> 1731 </bfg>
1711 </dc:if> 1732 </dc:if>
1718 WHERE river_id = ${river_id} AND kind = 122 1739 WHERE river_id = ${river_id} AND kind = 122
1719 </dc:statement> 1740 </dc:statement>
1720 <dc:if test="dc:has-result()"> 1741 <dc:if test="dc:has-result()">
1721 <federal> 1742 <federal>
1722 <dc:for-each> 1743 <dc:for-each>
1723 <floodmaps factory="wmsfloodmapsfactory" 1744 <floodmaps factory="wmsfloodmapsfactory" target_out="{$out}"
1724 ids="{$river_id};{$name}" 1745 ids="{$river_id};{$name}"
1725 name="{$name}"/> 1746 name="{$name}"/>
1726 </dc:for-each> 1747 </dc:for-each>
1727 </federal> 1748 </federal>
1728 </dc:if> 1749 </dc:if>
1749 FROM floodmaps 1770 FROM floodmaps
1750 WHERE river_id = ${river_id} AND kind = 200 AND source = 1771 WHERE river_id = ${river_id} AND kind = 200 AND source =
1751 ${source} 1772 ${source}
1752 </dc:statement> 1773 </dc:statement>
1753 <dc:for-each> 1774 <dc:for-each>
1754 <floodmaps factory="wmsfloodmapsfactory" 1775 <floodmaps factory="wmsfloodmapsfactory" target_out="{$out}"
1755 ids="{$river_id};{$name}" 1776 ids="{$river_id};{$name}"
1756 name="{$name}"/> 1777 name="{$name}"/>
1757 </dc:for-each> 1778 </dc:for-each>
1758 </dc:context> 1779 </dc:context>
1759 </year> 1780 </year>
1779 </dc:statement> 1800 </dc:statement>
1780 <dc:if test="dc:has-result()"> 1801 <dc:if test="dc:has-result()">
1781 <floodplain> 1802 <floodplain>
1782 <dc:filter expr="$kind_id=1"> 1803 <dc:filter expr="$kind_id=1">
1783 <dc:for-each> 1804 <dc:for-each>
1784 <floody factory="wmsfloodplainfactory" 1805 <floody factory="wmsfloodplainfactory" target_out="{$out}"
1785 description="{$kind_name}" 1806 description="{$kind_name}"
1786 ids="{$river_id};{$kind_name};{$kind_id}"/> 1807 ids="{$river_id};{$kind_name};{$kind_id}"/>
1787 </dc:for-each> 1808 </dc:for-each>
1788 </dc:filter> 1809 </dc:filter>
1789 <dc:filter expr="$kind_id != 1"> 1810 <dc:filter expr="$kind_id != 1">
1790 <dc:if test="dc:has-result()"> 1811 <dc:if test="dc:has-result()">
1791 <other> 1812 <other>
1792 <dc:for-each> 1813 <dc:for-each>
1793 <floody factory="wmsfloodplainfactory" 1814 <floody factory="wmsfloodplainfactory" target_out="{$out}"
1794 description="{$layer_name}" 1815 description="{$layer_name}"
1795 ids="{$river_id};{$layer_name};{$kind_id}"/> 1816 ids="{$river_id};{$layer_name};{$kind_id}"/>
1796 </dc:for-each> 1817 </dc:for-each>
1797 </other> 1818 </other>
1798 </dc:if> 1819 </dc:if>
1808 availble 1829 availble
1809 </dc:comment> 1830 </dc:comment>
1810 1831
1811 <dc:macro name="hwspoints_by_kind_factory"> 1832 <dc:macro name="hwspoints_by_kind_factory">
1812 <dc:for-each> 1833 <dc:for-each>
1813 <hws factory="wmshwspointsfactory" 1834 <hws factory="wmshwspointsfactory" target_out="{$out}"
1814 ids="{$river_id};{$hws_name}" 1835 ids="{$river_id};{$hws_name}"
1815 name="{$hws_name}"/> 1836 name="{$hws_name}"/>
1816 </dc:for-each> 1837 </dc:for-each>
1817 </dc:macro> 1838 </dc:macro>
1818 1839
1939 availble 1960 availble
1940 </dc:comment> 1961 </dc:comment>
1941 1962
1942 <dc:macro name="hwslines_by_kind_factory"> 1963 <dc:macro name="hwslines_by_kind_factory">
1943 <dc:for-each> 1964 <dc:for-each>
1944 <hws factory="wmshwslinesfactory" 1965 <hws factory="wmshwslinesfactory" target_out="{$out}"
1945 ids="{$river_id};{$hws_name}" 1966 ids="{$river_id};{$hws_name}"
1946 name="{$hws_name}"/> 1967 name="{$hws_name}"/>
1947 </dc:for-each> 1968 </dc:for-each>
1948 </dc:macro> 1969 </dc:macro>
1949 1970
2074 </dc:statement> 2095 </dc:statement>
2075 <dc:if test="dc:has-result()"> 2096 <dc:if test="dc:has-result()">
2076 <floodmarks> 2097 <floodmarks>
2077 <dc:for-each> 2098 <dc:for-each>
2078 <floodmark name="{$year}" 2099 <floodmark name="{$year}"
2079 factory="wmsfloodmarkfactory" 2100 factory="wmsfloodmarkfactory" target_out="{$out}"
2080 ids="{$river_id};{$year};{$year}"/> 2101 ids="{$river_id};{$year};{$year}"/>
2081 </dc:for-each> 2102 </dc:for-each>
2082 </floodmarks> 2103 </floodmarks>
2083 </dc:if> 2104 </dc:if>
2084 </dc:context> 2105 </dc:context>
2085 </dc:macro> 2106 </dc:macro>
2086 2107
2087 <dc:macro name="catchments"> 2108 <dc:macro name="catchments">
2088 <catchments> 2109 <catchments>
2089 <catchment_wms factory="externalwmsfactory" 2110 <catchment_wms factory="externalwmsfactory" target_out="{$out}"
2090 ids="http://geoportal.bafg.de/wmsproxy/INSPIRE/DrainageBasin;HY.PHYSICALWATERS.CATCHMENTS;Einzugsgebiete (WMS)" /> 2111 ids="http://geoportal.bafg.de/wmsproxy/INSPIRE/DrainageBasin;HY.PHYSICALWATERS.CATCHMENTS;Einzugsgebiete (WMS)" />
2091 <dc:call-macro name="flood-map-gaugelocations"/> 2112 <dc:call-macro name="flood-map-gaugelocations"/>
2092 </catchments> 2113 </catchments>
2093 </dc:macro> 2114 </dc:macro>
2094 2115
2095 <dc:macro name="flood-map-gaugelocations"> 2116 <dc:macro name="flood-map-gaugelocations">
2096 <gaugelocations> 2117 <gaugelocations>
2097 <gauge_points factory="externalwmsfactory" ids="http://www.pegelonline.wsv.de/webservices/gis/wms;Pegelpunkte;Pegelpunkte (WSV)"/> 2118 <gauge_points factory="externalwmsfactory" ids="http://www.pegelonline.wsv.de/webservices/gis/wms;Pegelpunkte;Pegelpunkte (WSV)" target_out="{$out}" />
2098 <gauge_names factory="externalwmsfactory" ids="http://www.pegelonline.wsv.de/webservices/gis/wms;Pegelnamen;Pegelnamen (WSV)"/> 2119 <gauge_names factory="externalwmsfactory" ids="http://www.pegelonline.wsv.de/webservices/gis/wms;Pegelnamen;Pegelnamen (WSV)" target_out="{$out}" />
2099 <gauge_level factory="externalwmsfactory" ids="http://www.pegelonline.wsv.de/webservices/gis/wms;Pegelwasserstand;Aktueller Wasserstand (WSV)"/> 2120 <gauge_level factory="externalwmsfactory" ids="http://www.pegelonline.wsv.de/webservices/gis/wms;Pegelwasserstand;Aktueller Wasserstand (WSV)" target_out="{$out}" />
2100 <gauge_tendency factory="externalwmsfactory" ids="http://www.pegelonline.wsv.de/webservices/gis/wms;TendenzWasserstand;Tendenz des Wasserstands (WSV)"/> 2121 <gauge_tendency factory="externalwmsfactory" ids="http://www.pegelonline.wsv.de/webservices/gis/wms;TendenzWasserstand;Tendenz des Wasserstands (WSV)" target_out="{$out}" />
2101 </gaugelocations> 2122 </gaugelocations>
2102 </dc:macro> 2123 </dc:macro>
2103 2124
2104 <dc:macro name="flood-map-riveraxis"> 2125 <dc:macro name="flood-map-riveraxis">
2105 <dc:context> 2126 <dc:context>
2116 <axis> 2137 <axis>
2117 <dc:filter expr="$kind_id=1"> 2138 <dc:filter expr="$kind_id=1">
2118 <dc:for-each> 2139 <dc:for-each>
2119 <actual description="{$kind_name}" 2140 <actual description="{$kind_name}"
2120 ids="{$river_id};{$kind_name};{$kind_id}" 2141 ids="{$river_id};{$kind_name};{$kind_id}"
2121 factory="riveraxis"/> 2142 factory="riveraxis" target_out="{$out}" />
2122 </dc:for-each> 2143 </dc:for-each>
2123 </dc:filter> 2144 </dc:filter>
2124 <dc:filter expr="$kind_id!=1"> 2145 <dc:filter expr="$kind_id!=1">
2125 <other> 2146 <other>
2126 <dc:for-each> 2147 <dc:for-each>
2127 <misc-axis description="{$layer_name}" 2148 <misc-axis description="{$layer_name}"
2128 ids="{$river_id};{$layer_name};{$kind_id}" 2149 ids="{$river_id};{$layer_name};{$kind_id}"
2129 factory="riveraxis"/> 2150 factory="riveraxis" target_out="{$out}" />
2130 </dc:for-each> 2151 </dc:for-each>
2131 </other> 2152 </other>
2132 </dc:filter> 2153 </dc:filter>
2133 </axis> 2154 </axis>
2134 </dc:if> 2155 </dc:if>
2139 <dc:context> 2160 <dc:context>
2140 <dc:statement> 2161 <dc:statement>
2141 SELECT DISTINCT 1 FROM river_axes_km WHERE river_id = ${river_id} 2162 SELECT DISTINCT 1 FROM river_axes_km WHERE river_id = ${river_id}
2142 </dc:statement> 2163 </dc:statement>
2143 <dc:for-each> 2164 <dc:for-each>
2144 <kilometrage factory="wmskmfactory" ids="{$river_id}"/> 2165 <kilometrage factory="wmskmfactory" ids="{$river_id}" target_out="{$out}" />
2145 </dc:for-each> 2166 </dc:for-each>
2146 </dc:context> 2167 </dc:context>
2147 </dc:macro> 2168 </dc:macro>
2148 2169
2149 <dc:macro name="flood-map-fixpoints"> 2170 <dc:macro name="flood-map-fixpoints">
2153 FROM fixpoints 2174 FROM fixpoints
2154 WHERE river_id = ${river_id} 2175 WHERE river_id = ${river_id}
2155 GROUP BY name 2176 GROUP BY name
2156 </dc:statement> 2177 </dc:statement>
2157 <dc:for-each> 2178 <dc:for-each>
2158 <fixpoints factory="wmsfixpointsfactory" 2179 <fixpoints factory="wmsfixpointsfactory" target_out="{$out}"
2159 ids="{$river_id};{$name}"/> 2180 ids="{$river_id};{$name}"/>
2160 </dc:for-each> 2181 </dc:for-each>
2161 </dc:context> 2182 </dc:context>
2162 </dc:macro> 2183 </dc:macro>
2163 2184
2175 <dc:if test="dc:has-result()"> 2196 <dc:if test="dc:has-result()">
2176 <qps> 2197 <qps>
2177 <dc:filter expr="$kind_id=1"> 2198 <dc:filter expr="$kind_id=1">
2178 <dc:for-each> 2199 <dc:for-each>
2179 <actual description="{$kind_name}" 2200 <actual description="{$kind_name}"
2180 factory="wmsqpsfactory" 2201 factory="wmsqpsfactory" target_out="{$out}"
2181 ids="{$river_id};{$kind_name};{$kind_id}"/> 2202 ids="{$river_id};{$kind_name};{$kind_id}"/>
2182 </dc:for-each> 2203 </dc:for-each>
2183 </dc:filter> 2204 </dc:filter>
2184 <dc:filter expr="$kind_id = 0"> 2205 <dc:filter expr="$kind_id = 0">
2185 <dc:if test="dc:has-result()"> 2206 <dc:if test="dc:has-result()">
2186 <other> 2207 <other>
2187 <dc:for-each> 2208 <dc:for-each>
2188 <misc-qps description="{$layer_name}" 2209 <misc-qps description="{$layer_name}"
2189 factory="wmsqpsfactory" 2210 factory="wmsqpsfactory" target_out="{$out}"
2190 ids="{$river_id};{$layer_name};{$kind_id}"/> 2211 ids="{$river_id};{$layer_name};{$kind_id}"/>
2191 </dc:for-each> 2212 </dc:for-each>
2192 </other> 2213 </other>
2193 </dc:if> 2214 </dc:if>
2194 </dc:filter> 2215 </dc:filter>
2211 </dc:statement> 2232 </dc:statement>
2212 <dc:if test="dc:has-result()"> 2233 <dc:if test="dc:has-result()">
2213 <dc:filter expr="$building_kind_id!=0"> 2234 <dc:filter expr="$building_kind_id!=0">
2214 <dc:for-each> 2235 <dc:for-each>
2215 <buildings description="{$building_kind}" 2236 <buildings description="{$building_kind}"
2216 factory="wmsbuildingsfactory" 2237 factory="wmsbuildingsfactory" target_out="{$out}"
2217 ids="{$river_id};{$building_kind};{$building_kind_id}"/> 2238 ids="{$river_id};{$building_kind};{$building_kind_id}"/>
2218 </dc:for-each> 2239 </dc:for-each>
2219 </dc:filter> 2240 </dc:filter>
2220 <dc:filter expr="$building_kind_id=0"> 2241 <dc:filter expr="$building_kind_id=0">
2221 <other> 2242 <other>
2222 <dc:for-each> 2243 <dc:for-each>
2223 <buildings description="{$building_name}" 2244 <buildings description="{$building_name}"
2224 factory="wmsbuildingsfactory" 2245 factory="wmsbuildingsfactory" target_out="{$out}"
2225 ids="{$river_id};{$building_name}"/> 2246 ids="{$river_id};{$building_name}"/>
2226 </dc:for-each> 2247 </dc:for-each>
2227 </other> 2248 </other>
2228 </dc:filter> 2249 </dc:filter>
2229 </dc:if> 2250 </dc:if>
2239 </dc:statement> 2260 </dc:statement>
2240 <dc:if test="dc:has-result()"> 2261 <dc:if test="dc:has-result()">
2241 <jetties> 2262 <jetties>
2242 <dc:for-each> 2263 <dc:for-each>
2243 <jetty description="{$jetty_kind}" 2264 <jetty description="{$jetty_kind}"
2244 factory="wmsjettiesfactory" 2265 factory="wmsjettiesfactory" target_out="{$out}"
2245 ids="{$river_id};{$jetty_kind};{$jetty_kind_id}"/> 2266 ids="{$river_id};{$jetty_kind};{$jetty_kind_id}"/>
2246 </dc:for-each> 2267 </dc:for-each>
2247 </jetties> 2268 </jetties>
2248 </dc:if> 2269 </dc:if>
2249 </dc:context> 2270 </dc:context>
2292 <dc:for-each> 2313 <dc:for-each>
2293 <dc:element name="${olname}"> 2314 <dc:element name="${olname}">
2294 <dc:attribute name="name" value="${olname}"/> 2315 <dc:attribute name="name" value="${olname}"/>
2295 <dc:attribute name="ids" value="additionals-wstv-${wstcolpos}-${wstid}"/> 2316 <dc:attribute name="ids" value="additionals-wstv-${wstcolpos}-${wstid}"/>
2296 <dc:attribute name="factory" value="staticwkms"/> 2317 <dc:attribute name="factory" value="staticwkms"/>
2318 <dc:attribute name="target_out" value="${out}"/>
2297 <dc:attribute name="out" value="${out}"/> 2319 <dc:attribute name="out" value="${out}"/>
2298 </dc:element> 2320 </dc:element>
2299 </dc:for-each> 2321 </dc:for-each>
2300 </dc:context> 2322 </dc:context>
2301 </dc:for-each> 2323 </dc:for-each>

http://dive4elements.wald.intevation.org