comparison flys-artifacts/doc/conf/meta-data.xml @ 2683:f5af3adb3b95

Improved datacage configuration for floodmaps and maps and modified the WMS layer artifacts to support names for layers. flys-artifacts/trunk@4383 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Thu, 10 May 2012 11:14:17 +0000
parents 5afccab9aac1
children 14188f8daefb
comparison
equal deleted inserted replaced
2682:0795c296f718 2683:f5af3adb3b95
620 </hws> 620 </hws>
621 </dc:if> 621 </dc:if>
622 </dc:elements> 622 </dc:elements>
623 </dc:context> 623 </dc:context>
624 </dc:macro> 624 </dc:macro>
625 <dc:macro name="flood-map-hydr-boundaries">
626 <hydr_boundaries_lines>
627 <dc:call-macro name="flood-map-hydr-boundaries-lines"/>
628 </hydr_boundaries_lines>
629 <hydr_boundaries_polygons>
630 <dc:call-macro name="flood-map-hydr-boundaries-poly"/>
631 </hydr_boundaries_polygons>
632 </dc:macro>
633 <dc:macro name="flood-map-hydr-boundaries-lines">
634 <bfg>
635 <dc:context>
636 <dc:statement>
637 SELECT count(*) as km_exists, name as name
638 FROM hydr_boundaries WHERE river_id = ${river_id} AND kind = 1 GROUP BY name
639 </dc:statement>
640 <dc:elements>
641 <dc:if test="$km_exists>0">
642 <hydrboundary>
643 <dc:attribute name="factory" value="wmshydrboundariesfactory"/>
644 <dc:attribute name="ids" value="${river_id};${name}"/>
645 <dc:attribute name="name" value="${name}"/>
646 </hydrboundary>
647 </dc:if>
648 </dc:elements>
649 </dc:context>
650 </bfg>
651 <land>
652 <dc:context>
653 <dc:statement>
654 SELECT count(*) as km_exists, name as name
655 FROM hydr_boundaries WHERE river_id = ${river_id} AND kind = 2 GROUP BY name
656 </dc:statement>
657 <dc:elements>
658 <dc:if test="$km_exists>0">
659 <hydrboundary>
660 <dc:attribute name="factory" value="wmshydrboundariesfactory"/>
661 <dc:attribute name="ids" value="${river_id};${name}"/>
662 <dc:attribute name="name" value="${name}"/>
663 </hydrboundary>
664 </dc:if>
665 </dc:elements>
666 </dc:context>
667 </land>
668 </dc:macro>
669 <dc:macro name="flood-map-hydr-boundaries-poly">
670 <bfg>
671 <dc:context>
672 <dc:statement>
673 SELECT count(*) as km_exists, name as name
674 FROM hydr_boundaries_poly WHERE river_id = ${river_id} AND kind = 1 GROUP BY name
675 </dc:statement>
676 <dc:elements>
677 <dc:if test="$km_exists>0">
678 <hws>
679 <dc:attribute name="factory" value="wmshydrboundariespolyfactory"/>
680 <dc:attribute name="ids" value="${river_id};${name}"/>
681 <dc:attribute name="name" value="${name}"/>
682 </hws>
683 </dc:if>
684 </dc:elements>
685 </dc:context>
686 </bfg>
687 <land>
688 <dc:context>
689 <dc:statement>
690 SELECT count(*) as km_exists, name as name
691 FROM hydr_boundaries_poly WHERE river_id = ${river_id} AND kind = 2 GROUP BY name
692 </dc:statement>
693 <dc:elements>
694 <dc:if test="$km_exists>0">
695 <hws>
696 <dc:attribute name="factory" value="wmshydrboundariespolyfactory"/>
697 <dc:attribute name="ids" value="${river_id};${name}"/>
698 <dc:attribute name="name" value="${name}"/>
699 </hws>
700 </dc:if>
701 </dc:elements>
702 </dc:context>
703 </land>
704 </dc:macro>
625 <dc:macro name="flood-map-catchments"> 705 <dc:macro name="flood-map-catchments">
626 <dc:context> 706 <dc:context>
627 <dc:statement> 707 <dc:statement>
628 SELECT count(*) as km_exists, name as name 708 SELECT count(*) as km_exists, name as name
629 FROM catchment WHERE river_id = ${river_id} GROUP BY name 709 FROM catchment WHERE river_id = ${river_id} GROUP BY name
630 </dc:statement> 710 </dc:statement>
631 <dc:elements> 711 <dc:elements>
632 <dc:if test="$km_exists>0"> 712 <dc:if test="$km_exists>0">
633 <catchments> 713 <catchment>
634 <dc:attribute name="factory" value="wmscatchmentfactory"/> 714 <dc:attribute name="factory" value="wmscatchmentfactory"/>
635 <dc:attribute name="ids" value="${river_id};${name}"/> 715 <dc:attribute name="ids" value="${river_id};${name}"/>
636 <dc:attribute name="name" value="${name}"/> 716 <dc:attribute name="name" value="${name}"/>
637 </catchments> 717 </catchment>
638 </dc:if> 718 </dc:if>
639 </dc:elements> 719 </dc:elements>
640 </dc:context> 720 </dc:context>
641 </dc:macro> 721 </dc:macro>
642 <dc:macro name="flood-map-floodplain"> 722 <dc:macro name="flood-map-floodplain">
656 </dc:context> 736 </dc:context>
657 </dc:macro> 737 </dc:macro>
658 <dc:macro name="flood-map-lines"> 738 <dc:macro name="flood-map-lines">
659 <dc:context> 739 <dc:context>
660 <dc:statement> 740 <dc:statement>
661 SELECT count(*) as km_exists 741 SELECT count(*) as km_exists, name as name
662 FROM lines WHERE river_id = ${river_id} 742 FROM lines WHERE river_id = ${river_id} GROUP BY name
663 </dc:statement> 743 </dc:statement>
664 <dc:elements> 744 <dc:elements>
665 <dc:if test="$km_exists>0"> 745 <dc:if test="$km_exists>0">
666 <lines> 746 <line>
667 <dc:attribute name="factory" value="wmslinefactory"/> 747 <dc:attribute name="factory" value="wmslinefactory"/>
668 <dc:attribute name="ids" value="${river_id}"/> 748 <dc:attribute name="ids" value="${river_id};${name}"/>
669 </lines> 749 <dc:attribute name="name" value="${name}"/>
750 </line>
670 </dc:if> 751 </dc:if>
671 </dc:elements> 752 </dc:elements>
672 </dc:context> 753 </dc:context>
673 </dc:macro> 754 </dc:macro>
674 <dc:macro name="flood-map-buildings"> 755 <dc:macro name="flood-map-buildings">
675 <dc:context> 756 <dc:context>
676 <dc:statement> 757 <dc:statement>
677 SELECT count(*) as km_exists 758 SELECT count(*) as km_exists, name as name
678 FROM buildings WHERE river_id = ${river_id} 759 FROM buildings WHERE river_id = ${river_id} GROUP BY name
679 </dc:statement> 760 </dc:statement>
680 <dc:elements> 761 <dc:elements>
681 <dc:if test="$km_exists>0"> 762 <dc:if test="$km_exists>0">
682 <buildings> 763 <building>
683 <dc:attribute name="factory" value="wmsbuildingsfactory"/> 764 <dc:attribute name="factory" value="wmsbuildingsfactory"/>
684 <dc:attribute name="ids" value="${river_id}"/> 765 <dc:attribute name="ids" value="${river_id};${name}"/>
685 </buildings> 766 <dc:attribute name="name" value="${name}"/>
767 </building>
686 </dc:if> 768 </dc:if>
687 </dc:elements> 769 </dc:elements>
688 </dc:context> 770 </dc:context>
689 </dc:macro> 771 </dc:macro>
690 <dc:macro name="flood-map-fixpoints"> 772 <dc:macro name="flood-map-fixpoints">
691 <dc:context> 773 <dc:context>
692 <dc:statement> 774 <dc:statement>
693 SELECT count(*) as km_exists 775 SELECT count(*) as km_exists, name as name
694 FROM fixpoints WHERE river_id = ${river_id} 776 FROM fixpoints WHERE river_id = ${river_id} GROUP BY name
695 </dc:statement> 777 </dc:statement>
696 <dc:elements> 778 <dc:elements>
697 <dc:if test="$km_exists>0"> 779 <dc:if test="$km_exists>0">
698 <fixpoints> 780 <fixpoint>
699 <dc:attribute name="factory" value="wmsfixpointsfactory"/> 781 <dc:attribute name="factory" value="wmsfixpointsfactory"/>
700 <dc:attribute name="ids" value="${river_id}"/> 782 <dc:attribute name="ids" value="${river_id};${name}"/>
701 </fixpoints> 783 <dc:attribute name="name" value="${name}"/>
784 </fixpoint>
702 </dc:if> 785 </dc:if>
703 </dc:elements> 786 </dc:elements>
704 </dc:context> 787 </dc:context>
705 </dc:macro> 788 </dc:macro>
706 <dc:macro name="flood-map-uesk"> 789 <dc:macro name="flood-map-uesk">
717 </dc:statement> 800 </dc:statement>
718 <dc:elements> 801 <dc:elements>
719 <dc:if test="$uesg_exist>0"> 802 <dc:if test="$uesg_exist>0">
720 <floodmaps> 803 <floodmaps>
721 <dc:attribute name="factory" value="wmsfloodmapsfactory"/> 804 <dc:attribute name="factory" value="wmsfloodmapsfactory"/>
722 <dc:attribute name="ids" value="${river_id}_${name}"/> 805 <dc:attribute name="ids" value="${river_id};${name}"/>
723 <dc:attribute name="name" value="${name}"/> 806 <dc:attribute name="name" value="${name}"/>
724 </floodmaps> 807 </floodmaps>
725 </dc:if> 808 </dc:if>
726 </dc:elements> 809 </dc:elements>
727 </dc:context> 810 </dc:context>
736 </dc:statement> 819 </dc:statement>
737 <dc:elements> 820 <dc:elements>
738 <dc:if test="$uesg_exist>0"> 821 <dc:if test="$uesg_exist>0">
739 <floodmaps> 822 <floodmaps>
740 <dc:attribute name="factory" value="wmsfloodmapsfactory"/> 823 <dc:attribute name="factory" value="wmsfloodmapsfactory"/>
741 <dc:attribute name="ids" value="${river_id}_${name}"/> 824 <dc:attribute name="ids" value="${river_id};${name}"/>
742 <dc:attribute name="name" value="${name}"/> 825 <dc:attribute name="name" value="${name}"/>
743 </floodmaps> 826 </floodmaps>
744 </dc:if> 827 </dc:if>
745 </dc:elements> 828 </dc:elements>
746 </dc:context> 829 </dc:context>
757 </dc:statement> 840 </dc:statement>
758 <dc:elements> 841 <dc:elements>
759 <dc:if test="$uesg_exist>0"> 842 <dc:if test="$uesg_exist>0">
760 <floodmaps> 843 <floodmaps>
761 <dc:attribute name="factory" value="wmsfloodmapsfactory"/> 844 <dc:attribute name="factory" value="wmsfloodmapsfactory"/>
762 <dc:attribute name="ids" value="${river_id}_${name}"/> 845 <dc:attribute name="ids" value="${river_id};${name}"/>
763 <dc:attribute name="name" value="${name}"/> 846 <dc:attribute name="name" value="${name}"/>
764 </floodmaps> 847 </floodmaps>
765 </dc:if> 848 </dc:if>
766 </dc:elements> 849 </dc:elements>
767 </dc:context> 850 </dc:context>
776 </dc:statement> 859 </dc:statement>
777 <dc:elements> 860 <dc:elements>
778 <dc:if test="$uesg_exist>0"> 861 <dc:if test="$uesg_exist>0">
779 <floodmaps> 862 <floodmaps>
780 <dc:attribute name="factory" value="wmsfloodmapsfactory"/> 863 <dc:attribute name="factory" value="wmsfloodmapsfactory"/>
781 <dc:attribute name="ids" value="${river_id}_${name}"/> 864 <dc:attribute name="ids" value="${river_id};${name}"/>
782 <dc:attribute name="name" value="${name}"/> 865 <dc:attribute name="name" value="${name}"/>
783 </floodmaps> 866 </floodmaps>
784 </dc:if> 867 </dc:if>
785 </dc:elements> 868 </dc:elements>
786 </dc:context> 869 </dc:context>
788 </potentiel> 871 </potentiel>
789 </calculations> 872 </calculations>
790 </uesk> 873 </uesk>
791 </dc:macro> 874 </dc:macro>
792 <dc:macro name="flood-map-complete"> 875 <dc:macro name="flood-map-complete">
876 <buildings>
877 <dc:call-macro name="flood-map-buildings"/>
878 </buildings>
879 <catchments>
880 <dc:call-macro name="flood-map-catchments"/>
881 </catchments>
882 <fixpoints>
883 <dc:call-macro name="flood-map-fixpoints"/>
884 </fixpoints>
885 <hws>
886 <dc:call-macro name="flood-map-hws"/>
887 </hws>
888 <hydrboundaries>
889 <dc:call-macro name="flood-map-hydr-boundaries"/>
890 <dc:call-macro name="flood-map-floodplain"/>
891 </hydrboundaries>
793 <kilometrage> 892 <kilometrage>
794 <riveraxis> 893 <riveraxis>
795 <dc:attribute name="factory" value="riveraxis"/> 894 <dc:attribute name="factory" value="riveraxis"/>
796 <dc:attribute name="ids" value="${river_id}"/> 895 <dc:attribute name="ids" value="${river_id}"/>
797 </riveraxis> 896 </riveraxis>
798 <dc:call-macro name="flood-map-km"/> 897 <dc:call-macro name="flood-map-km"/>
799 <dc:call-macro name="flood-map-qps"/> 898 <dc:call-macro name="flood-map-qps"/>
800 <dc:call-macro name="flood-map-floodplain"/> 899 </kilometrage>
900 <lines>
801 <dc:call-macro name="flood-map-lines"/> 901 <dc:call-macro name="flood-map-lines"/>
802 <dc:call-macro name="flood-map-buildings"/> 902 </lines>
803 <dc:call-macro name="flood-map-fixpoints"/>
804 </kilometrage>
805 <dc:call-macro name="flood-map-uesk"/> 903 <dc:call-macro name="flood-map-uesk"/>
806 <catchments>
807 <dc:call-macro name="flood-map-catchments"/>
808 </catchments>
809 <hws>
810 <dc:call-macro name="flood-map-hws"/>
811 </hws>
812 <rastermap> 904 <rastermap>
813 <background> 905 <background>
814 <dc:attribute name="factory" value="wmsbackground"/> 906 <dc:attribute name="factory" value="wmsbackground"/>
815 <dc:attribute name="ids" value="${river_id}"/> 907 <dc:attribute name="ids" value="${river_id}"/>
816 </background> 908 </background>

http://dive4elements.wald.intevation.org