Mercurial > dive4elements > river
comparison flys-artifacts/doc/conf/meta-data.xml @ 2582:631dabad9b48
Modified the datacage structure of 'floodmaps'.
flys-artifacts/trunk@4132 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Thu, 08 Mar 2012 14:21:09 +0000 |
parents | 3d240200364c |
children | b23c956c5aa2 |
comparison
equal
deleted
inserted
replaced
2581:afebbe9c2fce | 2582:631dabad9b48 |
---|---|
703 </dc:macro> | 703 </dc:macro> |
704 <dc:macro name="flood-map-uesk"> | 704 <dc:macro name="flood-map-uesk"> |
705 <uesk> | 705 <uesk> |
706 <calculations> | 706 <calculations> |
707 <current> | 707 <current> |
708 <dc:context> | 708 <bfg> |
709 <dc:statement> | 709 <dc:context> |
710 SELECT count(*) as uesg_exist, name as name | 710 <dc:statement> |
711 FROM floodmaps | 711 SELECT count(*) as uesg_exist, name as name |
712 WHERE river_id = ${river_id} AND kind = 111 | 712 FROM floodmaps |
713 GROUP BY name, kind | 713 WHERE river_id = ${river_id} AND kind = 111 |
714 </dc:statement> | 714 GROUP BY name, kind |
715 <dc:elements> | 715 </dc:statement> |
716 <dc:if test="$uesg_exist>0"> | 716 <dc:elements> |
717 <bfg> | 717 <dc:if test="$uesg_exist>0"> |
718 <dc:attribute name="factory" value="wmsfloodmapsfactory"/> | 718 <floodmaps> |
719 <dc:attribute name="ids" value="${river_id}_${name}"/> | 719 <dc:attribute name="factory" value="wmsfloodmapsfactory"/> |
720 <dc:attribute name="name" value="${name}"/> | 720 <dc:attribute name="ids" value="${river_id}_${name}"/> |
721 </bfg> | 721 <dc:attribute name="name" value="${name}"/> |
722 </dc:if> | 722 </floodmaps> |
723 </dc:elements> | 723 </dc:if> |
724 </dc:context> | 724 </dc:elements> |
725 <dc:context> | 725 </dc:context> |
726 <dc:statement> | 726 </bfg> |
727 SELECT count(*) as uesg_exist, name as name | 727 <land> |
728 FROM floodmaps | 728 <dc:context> |
729 WHERE river_id = ${river_id} AND kind = 112 | 729 <dc:statement> |
730 GROUP BY name, kind | 730 SELECT count(*) as uesg_exist, name as name |
731 </dc:statement> | 731 FROM floodmaps |
732 <dc:elements> | 732 WHERE river_id = ${river_id} AND kind = 112 |
733 <dc:if test="$uesg_exist>0"> | 733 GROUP BY name, kind |
734 <land> | 734 </dc:statement> |
735 <dc:attribute name="factory" value="wmsfloodmapsfactory"/> | 735 <dc:elements> |
736 <dc:attribute name="ids" value="${river_id}_${name}"/> | 736 <dc:if test="$uesg_exist>0"> |
737 <dc:attribute name="name" value="${name}"/> | 737 <floodmaps> |
738 </land> | 738 <dc:attribute name="factory" value="wmsfloodmapsfactory"/> |
739 </dc:if> | 739 <dc:attribute name="ids" value="${river_id}_${name}"/> |
740 </dc:elements> | 740 <dc:attribute name="name" value="${name}"/> |
741 </dc:context> | 741 </floodmaps> |
742 </dc:if> | |
743 </dc:elements> | |
744 </dc:context> | |
745 </land> | |
742 </current> | 746 </current> |
743 <potentiel> | 747 <potentiel> |
744 <dc:context> | 748 <bfg> |
745 <dc:statement> | 749 <dc:context> |
746 SELECT count(*) as uesg_exist, name as name | 750 <dc:statement> |
747 FROM floodmaps | 751 SELECT count(*) as uesg_exist, name as name |
748 WHERE river_id = ${river_id} AND kind = 121 | 752 FROM floodmaps |
749 GROUP BY name, kind | 753 WHERE river_id = ${river_id} AND kind = 121 |
750 </dc:statement> | 754 GROUP BY name, kind |
751 <dc:elements> | 755 </dc:statement> |
752 <dc:if test="$uesg_exist>0"> | 756 <dc:elements> |
753 <bfg> | 757 <dc:if test="$uesg_exist>0"> |
754 <dc:attribute name="factory" value="wmsfloodmapsfactory"/> | 758 <floodmaps> |
755 <dc:attribute name="ids" value="${river_id}_${name}"/> | 759 <dc:attribute name="factory" value="wmsfloodmapsfactory"/> |
756 <dc:attribute name="name" value="${name}"/> | 760 <dc:attribute name="ids" value="${river_id}_${name}"/> |
757 </bfg> | 761 <dc:attribute name="name" value="${name}"/> |
758 </dc:if> | 762 </floodmaps> |
759 </dc:elements> | 763 </dc:if> |
760 </dc:context> | 764 </dc:elements> |
761 <dc:context> | 765 </dc:context> |
762 <dc:statement> | 766 </bfg> |
763 SELECT count(*) as uesg_exist, name as name | 767 <land> |
764 FROM floodmaps | 768 <dc:context> |
765 WHERE river_id = ${river_id} AND kind = 122 | 769 <dc:statement> |
766 GROUP BY name, kind | 770 SELECT count(*) as uesg_exist, name as name |
767 </dc:statement> | 771 FROM floodmaps |
768 <dc:elements> | 772 WHERE river_id = ${river_id} AND kind = 122 |
769 <dc:if test="$uesg_exist>0"> | 773 GROUP BY name, kind |
770 <land> | 774 </dc:statement> |
771 <dc:attribute name="factory" value="wmsfloodmapsfactory"/> | 775 <dc:elements> |
772 <dc:attribute name="ids" value="${river_id}_${name}"/> | 776 <dc:if test="$uesg_exist>0"> |
773 <dc:attribute name="name" value="${name}"/> | 777 <floodmaps> |
774 </land> | 778 <dc:attribute name="factory" value="wmsfloodmapsfactory"/> |
775 </dc:if> | 779 <dc:attribute name="ids" value="${river_id}_${name}"/> |
776 </dc:elements> | 780 <dc:attribute name="name" value="${name}"/> |
777 </dc:context> | 781 </floodmaps> |
782 </dc:if> | |
783 </dc:elements> | |
784 </dc:context> | |
785 </land> | |
778 </potentiel> | 786 </potentiel> |
779 </calculations> | 787 </calculations> |
780 </uesk> | 788 </uesk> |
781 </dc:macro> | 789 </dc:macro> |
782 <dc:macro name="flood-map-complete"> | 790 <dc:macro name="flood-map-complete"> |