Mercurial > dive4elements > river
comparison flys-artifacts/doc/conf/meta-data.xml @ 5312:2c1045a1e3fe
Added new states and transitions to UESK calculation and adjusted states and UI.
TODO: Some refactoring and code cleanup.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Thu, 14 Mar 2013 17:25:00 +0100 |
parents | a75acd0d5fee |
children | 91070b784212 |
comparison
equal
deleted
inserted
replaced
5311:ff9dfc58d0cb | 5312:2c1045a1e3fe |
---|---|
935 </dc:context> | 935 </dc:context> |
936 </discharge_table_gauge> | 936 </discharge_table_gauge> |
937 </discharge_table_nn> | 937 </discharge_table_nn> |
938 </dc:if> | 938 </dc:if> |
939 | 939 |
940 <dc:if test="dc:contains($artifact-outs, 'floodmap')"> | 940 <dc:if test="dc:contains($artifact-outs, 'floodmap') or dc:contains($artifact-outs, 'floodmap-hws')"> |
941 <floodmap> | 941 <floodmap> |
942 <dc:choose> | 942 <dc:choose> |
943 <dc:when test="dc:contains($parameters, 'recommended')"> | 943 <dc:when test="dc:contains($parameters, 'recommended')"> |
944 <dc:call-macro name="flood-map-recommended"/> | 944 <dc:call-macro name="flood-map-recommended"/> |
945 </dc:when> | 945 </dc:when> |
946 <dc:when test="dc:contains($parameters, 'dem')"> | 946 <dc:when test="dc:contains($parameters, 'dem')"> |
947 <dc:call-macro name="flood-map-dem"/> | 947 <dc:call-macro name="flood-map-dem"/> |
948 </dc:when> | |
949 <dc:when test="dc:contains($parameters, 'hws')"> | |
950 <dc:call-macro name="flood-map-hws-lines" /> | |
951 <dc:call-macro name="flood-map-hws-points" /> | |
948 </dc:when> | 952 </dc:when> |
949 <dc:otherwise> | 953 <dc:otherwise> |
950 <dc:call-macro name="flood-map-complete"/> | 954 <dc:call-macro name="flood-map-complete"/> |
951 </dc:otherwise> | 955 </dc:otherwise> |
952 </dc:choose> | 956 </dc:choose> |
990 <dc:attribute name="info" value="${info}"/> | 994 <dc:attribute name="info" value="${info}"/> |
991 </dem> | 995 </dem> |
992 </dc:elements> | 996 </dc:elements> |
993 </dc:context> | 997 </dc:context> |
994 </dems> | 998 </dems> |
999 </dc:macro> | |
1000 <dc:macro name="flood-map-hws-lines"> | |
1001 <dc:context> | |
1002 <dc:statement> | |
1003 SELECT DISTINCT | |
1004 name AS hws_name, | |
1005 official AS hws_official, | |
1006 kind_id AS hws_kind | |
1007 FROM hws_lines | |
1008 WHERE river_id = ${river_id} | |
1009 </dc:statement> | |
1010 <lines> | |
1011 <official> | |
1012 <Durchlass> | |
1013 <dc:elements filter="$hws_kind=1 and $hws_official=1"> | |
1014 <hws> | |
1015 <dc:attribute name="factory" value="hwsfactory"/> | |
1016 <dc:attribute name="name" value="${hws_name}"/> | |
1017 </hws> | |
1018 </dc:elements> | |
1019 </Durchlass> | |
1020 <Damm> | |
1021 <dc:elements filter="$hws_kind=2 and $hws_official=1"> | |
1022 <hws> | |
1023 <dc:attribute name="factory" value="hwsfactory"/> | |
1024 <dc:attribute name="name" value="${hws_name}"/> | |
1025 </hws> | |
1026 </dc:elements> | |
1027 </Damm> | |
1028 <Graben> | |
1029 <dc:elements filter="$hws_kind=3 and $hws_official=1"> | |
1030 <hws> | |
1031 <dc:attribute name="factory" value="hwsfactory"/> | |
1032 <dc:attribute name="name" value="${hws_name}"/> | |
1033 </hws> | |
1034 </dc:elements> | |
1035 </Graben> | |
1036 </official> | |
1037 <inofficial> | |
1038 <Durchlass> | |
1039 <dc:elements filter="$hws_kind=1 and $hws_official=0"> | |
1040 <hws> | |
1041 <dc:attribute name="factory" value="hwsfactory"/> | |
1042 <dc:attribute name="name" value="${hws_name}"/> | |
1043 </hws> | |
1044 </dc:elements> | |
1045 </Durchlass> | |
1046 <Damn> | |
1047 <dc:elements filter="$hws_kind=2 and $hws_official=0"> | |
1048 <hws> | |
1049 <dc:attribute name="factory" value="hwsfactory"/> | |
1050 <dc:attribute name="name" value="${hws_name}"/> | |
1051 </hws> | |
1052 </dc:elements> | |
1053 </Damn> | |
1054 <Graben> | |
1055 <dc:elements filter="$hws_kind=3 and $hws_official=0"> | |
1056 <hws> | |
1057 <dc:attribute name="factory" value="hwsfactory"/> | |
1058 <dc:attribute name="name" value="${hws_name}"/> | |
1059 </hws> | |
1060 </dc:elements> | |
1061 </Graben> | |
1062 </inofficial> | |
1063 </lines> | |
1064 </dc:context> | |
1065 </dc:macro> | |
1066 <dc:macro name="flood-map-hws-points"> | |
1067 <dc:context> | |
1068 <dc:statement> | |
1069 SELECT DISTINCT | |
1070 name AS hws_points_name, | |
1071 official AS hws_points_official, | |
1072 kind_id AS hws_points_kind | |
1073 FROM hws_points | |
1074 WHERE river_id = ${river_id} | |
1075 </dc:statement> | |
1076 <points> | |
1077 <official> | |
1078 <Durchlass> | |
1079 <dc:elements filter="$hws_points_kind=1 and $hws_points_official=1"> | |
1080 <hws> | |
1081 <dc:attribute name="factory" value="hwsfactory"/> | |
1082 <dc:attribute name="name" value="${hws_points_name}"/> | |
1083 </hws> | |
1084 </dc:elements> | |
1085 </Durchlass> | |
1086 <Damm> | |
1087 <dc:elements filter="$hws_points_kind=2 and $hws_points_official=1"> | |
1088 <hws> | |
1089 <dc:attribute name="factory" value="hwsfactory"/> | |
1090 <dc:attribute name="name" value="${hws_points_name}"/> | |
1091 </hws> | |
1092 </dc:elements> | |
1093 </Damm> | |
1094 <Graben> | |
1095 <dc:elements filter="$hws_kind=3 and $hws_official=1"> | |
1096 <hws> | |
1097 <dc:attribute name="factory" value="hwsfactory"/> | |
1098 <dc:attribute name="name" value="${hws_points_name}"/> | |
1099 </hws> | |
1100 </dc:elements> | |
1101 </Graben> | |
1102 </official> | |
1103 <inofficial> | |
1104 <Durchlass> | |
1105 <dc:elements filter="$hws_points_kind=1 and $hws_points_official=0"> | |
1106 <hws> | |
1107 <dc:attribute name="factory" value="hwsfactory"/> | |
1108 <dc:attribute name="name" value="${hws_points_name}"/> | |
1109 </hws> | |
1110 </dc:elements> | |
1111 </Durchlass> | |
1112 <Damm> | |
1113 <dc:elements filter="$hws_points_kind=2 and $hws_points_official=0"> | |
1114 <hws> | |
1115 <dc:attribute name="factory" value="hwsfactory"/> | |
1116 <dc:attribute name="name" value="${hws_points_name}"/> | |
1117 </hws> | |
1118 </dc:elements> | |
1119 </Damm> | |
1120 <Graben> | |
1121 <dc:elements filter="$hws_points_kind=3 and $hws_points_official=0"> | |
1122 <hws> | |
1123 <dc:attribute name="factory" value="hwsfactory"/> | |
1124 <dc:attribute name="name" value="${hws_points_name}"/> | |
1125 </hws> | |
1126 </dc:elements> | |
1127 </Graben> | |
1128 </inofficial> | |
1129 </points> | |
1130 </dc:context> | |
995 </dc:macro> | 1131 </dc:macro> |
996 <dc:macro name="flood-map-km"> | 1132 <dc:macro name="flood-map-km"> |
997 <dc:context> | 1133 <dc:context> |
998 <dc:statement> | 1134 <dc:statement> |
999 SELECT count(*) as km_exists | 1135 SELECT count(*) as km_exists |
1986 </dc:context> | 2122 </dc:context> |
1987 </dc:elements> | 2123 </dc:elements> |
1988 </fix_vollmer_wq_curve> | 2124 </fix_vollmer_wq_curve> |
1989 </dc:macro> | 2125 </dc:macro> |
1990 | 2126 |
2127 <dc:macro name="floodmap-hws-user"> | |
2128 <dc:context> | |
2129 <dc:statement> | |
2130 SELECT id AS out_id | |
2131 FROM outs | |
2132 WHERE artifact_id = ${a_id} AND name = 'floodmap' | |
2133 </dc:statement> | |
2134 <dc:elements> | |
2135 <dc:context> | |
2136 <dc:statement> | |
2137 SELECT name AS facet_name, num as facet_num, description AS facet_description | |
2138 FROM facets | |
2139 WHERE out_id = ${out_id} and name = 'floodmap.usershape' | |
2140 ORDER BY num ASC, name DESC | |
2141 </dc:statement> | |
2142 <own-hws> | |
2143 <dc:elements> | |
2144 <dc:element name="${facet_name}"> | |
2145 <dc:attribute name="description" value="${facet_description}"/> | |
2146 <dc:attribute name="ids" value="${facet_num}"/> | |
2147 <dc:attribute name="factory" value="winfo"/> | |
2148 <dc:attribute name="artifact-id" value="${a_gid}"/> | |
2149 <dc:attribute name="out" value="floodmap"/> | |
2150 </dc:element> | |
2151 </dc:elements> | |
2152 </own-hws> | |
2153 </dc:context> | |
2154 </dc:elements> | |
2155 </dc:context> | |
2156 </dc:macro> | |
1991 <dc:if test="dc:contains($artifact-outs, 'longitudinal_section') or (dc:contains($artifact-outs, 'discharge_longitudinal_section') or (dc:contains($artifact-outs, 'w_differences')))"> | 2157 <dc:if test="dc:contains($artifact-outs, 'longitudinal_section') or (dc:contains($artifact-outs, 'discharge_longitudinal_section') or (dc:contains($artifact-outs, 'w_differences')))"> |
1992 <dc:call-macro name="longitudinal"/> | 2158 <dc:call-macro name="longitudinal"/> |
1993 </dc:if> | 2159 </dc:if> |
1994 <dc:if test="dc:contains($artifact-outs, 'fix_deltawt_curve')"> | 2160 <dc:if test="dc:contains($artifact-outs, 'fix_deltawt_curve')"> |
1995 <dc:call-macro name="delta-wt"/> | 2161 <dc:call-macro name="delta-wt"/> |
2028 <dc:call-macro name="bed-difference"/> | 2194 <dc:call-macro name="bed-difference"/> |
2029 </dc:if> | 2195 </dc:if> |
2030 <dc:if test="dc:contains($artifact-outs, 'bedheight_middle')"> | 2196 <dc:if test="dc:contains($artifact-outs, 'bedheight_middle')"> |
2031 <dc:call-macro name="bed-height"/> | 2197 <dc:call-macro name="bed-height"/> |
2032 </dc:if> | 2198 </dc:if> |
2033 | 2199 <dc:if test="dc:contains($artifact-outs, 'floodmap-hws')"> |
2200 <dc:call-macro name="floodmap-hws-user"/> | |
2201 </dc:if> | |
2034 </dc:context> | 2202 </dc:context> |
2035 </dc:call-macro> | 2203 </dc:call-macro> |
2036 | 2204 |
2037 </old_calculations> | 2205 </old_calculations> |
2038 | 2206 |