comparison artifacts/doc/conf/meta-data.xml @ 9617:1d4262a68f1f

#12 Minuend/Subtrahend + MergeConflict #19 CollisionCalculation
author dnt_bjoernsen <d.tironi@bjoernsen.de>
date Thu, 10 Oct 2019 15:29:02 +0200
parents b9c87bbff6a4
children 02ca823ec9c6
comparison
equal deleted inserted replaced
9616:cedcee24a21a 9617:1d4262a68f1f
1 <?xml version="1.0" encoding="UTF-8"?> 1 <?xml version="1.0" encoding="UTF-8"?>
2 <dc:template xmlns:dc="http://www.intevation.org/2011/Datacage"> 2 <dc:template xmlns:dc="http://www.intevation.org/2011/Datacage">
3 <datacage> 3 <datacage>
4 4
5 <dc:call-macro name="load-user"/> 5 <dc:call-macro name="load-user" />
6 6
7 <dc:call-macro name="load-system"/> 7 <dc:call-macro name="load-system" />
8 8
9 <dc:macro name="load-system"> 9 <dc:macro name="load-system">
10 <dc:context connection="system"> 10 <dc:context connection="system">
11 <dc:statement> 11 <dc:statement>
12 SELECT id AS river_id, name AS river_name 12 SELECT id AS river_id, name AS river_name
13 FROM rivers 13 FROM rivers
14 WHERE lower(name) LIKE lower(${river}) 14 WHERE lower(name) LIKE lower(${river})
15 </dc:statement> 15 </dc:statement>
16 <dc:for-each> 16 <dc:for-each>
17 <dc:call-macro name="generate-system-content"/> 17 <dc:call-macro name="generate-system-content" />
18 </dc:for-each> 18 </dc:for-each>
19 </dc:context> 19 </dc:context>
20 </dc:macro> 20 </dc:macro>
21 21
22 <dc:macro name="load-user"> 22 <dc:macro name="load-user">
23 <old_calculations> 23 <old_calculations>
24 <dc:call-macro name="generate-user-content"/> 24 <dc:call-macro name="generate-user-content" />
25 </old_calculations> 25 </old_calculations>
26 </dc:macro> 26 </dc:macro>
27 27
28 <dc:macro name="generate-system-content"> 28 <dc:macro name="generate-system-content">
29 <dc:message>Generate system content with variables: {dc:dump-variables()}</dc:message> 29 <dc:message>Generate system content with variables: {dc:dump-variables()}</dc:message>
37 <dc:iterate var="out" container="artifact-outs"> 37 <dc:iterate var="out" container="artifact-outs">
38 <dc:message>Rec out iteration for: {$out}</dc:message> 38 <dc:message>Rec out iteration for: {$out}</dc:message>
39 <dc:choose> 39 <dc:choose>
40 <dc:comment> Longitudinal sections </dc:comment> 40 <dc:comment> Longitudinal sections </dc:comment>
41 <dc:when test="$out = 'w_differences'"> 41 <dc:when test="$out = 'w_differences'">
42 <dc:call-macro name="annotations"/> 42 <dc:call-macro name="annotations" />
43 </dc:when> 43 </dc:when>
44 <dc:when test="$out = 'discharge_longitudinal_section'"> 44 <dc:when test="$out = 'discharge_longitudinal_section'">
45 <dc:call-macro name="annotations"/> 45 <dc:call-macro name="annotations" />
46 <dc:call-macro name="officiallines_user"/> 46 <dc:call-macro name="officiallines_user" />
47 </dc:when> 47 </dc:when>
48 <dc:when test="$out = 'longitudinal_section'"> 48 <dc:when test="$out = 'longitudinal_section'">
49 <dc:call-macro name="annotations"/> 49 <dc:call-macro name="annotations" />
50 <dc:call-macro name="officiallines_user"/> 50 <dc:call-macro name="officiallines_user" />
51 </dc:when> 51 </dc:when>
52 <dc:when test="$out = 'fix_longitudinal_section_curve'"> 52 <dc:when test="$out = 'fix_longitudinal_section_curve'">
53 <dc:call-macro name="annotations"/> 53 <dc:call-macro name="annotations" />
54 </dc:when> 54 </dc:when>
55 <dc:when test="$out = 'bedheight_middle'"> 55 <dc:when test="$out = 'bedheight_middle'">
56 <dc:call-macro name="annotations"/> 56 <dc:call-macro name="annotations" />
57 </dc:when> 57 </dc:when>
58 <dc:when test="$out = 'bed_difference_year'"> 58 <dc:when test="$out = 'bed_difference_year'">
59 <dc:call-macro name="annotations"/> 59 <dc:call-macro name="annotations" />
60 <dc:call-macro name="basedata_6_delta_w"/> 60 <dc:call-macro name="basedata_6_delta_w" />
61 <dc:call-macro name="sounding-width-recommendations"/> 61 <dc:call-macro name="sounding-width-recommendations" />
62 </dc:when> 62 </dc:when>
63 <dc:when test="$out = 'bed_difference_height_year'"> 63 <dc:when test="$out = 'bed_difference_height_year'">
64 <dc:call-macro name="annotations"/> 64 <dc:call-macro name="annotations" />
65 <dc:call-macro name="basedata_6_delta_w"/> 65 <dc:call-macro name="basedata_6_delta_w" />
66 </dc:when> 66 </dc:when>
67 <dc:when test="$out = 'sedimentload_ls'"> 67 <dc:when test="$out = 'sedimentload_ls'">
68 <dc:call-macro name="annotations"/> 68 <dc:call-macro name="annotations" />
69 <dc:call-macro name="sedimentload_off_epochs"/> 69 <dc:call-macro name="sedimentload_off_epochs" />
70 </dc:when> 70 </dc:when>
71 <dc:when test="$out = 'bed_longitudinal_section'"> 71 <dc:when test="$out = 'bed_longitudinal_section'">
72 <dc:call-macro name="annotations"/> 72 <dc:call-macro name="annotations" />
73 </dc:when> 73 </dc:when>
74 <dc:when test="$out = 'flow_velocity'"> 74 <dc:when test="$out = 'flow_velocity'">
75 <dc:call-macro name="annotations"/> 75 <dc:call-macro name="annotations" />
76 </dc:when> 76 </dc:when>
77 <dc:comment> Discharge curves </dc:comment> 77 <dc:comment> Discharge curves </dc:comment>
78 <dc:when test="$out = 'historical_discharge_wq'"> 78 <dc:when test="$out = 'historical_discharge_wq'">
79 <dc:call-macro name="hist_discharge_rec"/> 79 <dc:call-macro name="hist_discharge_rec" />
80 <dc:call-macro name="mainvalues"/> 80 <dc:call-macro name="mainvalues" />
81 </dc:when> 81 </dc:when>
82 <dc:when test="$out = 'discharge_curve'"> 82 <dc:when test="$out = 'discharge_curve'">
83 <dc:call-macro name="mainvalues"/> 83 <dc:call-macro name="mainvalues" />
84 <dc:call-macro name="basedata_3_officials_wq"/> 84 <dc:call-macro name="basedata_3_officials_wq" />
85 </dc:when> 85 </dc:when>
86 <dc:when test="$out = 'computed_discharge_curve'"> 86 <dc:when test="$out = 'computed_discharge_curve'">
87 <dc:call-macro name="mainvalues"/> 87 <dc:call-macro name="mainvalues" />
88 <dc:call-macro name="basedata_3_officials_wq"/> 88 <dc:call-macro name="basedata_3_officials_wq" />
89 <dc:call-macro name="basedata_2_fixations_wq"/> 89 <dc:call-macro name="basedata_2_fixations_wq" />
90 </dc:when> 90 </dc:when>
91 <dc:when test="$out = 'fix_wq_curve'"> 91 <dc:when test="$out = 'fix_wq_curve'">
92 <dc:call-macro name="mainvalues"/> 92 <dc:call-macro name="mainvalues" />
93 <dc:call-macro name="qsectors"/> 93 <dc:call-macro name="qsectors" />
94 </dc:when> 94 </dc:when>
95 <dc:when test="$out = 'fix_derivate_curve'"> 95 <dc:when test="$out = 'fix_derivate_curve'">
96 <dc:call-macro name="qmainvalues"/> 96 <dc:call-macro name="qmainvalues" />
97 </dc:when> 97 </dc:when>
98 <dc:when test="starts-with($out, 'sq_') and 98 <dc:when test="starts-with($out, 'sq_') and
99 not($out = 'sq_relation_export')"> 99 not($out = 'sq_relation_export')">
100 <dc:call-macro name="qmainvalues"/> 100 <dc:call-macro name="qmainvalues" />
101 </dc:when> 101 </dc:when>
102 <dc:comment> Cross sections </dc:comment> 102 <dc:comment> Cross sections </dc:comment>
103 <dc:when test="$out = 'cross_section'"> 103 <dc:when test="$out = 'cross_section'">
104 <dc:call-macro name="cross_sections"/> 104 <dc:call-macro name="cross_sections" />
105 <dc:call-macro name="hyks"/> 105 <dc:call-macro name="hyks" />
106 <dc:call-macro name="officiallines_user"/> 106 <dc:call-macro name="officiallines_user" />
107 </dc:when> 107 </dc:when>
108 <dc:comment> Duration curve </dc:comment> 108 <dc:comment> Duration curve </dc:comment>
109 <dc:when test="$out = 'duration_curve'"> 109 <dc:when test="$out = 'duration_curve'">
110 <dc:call-macro name="mainvalues"/> 110 <dc:call-macro name="mainvalues" />
111 </dc:when> 111 </dc:when>
112 <dc:comment> Reference curve </dc:comment> 112 <dc:comment> Reference curve </dc:comment>
113 <dc:when test="$out = 'reference_curve'"> 113 <dc:when test="$out = 'reference_curve'">
114 <dc:call-macro name="mainvalues"/> 114 <dc:call-macro name="mainvalues" />
115 </dc:when> 115 </dc:when>
116 <dc:comment> Maps </dc:comment> 116 <dc:comment> Maps </dc:comment>
117 <dc:when test="$out = 'floodmap'"> 117 <dc:when test="$out = 'floodmap'">
118 <dc:call-macro name="flood-map-recommended"/> 118 <dc:call-macro name="flood-map-recommended" />
119 </dc:when> 119 </dc:when>
120 120
121 <dc:when test="$out = 'sinfo_flow_depth'"> 121 <dc:when test="$out = 'sinfo_flow_depth'">
122 <dc:call-macro name="annotations"/> 122 <dc:call-macro name="annotations" />
123 </dc:when> 123 </dc:when>
124 <dc:when test="$out = 'sinfo_flow_depth_minmax'"> 124 <dc:when test="$out = 'sinfo_flow_depth_minmax'">
125 <dc:call-macro name="annotations"/> 125 <dc:call-macro name="annotations" />
126 </dc:when> 126 </dc:when>
127 <dc:when test="$out = 'sinfo_flow_depth_development'"> 127 <dc:when test="$out = 'sinfo_flow_depth_development'">
128 <dc:call-macro name="annotations"/> 128 <dc:call-macro name="annotations" />
129 </dc:when> 129 </dc:when>
130 <dc:when test="$out = 'sinfo_flow_depth_development_peryear'"> 130 <dc:when test="$out = 'sinfo_flow_depth_development_peryear'">
131 <dc:call-macro name="annotations"/> 131 <dc:call-macro name="annotations" />
132 </dc:when> 132 </dc:when>
133 <dc:when test="$out = 'sinfo_tkk'"> 133 <dc:when test="$out = 'sinfo_tkk'">
134 <dc:call-macro name="annotations"/> 134 <dc:call-macro name="annotations" />
135 </dc:when> 135 </dc:when>
136 <dc:when test="$out = 'sinfo_collision'"> 136 <dc:when test="$out = 'sinfo_collision'">
137 <dc:call-macro name="annotations"/> 137 <dc:call-macro name="annotations" />
138 </dc:when> 138 </dc:when>
139 <dc:when test="$out = 'sinfo_flood_duration'"> 139 <dc:when test="$out = 'sinfo_flood_duration'">
140 <dc:call-macro name="annotations"/> 140 <dc:call-macro name="annotations" />
141 </dc:when> 141 </dc:when>
142 <dc:when test="$out = 'sinfo_flood_height'"> 142 <dc:when test="$out = 'sinfo_flood_height'">
143 <dc:call-macro name="annotations"/> 143 <dc:call-macro name="annotations" />
144 </dc:when> 144 </dc:when>
145 <dc:when test="$out = 'sinfo_floodduration_curve'"> 145 <dc:when test="$out = 'sinfo_floodduration_curve'">
146 <dc:call-macro name="mainvalues" /> 146 <dc:call-macro name="mainvalues" />
147 </dc:when> 147 </dc:when>
148 <dc:when test="$out = 'uinfo_salix_line'"> 148 <dc:when test="$out = 'uinfo_salix_line'">
149 <dc:call-macro name="annotations"/> 149 <dc:call-macro name="annotations" />
150 </dc:when> 150 </dc:when>
151 <dc:when test="$out = 'bundu_wspl_longitudinal_section'"> 151 <dc:when test="$out = 'bundu_wspl_longitudinal_section'">
152 <dc:call-macro name="annotations"/> 152 <dc:call-macro name="annotations" />
153 </dc:when> 153 </dc:when>
154 <dc:when test="$out = 'bundu_depth_longitudinal_section'"> 154 <dc:when test="$out = 'bundu_depth_longitudinal_section'">
155 <dc:call-macro name="annotations"/> 155 <dc:call-macro name="annotations" />
156 </dc:when> 156 </dc:when>
157 </dc:choose> 157 </dc:choose>
158 </dc:iterate> 158 </dc:iterate>
159 </dc:when> 159 </dc:when>
160 <dc:otherwise> 160 <dc:otherwise>
164 <dc:iterate var="out" container="artifact-outs"> 164 <dc:iterate var="out" container="artifact-outs">
165 <dc:message>Non Rec out iteration for: {$out}</dc:message> 165 <dc:message>Non Rec out iteration for: {$out}</dc:message>
166 <dc:choose> 166 <dc:choose>
167 <dc:comment> Inline datacage panels </dc:comment> 167 <dc:comment> Inline datacage panels </dc:comment>
168 <dc:when test="$out = 'minfo_diff_panel'"> 168 <dc:when test="$out = 'minfo_diff_panel'">
169 <dc:call-macro name="minfo-heights-diff"/> 169 <dc:call-macro name="minfo-heights-diff" />
170 </dc:when> 170 </dc:when>
171 <dc:when test="$out = 'floodmap_dem_panel'"> 171 <dc:when test="$out = 'floodmap_dem_panel'">
172 <dc:call-macro name="flood-map-dem"/> 172 <dc:call-macro name="flood-map-dem" />
173 </dc:when> 173 </dc:when>
174 <dc:when test="$out = 'floodmap_hws_panel'"> 174 <dc:when test="$out = 'floodmap_hws_panel'">
175 <hws> 175 <hws>
176 <dc:call-macro name="flood-map-hws-lines"/> 176 <dc:call-macro name="flood-map-hws-lines" />
177 <dc:call-macro name="flood-map-hws-points"/> 177 <dc:call-macro name="flood-map-hws-points" />
178 </hws> 178 </hws>
179 </dc:when> 179 </dc:when>
180 <dc:when test="$out = 'winfo_diff_twin_panel'"> 180 <dc:when test="$out = 'winfo_diff_twin_panel'">
181 <dc:if test="$current-state-id != 'state.winfo.uesk.wsp'"> 181 <dc:if test="$current-state-id != 'state.winfo.uesk.wsp'">
182 <dc:call-macro name="basedata_0"/> 182 <dc:call-macro name="basedata_0" />
183 <dc:call-macro name="basedata_1_additionals"/> 183 <dc:call-macro name="basedata_1_additionals" />
184 <dc:call-macro name="basedata_2_fixations"/> 184 <dc:call-macro name="basedata_2_fixations" />
185 <dc:call-macro name="basedata_4_heightmarks-points"/> 185 <dc:call-macro name="basedata_4_heightmarks-points" />
186 <dc:call-macro name="basedata_5_flood-protections"/> 186 <dc:call-macro name="basedata_5_flood-protections" />
187 </dc:if> 187 </dc:if>
188 </dc:when> 188 </dc:when>
189 <dc:when test="$out = 'waterlevels_panel'"> 189 <dc:when test="$out = 'waterlevels_panel'">
190 <dc:call-macro name="basedata_0"/> 190 <dc:call-macro name="basedata_0" />
191 <dc:call-macro name="basedata_1_additionals"/> 191 <dc:call-macro name="basedata_1_additionals" />
192 <dc:call-macro name="basedata_2_fixations"/> 192 <dc:call-macro name="basedata_2_fixations" />
193 <dc:call-macro name="basedata_3_officials"/> 193 <dc:call-macro name="basedata_3_officials" />
194 <dc:call-macro name="basedata_4_heightmarks-points"/> 194 <dc:call-macro name="basedata_4_heightmarks-points" />
195 <dc:call-macro name="basedata_5_flood-protections"/> 195 <dc:call-macro name="basedata_5_flood-protections" />
196 </dc:when> 196 </dc:when>
197 <dc:comment> Longitudinal sections </dc:comment> 197 <dc:comment> Longitudinal sections </dc:comment>
198 <dc:when test="$out = 'longitudinal_section'"> 198 <dc:when test="$out = 'longitudinal_section'">
199 <dc:call-macro name="longitudinal-section-prototype"/> 199 <dc:call-macro name="longitudinal-section-prototype" />
200 </dc:when> 200 </dc:when>
201 <dc:when test="$out = 'w_differences'"> 201 <dc:when test="$out = 'w_differences'">
202 <dc:call-macro name="longitudinal-section-prototype"/> 202 <dc:call-macro name="longitudinal-section-prototype" />
203 </dc:when> 203 </dc:when>
204 <dc:when test="$out = 'discharge_longitudinal_section'"> 204 <dc:when test="$out = 'discharge_longitudinal_section'">
205 <dc:call-macro name="longitudinal-section-prototype"/> 205 <dc:call-macro name="longitudinal-section-prototype" />
206 </dc:when> 206 </dc:when>
207 <dc:when test="$out = 'fix_longitudinal_section_curve'"> 207 <dc:when test="$out = 'fix_longitudinal_section_curve'">
208 <dc:call-macro name="longitudinal-section-prototype"/> 208 <dc:call-macro name="longitudinal-section-prototype" />
209 </dc:when> 209 </dc:when>
210 <dc:when test="$out = 'flow_velocity'"> 210 <dc:when test="$out = 'flow_velocity'">
211 <dc:call-macro name="longitudinal-section-prototype"/> 211 <dc:call-macro name="longitudinal-section-prototype" />
212 </dc:when> 212 </dc:when>
213 <dc:when test="$out = 'bed_longitudinal_section'"> 213 <dc:when test="$out = 'bed_longitudinal_section'">
214 <dc:call-macro name="longitudinal-section-prototype"/> 214 <dc:call-macro name="longitudinal-section-prototype" />
215 </dc:when> 215 </dc:when>
216 <dc:when test="$out = 'sedimentload_ls'"> 216 <dc:when test="$out = 'sedimentload_ls'">
217 <dc:call-macro name="longitudinal-section-prototype"/> 217 <dc:call-macro name="longitudinal-section-prototype" />
218 </dc:when> 218 </dc:when>
219 <dc:when test="$out = 'bedheight_middle'"> 219 <dc:when test="$out = 'bedheight_middle'">
220 <dc:call-macro name="longitudinal-section-prototype"/> 220 <dc:call-macro name="longitudinal-section-prototype" />
221 </dc:when> 221 </dc:when>
222 <dc:when test="$out = 'bed_difference_height_year'"> 222 <dc:when test="$out = 'bed_difference_height_year'">
223 <dc:call-macro name="longitudinal-section-prototype"/> 223 <dc:call-macro name="longitudinal-section-prototype" />
224 </dc:when> 224 </dc:when>
225 <dc:when test="$out = 'bed_difference_year'"> 225 <dc:when test="$out = 'bed_difference_year'">
226 <dc:call-macro name="longitudinal-section-prototype"/> 226 <dc:call-macro name="longitudinal-section-prototype" />
227 </dc:when> 227 </dc:when>
228 <dc:comment> Discharge curves </dc:comment> 228 <dc:comment> Discharge curves </dc:comment>
229 <dc:when test="$out = 'historical_discharge_wq'"> 229 <dc:when test="$out = 'historical_discharge_wq'">
230 <dc:call-macro name="discharge-curve-prototype"/> 230 <dc:call-macro name="discharge-curve-prototype" />
231 </dc:when> 231 </dc:when>
232 <dc:when test="$out = 'discharge_curve'"> 232 <dc:when test="$out = 'discharge_curve'">
233 <dc:call-macro name="discharge-curve-prototype"/> 233 <dc:call-macro name="discharge-curve-prototype" />
234 </dc:when> 234 </dc:when>
235 <dc:when test="$out = 'fix_wq_curve'"> 235 <dc:when test="$out = 'fix_wq_curve'">
236 <dc:call-macro name="discharge-curve-prototype"/> 236 <dc:call-macro name="discharge-curve-prototype" />
237 </dc:when> 237 </dc:when>
238 <dc:when test="$out = 'fix_derivate_curve'"> 238 <dc:when test="$out = 'fix_derivate_curve'">
239 <dc:call-macro name="discharge-curve-prototype"/> 239 <dc:call-macro name="discharge-curve-prototype" />
240 </dc:when> 240 </dc:when>
241 <dc:when test="$out = 'computed_discharge_curve'"> 241 <dc:when test="$out = 'computed_discharge_curve'">
242 <dc:call-macro name="discharge-curve-prototype"/> 242 <dc:call-macro name="discharge-curve-prototype" />
243 </dc:when> 243 </dc:when>
244 <dc:when test="starts-with($out, 'sq_relation') or 244 <dc:when test="starts-with($out, 'sq_relation') or
245 $out = 'sq_overview'"> 245 $out = 'sq_overview'">
246 <dc:call-macro name="discharge-curve-prototype"/> 246 <dc:call-macro name="discharge-curve-prototype" />
247 </dc:when> 247 </dc:when>
248 <dc:comment> Cross sections </dc:comment> 248 <dc:comment> Cross sections </dc:comment>
249 <dc:when test="$out = 'cross_section'"> 249 <dc:when test="$out = 'cross_section'">
250 <dc:call-macro name="basedata_0"/> 250 <dc:call-macro name="basedata_0" />
251 <dc:call-macro name="basedata_1_additionals"/> 251 <dc:call-macro name="basedata_1_additionals" />
252 <dc:call-macro name="basedata_2_fixations"/> 252 <dc:call-macro name="basedata_2_fixations" />
253 <dc:call-macro name="basedata_3_officials"/> 253 <dc:call-macro name="basedata_3_officials" />
254 <dc:call-macro name="basedata_4_heightmarks-points"/> 254 <dc:call-macro name="basedata_4_heightmarks-points" />
255 <dc:call-macro name="cross_sections"/> 255 <dc:call-macro name="cross_sections" />
256 <dc:call-macro name="basedata_5_flood-protections"/> 256 <dc:call-macro name="basedata_5_flood-protections" />
257 <dc:call-macro name="hyks"/> 257 <dc:call-macro name="hyks" />
258 <dc:call-macro name="predefined_vegetation_zones"/> 258 <dc:call-macro name="predefined_vegetation_zones" />
259 </dc:when> 259 </dc:when>
260 <dc:comment> Duration curve </dc:comment> 260 <dc:comment> Duration curve </dc:comment>
261 <dc:when test="$out = 'duration_curve'"> 261 <dc:when test="$out = 'duration_curve'">
262 <dc:call-macro name="duration_curve_system"/> 262 <dc:call-macro name="duration_curve_system" />
263 </dc:when> 263 </dc:when>
264 <dc:comment> Reference curve </dc:comment> 264 <dc:comment> Reference curve </dc:comment>
265 <dc:when test="$out = 'reference_curve'"> 265 <dc:when test="$out = 'reference_curve'">
266 <dc:call-macro name="mainvalues"/> 266 <dc:call-macro name="mainvalues" />
267 <dc:call-macro name="annotations"/> 267 <dc:call-macro name="annotations" />
268 <dc:call-macro name="basedata_1_additionals-relative_point"/> 268 <dc:call-macro name="basedata_1_additionals-relative_point" />
269 <dc:call-macro name="basedata_2_fixations_relative_point"/> 269 <dc:call-macro name="basedata_2_fixations_relative_point" />
270 <dc:call-macro name="basedata_4_heightmarks-points-relative_points"/> 270 <dc:call-macro name="basedata_4_heightmarks-points-relative_points" />
271 <dc:call-macro name="basedata_5_flood-protections_relative_points"/> 271 <dc:call-macro name="basedata_5_flood-protections_relative_points" />
272 </dc:when> 272 </dc:when>
273 <dc:comment> Maps </dc:comment> 273 <dc:comment> Maps </dc:comment>
274 <dc:when test="$out = 'map'"> 274 <dc:when test="$out = 'map'">
275 <dc:call-macro name="flood-map-complete"/> 275 <dc:call-macro name="flood-map-complete" />
276 </dc:when> 276 </dc:when>
277 <dc:when test="$out = 'floodmap'"> 277 <dc:when test="$out = 'floodmap'">
278 <dc:call-macro name="flood-map-complete"/> 278 <dc:call-macro name="flood-map-complete" />
279 </dc:when> 279 </dc:when>
280 280
281 <dc:comment> S-INFO </dc:comment> 281 <dc:comment> S-INFO </dc:comment>
282 <dc:when test="$out = 'sinfo_flowdepth_minfo_heights'"> 282 <dc:when test="$out = 'sinfo_flowdepth_minfo_heights'">
283 <dc:call-macro name="bed-heights-single-MW"/> 283 <dc:call-macro name="bed-heights-single-MW" />
284 </dc:when> 284 </dc:when>
285 <dc:when test="$out = 'sinfo_flowdepthminmax_heights'"> 285 <dc:when test="$out = 'sinfo_flowdepthminmax_heights'">
286 <dc:call-macro name="bed-heights-single-KL_TW"/> 286 <dc:call-macro name="bed-heights-single-KL_TW" />
287 </dc:when> 287 </dc:when>
288 <dc:when test="$out = 'sinfo_flowdepth_waterlevels'"> 288 <dc:when test="$out = 'sinfo_flowdepth_waterlevels'">
289 <minfo module="minfo"> 289 <minfo module="minfo">
290 <fixanalysis> 290 <fixanalysis>
291 <dc:call-macro name="basedata_7_waterlevels"/> 291 <dc:call-macro name="basedata_7_waterlevels" />
292 </fixanalysis> 292 </fixanalysis>
293 </minfo> 293 </minfo>
294 <dc:call-macro name="basedata_3_officials"/> 294 <dc:call-macro name="basedata_3_officials" />
295 <dc:call-macro name="basedata_2_fixations"/> 295 <dc:call-macro name="basedata_2_fixations" />
296 <sinfo module="sinfo"> 296 <sinfo module="sinfo">
297 <sinfo_additional_ls> 297 <sinfo_additional_ls>
298 <dc:call-macro name="basedata_1_additionals-sinfo-with-q"/> 298 <dc:call-macro name="basedata_1_additionals-sinfo-with-q" />
299 <dc:call-macro name="basedata_1_additionals-sinfo-without-q"/> 299 <dc:call-macro name="basedata_1_additionals-sinfo-without-q" />
300 </sinfo_additional_ls> 300 </sinfo_additional_ls>
301 </sinfo> 301 </sinfo>
302 </dc:when> 302 </dc:when>
303 303
304 <dc:when test="$out = 'sinfo_flow_depth'"> 304 <dc:when test="$out = 'sinfo_flow_depth'">
305 <dc:call-macro name="longitudinal-section-prototype"/> 305 <dc:call-macro name="longitudinal-section-prototype" />
306 </dc:when> 306 </dc:when>
307 <dc:when test="$out = 'sinfo_flow_depth_minmax'"> 307 <dc:when test="$out = 'sinfo_flow_depth_minmax'">
308 <dc:call-macro name="longitudinal-section-prototype"/> 308 <dc:call-macro name="longitudinal-section-prototype" />
309 </dc:when> 309 </dc:when>
310 <dc:when test="$out = 'sinfo_flow_depth_development'"> 310 <dc:when test="$out = 'sinfo_flow_depth_development'">
311 <dc:call-macro name="longitudinal-section-prototype"/> 311 <dc:call-macro name="longitudinal-section-prototype" />
312 </dc:when> 312 </dc:when>
313 <dc:when test="$out = 'sinfo_flow_depth_development_peryear'"> 313 <dc:when test="$out = 'sinfo_flow_depth_development_peryear'">
314 <dc:call-macro name="longitudinal-section-prototype"/> 314 <dc:call-macro name="longitudinal-section-prototype" />
315 </dc:when> 315 </dc:when>
316 <dc:when test="$out = 'sinfo_tkk'"> 316 <dc:when test="$out = 'sinfo_tkk'">
317 <dc:call-macro name="longitudinal-section-prototype"/> 317 <dc:call-macro name="longitudinal-section-prototype" />
318 </dc:when> 318 </dc:when>
319 <dc:when test="$out = 'sinfo_collision'"> 319 <dc:when test="$out = 'sinfo_collision'">
320 <dc:call-macro name="longitudinal-section-prototype"/> 320 <dc:call-macro name="longitudinal-section-prototype" />
321 </dc:when> 321 </dc:when>
322 <dc:when test="$out = 'sinfo_flood_duration'"> 322 <dc:when test="$out = 'sinfo_flood_duration'">
323 <dc:call-macro name="longitudinal-section-prototype"/> 323 <dc:call-macro name="longitudinal-section-prototype" />
324 </dc:when> 324 </dc:when>
325 <dc:when test="$out = 'sinfo_flood_height'"> 325 <dc:when test="$out = 'sinfo_flood_height'">
326 <dc:call-macro name="longitudinal-section-prototype"/> 326 <dc:call-macro name="longitudinal-section-prototype" />
327 </dc:when> 327 </dc:when>
328 <dc:when test="$out = 'sinfo_floodduration_curve'"> 328 <dc:when test="$out = 'sinfo_floodduration_curve'">
329 <dc:call-macro name="floodduration_curve_system" /> 329 <dc:call-macro name="floodduration_curve_system" />
330 </dc:when> 330 </dc:when>
331 <dc:when test="$out = 'uinfo_salix_line'"> 331 <dc:when test="$out = 'uinfo_salix_line'">
332 <dc:call-macro name="longitudinal-section-prototype"/> 332 <dc:call-macro name="longitudinal-section-prototype" />
333 </dc:when> 333 </dc:when>
334 <dc:when test="$out = 'uinfo.inundation_duration.vegzoneselect'"> 334 <dc:when test="$out = 'uinfo.inundation_duration.vegzoneselect'">
335 <dc:call-macro name="predefined_vegetation_zones"/> 335 <dc:call-macro name="predefined_vegetation_zones" />
336 </dc:when> 336 </dc:when>
337 <dc:when test="$out = 'bundu_wspl_longitudinal_section'"> 337 <dc:when test="$out = 'bundu_wspl_longitudinal_section'">
338 <dc:call-macro name="longitudinal-section-prototype"/> 338 <dc:call-macro name="longitudinal-section-prototype" />
339 </dc:when> 339 </dc:when>
340 <dc:when test="$out = 'bundu_depth_longitudinal_section'"> 340 <dc:when test="$out = 'bundu_depth_longitudinal_section'">
341 <dc:call-macro name="longitudinal-section-prototype"/> 341 <dc:call-macro name="longitudinal-section-prototype" />
342 </dc:when> 342 </dc:when>
343 </dc:choose> 343 </dc:choose>
344 </dc:iterate> 344 </dc:iterate>
345 </dc:otherwise> 345 </dc:otherwise>
346 </dc:choose> 346 </dc:choose>
359 Recommendations (user) 359 Recommendations (user)
360 </dc:comment> 360 </dc:comment>
361 <dc:iterate var="out" container="artifact-outs"> 361 <dc:iterate var="out" container="artifact-outs">
362 <dc:choose> 362 <dc:choose>
363 <dc:when test="$out = 'longitudinal_section'"> 363 <dc:when test="$out = 'longitudinal_section'">
364 <dc:call-macro name="officiallines_user"/> 364 <dc:call-macro name="officiallines_user" />
365 </dc:when> 365 </dc:when>
366 </dc:choose> 366 </dc:choose>
367 </dc:iterate> 367 </dc:iterate>
368 </dc:when> 368 </dc:when>
369 <dc:otherwise> 369 <dc:otherwise>
372 </dc:comment> 372 </dc:comment>
373 <dc:iterate var="out" container="artifact-outs"> 373 <dc:iterate var="out" container="artifact-outs">
374 <dc:choose> 374 <dc:choose>
375 <dc:comment> Inline datacage panels </dc:comment> 375 <dc:comment> Inline datacage panels </dc:comment>
376 <dc:when test="$out = 'winfo_diff_twin_panel'"> 376 <dc:when test="$out = 'winfo_diff_twin_panel'">
377 <dc:call-macro name="differences-fix"/> 377 <dc:call-macro name="differences-fix" />
378 <dc:call-macro name="differences"/> 378 <dc:call-macro name="differences" />
379 <dc:comment comment="Candidate for:"> 379 <dc:comment comment="Candidate for:">
380 <dc:call-macro name="longitudinal-section-user-prototype"/> 380 <dc:call-macro name="longitudinal-section-user-prototype" />
381 </dc:comment> 381 </dc:comment>
382 </dc:when> 382 </dc:when>
383 <dc:when test="$out = 'waterlevels_panel'"> 383 <dc:when test="$out = 'waterlevels_panel'">
384 <dc:call-macro name="waterlevels-user"/> 384 <dc:call-macro name="waterlevels-user" />
385 <dc:comment comment="Candidate for:"> 385 <dc:comment comment="Candidate for:">
386 <dc:call-macro name="longitudinal-section-user-prototype"/> 386 <dc:call-macro name="longitudinal-section-user-prototype" />
387 </dc:comment> 387 </dc:comment>
388 </dc:when> 388 </dc:when>
389 <dc:when test="$out = 'floodmap_hws_panel'"> 389 <dc:when test="$out = 'floodmap_hws_panel'">
390 <dc:call-macro name="floodmap-hws-user"/> 390 <dc:call-macro name="floodmap-hws-user" />
391 </dc:when> 391 </dc:when>
392 <dc:comment> Longitudinal sections </dc:comment> 392 <dc:comment> Longitudinal sections </dc:comment>
393 <dc:when test="$out = 'longitudinal_section'"> 393 <dc:when test="$out = 'longitudinal_section'">
394 <dc:call-macro name="longitudinal-section-user-prototype"/> 394 <dc:call-macro name="longitudinal-section-user-prototype" />
395 </dc:when> 395 </dc:when>
396 <dc:when test="$out = 'discharge_longitudinal_section'"> 396 <dc:when test="$out = 'discharge_longitudinal_section'">
397 <dc:call-macro name="longitudinal-section-user-prototype"/> 397 <dc:call-macro name="longitudinal-section-user-prototype" />
398 </dc:when> 398 </dc:when>
399 <dc:when test="$out = 'w_differences'"> 399 <dc:when test="$out = 'w_differences'">
400 <dc:call-macro name="longitudinal-section-user-prototype"/> 400 <dc:call-macro name="longitudinal-section-user-prototype" />
401 </dc:when> 401 </dc:when>
402 <dc:when test="$out = 'fix_longitudinal_section_curve'"> 402 <dc:when test="$out = 'fix_longitudinal_section_curve'">
403 <dc:call-macro name="longitudinal-section-user-prototype"/> 403 <dc:call-macro name="longitudinal-section-user-prototype" />
404 </dc:when> 404 </dc:when>
405 <dc:when test="$out = 'bedheight_middle'"> 405 <dc:when test="$out = 'bedheight_middle'">
406 <dc:call-macro name="longitudinal-section-user-prototype"/> 406 <dc:call-macro name="longitudinal-section-user-prototype" />
407 </dc:when> 407 </dc:when>
408 <dc:when test="$out = 'flow_velocity'"> 408 <dc:when test="$out = 'flow_velocity'">
409 <dc:call-macro name="longitudinal-section-user-prototype"/> 409 <dc:call-macro name="longitudinal-section-user-prototype" />
410 </dc:when> 410 </dc:when>
411 <dc:when test="$out = 'bed_longitudinal_section'"> 411 <dc:when test="$out = 'bed_longitudinal_section'">
412 <dc:call-macro name="longitudinal-section-user-prototype"/> 412 <dc:call-macro name="longitudinal-section-user-prototype" />
413 </dc:when> 413 </dc:when>
414 <dc:when test="$out = 'sedimentload_ls'"> 414 <dc:when test="$out = 'sedimentload_ls'">
415 <dc:call-macro name="longitudinal-section-user-prototype"/> 415 <dc:call-macro name="longitudinal-section-user-prototype" />
416 </dc:when> 416 </dc:when>
417 <dc:when test="$out = 'bed_difference_year'"> 417 <dc:when test="$out = 'bed_difference_year'">
418 <dc:call-macro name="longitudinal-section-user-prototype"/> 418 <dc:call-macro name="longitudinal-section-user-prototype" />
419 </dc:when> 419 </dc:when>
420 <dc:when test="$out = 'bed_difference_height_year'"> 420 <dc:when test="$out = 'bed_difference_height_year'">
421 <dc:call-macro name="longitudinal-section-user-prototype"/> 421 <dc:call-macro name="longitudinal-section-user-prototype" />
422 </dc:when> 422 </dc:when>
423 <dc:when test="$out = 'sinfo_flow_depth'"> 423 <dc:when test="$out = 'sinfo_flow_depth'">
424 <dc:call-macro name="longitudinal-section-user-prototype"/> 424 <dc:call-macro name="longitudinal-section-user-prototype" />
425 </dc:when> 425 </dc:when>
426 <dc:when test="$out = 'sinfo_flow_depth_minmax'"> 426 <dc:when test="$out = 'sinfo_flow_depth_minmax'">
427 <dc:call-macro name="longitudinal-section-user-prototype"/> 427 <dc:call-macro name="longitudinal-section-user-prototype" />
428 </dc:when> 428 </dc:when>
429 <dc:when test="$out = 'sinfo_flow_depth_development'"> 429 <dc:when test="$out = 'sinfo_flow_depth_development'">
430 <dc:call-macro name="longitudinal-section-user-prototype"/> 430 <dc:call-macro name="longitudinal-section-user-prototype" />
431 </dc:when> 431 </dc:when>
432 <dc:when test="$out = 'sinfo_flow_depth_development_peryear'"> 432 <dc:when test="$out = 'sinfo_flow_depth_development_peryear'">
433 <dc:call-macro name="longitudinal-section-user-prototype"/> 433 <dc:call-macro name="longitudinal-section-user-prototype" />
434 </dc:when> 434 </dc:when>
435 <dc:when test="$out = 'sinfo_tkk'"> 435 <dc:when test="$out = 'sinfo_tkk'">
436 <dc:call-macro name="longitudinal-section-user-prototype"/> 436 <dc:call-macro name="longitudinal-section-user-prototype" />
437 </dc:when> 437 </dc:when>
438 <dc:when test="$out = 'sinfo_collision'"> 438 <dc:when test="$out = 'sinfo_collision'">
439 <dc:call-macro name="longitudinal-section-user-prototype"/> 439 <dc:call-macro name="longitudinal-section-user-prototype" />
440 </dc:when> 440 </dc:when>
441 <dc:when test="$out = 'sinfo_flood_duration'"> 441 <dc:when test="$out = 'sinfo_flood_duration'">
442 <dc:call-macro name="longitudinal-section-user-prototype"/> 442 <dc:call-macro name="longitudinal-section-user-prototype" />
443 </dc:when> 443 </dc:when>
444 <dc:when test="$out = 'sinfo_floodduration_curve'"> 444 <dc:when test="$out = 'sinfo_floodduration_curve'">
445 <dc:call-macro name="floodduration-curve-user"/> 445 <dc:call-macro name="floodduration-curve-user" />
446 </dc:when> 446 </dc:when>
447 <dc:when test="$out = 'sinfo_flood_height'"> 447 <dc:when test="$out = 'sinfo_flood_height'">
448 <dc:call-macro name="longitudinal-section-user-prototype"/> 448 <dc:call-macro name="longitudinal-section-user-prototype" />
449 </dc:when> 449 </dc:when>
450 <dc:when test="$out = 'sinfo_flowdepth_waterlevels'"> 450 <dc:when test="$out = 'sinfo_flowdepth_waterlevels'">
451 <dc:call-macro name="longitudinal-section-fix-vollmer_w"/> 451 <dc:call-macro name="longitudinal-section-fix-vollmer_w" />
452 </dc:when> 452 </dc:when>
453 453
454 <dc:when test="$out = 'uinfo_salix_line'"> 454 <dc:when test="$out = 'uinfo_salix_line'">
455 <dc:call-macro name="longitudinal-section-user-prototype"/> 455 <dc:call-macro name="longitudinal-section-user-prototype" />
456 </dc:when> 456 </dc:when>
457 <dc:when test="$out = 'uinfo.inundation_duration.vegzoneselect'"> 457 <dc:when test="$out = 'uinfo.inundation_duration.vegzoneselect'">
458 <dc:call-macro name="vegetationzones"/> 458 <dc:call-macro name="vegetationzones" />
459 </dc:when> 459 </dc:when>
460 460
461 <dc:when test="$out = 'bundu_wspl_longitudinal_section'"> 461 <dc:when test="$out = 'bundu_wspl_longitudinal_section'">
462 <dc:call-macro name="longitudinal-section-user-prototype"/> 462 <dc:call-macro name="longitudinal-section-user-prototype" />
463 </dc:when> 463 </dc:when>
464 <dc:when test="$out = 'bundu_depth_longitudinal_section'"> 464 <dc:when test="$out = 'bundu_depth_longitudinal_section'">
465 <dc:call-macro name="longitudinal-section-user-prototype"/> 465 <dc:call-macro name="longitudinal-section-user-prototype" />
466 </dc:when> 466 </dc:when>
467 467
468 <dc:comment> Discharge curves </dc:comment> 468 <dc:comment> Discharge curves </dc:comment>
469 <dc:when test="$out = 'computed_discharge_curve'"> 469 <dc:when test="$out = 'computed_discharge_curve'">
470 <dc:call-macro name="discharge-curve-user-prototype"/> 470 <dc:call-macro name="discharge-curve-user-prototype" />
471 </dc:when> 471 </dc:when>
472 <dc:when test="$out = 'fix_derivate_curve'"> 472 <dc:when test="$out = 'fix_derivate_curve'">
473 <dc:call-macro name="discharge-curve-user-prototype"/> 473 <dc:call-macro name="discharge-curve-user-prototype" />
474 </dc:when> 474 </dc:when>
475 <dc:when test="$out = 'fix_wq_curve'"> 475 <dc:when test="$out = 'fix_wq_curve'">
476 <dc:call-macro name="discharge-curve-user-prototype"/> 476 <dc:call-macro name="discharge-curve-user-prototype" />
477 </dc:when> 477 </dc:when>
478 <dc:when test="$out = 'historical_discharge_wq'"> 478 <dc:when test="$out = 'historical_discharge_wq'">
479 <dc:call-macro name="discharge-curve-user-prototype"/> 479 <dc:call-macro name="discharge-curve-user-prototype" />
480 </dc:when> 480 </dc:when>
481 <dc:when test="starts-with($out, 'sq_relation') or $out = 'sq_overview'"> 481 <dc:when test="starts-with($out, 'sq_relation') or $out = 'sq_overview'">
482 <dc:call-macro name="discharge-curve-user-prototype"/> 482 <dc:call-macro name="discharge-curve-user-prototype" />
483 </dc:when> 483 </dc:when>
484 484
485 <dc:comment> Time series </dc:comment> 485 <dc:comment> Time series </dc:comment>
486 <dc:when test="$out = 'fix_deltawt_curve'"> 486 <dc:when test="$out = 'fix_deltawt_curve'">
487 <dc:call-macro name="delta-wt"/> 487 <dc:call-macro name="delta-wt" />
488 </dc:when> 488 </dc:when>
489 <dc:when test="$out = 'historical_discharge'"> 489 <dc:when test="$out = 'historical_discharge'">
490 <dc:call-macro name="historical-discharge-user"/> 490 <dc:call-macro name="historical-discharge-user" />
491 </dc:when> 491 </dc:when>
492 492
493 <dc:comment> Cross sections </dc:comment> 493 <dc:comment> Cross sections </dc:comment>
494 <dc:when test="$out = 'cross_section'"> 494 <dc:when test="$out = 'cross_section'">
495 <dc:call-macro name="cross_section_user_content"/> 495 <dc:call-macro name="cross_section_user_content" />
496 </dc:when> 496 </dc:when>
497 <dc:comment> Duration curve </dc:comment> 497 <dc:comment> Duration curve </dc:comment>
498 <dc:when test="$out = 'duration_curve'"> 498 <dc:when test="$out = 'duration_curve'">
499 <dc:call-macro name="duration-curve-user"/> 499 <dc:call-macro name="duration-curve-user" />
500 </dc:when> 500 </dc:when>
501 <dc:comment> Reference curve </dc:comment> 501 <dc:comment> Reference curve </dc:comment>
502 <dc:when test="$out = 'reference_curve'"> 502 <dc:when test="$out = 'reference_curve'">
503 <dc:call-macro name="reference-curves"/> 503 <dc:call-macro name="reference-curves" />
504 </dc:when> 504 </dc:when>
505 <dc:comment> Maps </dc:comment> 505 <dc:comment> Maps </dc:comment>
506 <dc:when test="$out = 'floodmap'"> 506 <dc:when test="$out = 'floodmap'">
507 <dc:call-macro name="flood-map"/> 507 <dc:call-macro name="flood-map" />
508 </dc:when> 508 </dc:when>
509 <dc:when test="$out = 'map'"> 509 <dc:when test="$out = 'map'">
510 <dc:call-macro name="flood-map"/> 510 <dc:call-macro name="flood-map" />
511 </dc:when> 511 </dc:when>
512 </dc:choose> 512 </dc:choose>
513 </dc:iterate> 513 </dc:iterate>
514 </dc:otherwise> 514 </dc:otherwise>
515 </dc:choose> 515 </dc:choose>
526 <historical_discharges> 526 <historical_discharges>
527 <dc:call-macro name="collection-group"> 527 <dc:call-macro name="collection-group">
528 <discharges description="{dc:group-key()}"> 528 <discharges description="{dc:group-key()}">
529 <dc:for-each> 529 <dc:for-each>
530 <dc:element name="${facet_name}"> 530 <dc:element name="${facet_name}">
531 <dc:attribute name="description" value="${facet_description}"/> 531 <dc:attribute name="description" value="${facet_description}" />
532 <dc:attribute name="factory" value="winfo"/> 532 <dc:attribute name="factory" value="winfo" />
533 <dc:attribute name="target_out" value="${out}"/> 533 <dc:attribute name="target_out" value="${out}" />
534 <dc:attribute name="artifact-id" value="${a_gid}"/> 534 <dc:attribute name="artifact-id" value="${a_gid}" />
535 <dc:attribute name="ids" value="${facet_num}"/> 535 <dc:attribute name="ids" value="${facet_num}" />
536 <dc:attribute name="out" value="historical_discharge"/> 536 <dc:attribute name="out" value="historical_discharge" />
537 </dc:element> 537 </dc:element>
538 </dc:for-each> 538 </dc:for-each>
539 </discharges> 539 </discharges>
540 </dc:call-macro> 540 </dc:call-macro>
541 </historical_discharges> 541 </historical_discharges>
549 <differences> 549 <differences>
550 <dc:call-macro name="collection-group"> 550 <dc:call-macro name="collection-group">
551 <differences description="{dc:group-key()}"> 551 <differences description="{dc:group-key()}">
552 <dc:for-each> 552 <dc:for-each>
553 <dc:element name="${facet_name}"> 553 <dc:element name="${facet_name}">
554 <dc:attribute name="description" value="${facet_description}"/> 554 <dc:attribute name="description" value="${facet_description}" />
555 <dc:attribute name="factory" value="winfo"/> 555 <dc:attribute name="factory" value="winfo" />
556 <dc:attribute name="artifact-id" value="${a_gid}"/> 556 <dc:attribute name="artifact-id" value="${a_gid}" />
557 <dc:attribute name="ids" value="${facet_num}"/> 557 <dc:attribute name="ids" value="${facet_num}" />
558 <dc:attribute name="target_out" value="${out}"/> 558 <dc:attribute name="target_out" value="${out}" />
559 <dc:attribute name="out" value="${out_name}"/> 559 <dc:attribute name="out" value="${out_name}" />
560 </dc:element> 560 </dc:element>
561 </dc:for-each> 561 </dc:for-each>
562 </differences> 562 </differences>
563 </dc:call-macro> 563 </dc:call-macro>
564 </differences> 564 </differences>
572 <reference_curves> 572 <reference_curves>
573 <dc:call-macro name="collection-group"> 573 <dc:call-macro name="collection-group">
574 <ref_curve description="{dc:group-key()}"> 574 <ref_curve description="{dc:group-key()}">
575 <dc:for-each> 575 <dc:for-each>
576 <dc:element name="${facet_name}"> 576 <dc:element name="${facet_name}">
577 <dc:attribute name="description" value="${facet_description}"/> 577 <dc:attribute name="description" value="${facet_description}" />
578 <dc:attribute name="factory" value="winfo"/> 578 <dc:attribute name="factory" value="winfo" />
579 <dc:attribute name="target_out" value="${out}"/> 579 <dc:attribute name="target_out" value="${out}" />
580 <dc:attribute name="artifact-id" value="${a_gid}"/> 580 <dc:attribute name="artifact-id" value="${a_gid}" />
581 <dc:attribute name="ids" value="${facet_num}"/> 581 <dc:attribute name="ids" value="${facet_num}" />
582 <dc:attribute name="out" value="reference_curve"/> 582 <dc:attribute name="out" value="reference_curve" />
583 </dc:element> 583 </dc:element>
584 </dc:for-each> 584 </dc:for-each>
585 </ref_curve> 585 </ref_curve>
586 </dc:call-macro> 586 </dc:call-macro>
587 </reference_curves> 587 </reference_curves>
593 <dc:macro name="flood-map"> 593 <dc:macro name="flood-map">
594 <dc:filter expr="$facet_name = 'floodmap.wsplgen'"> 594 <dc:filter expr="$facet_name = 'floodmap.wsplgen'">
595 <dc:if test="dc:has-result()"> 595 <dc:if test="dc:has-result()">
596 <floodmap> 596 <floodmap>
597 <dc:for-each> 597 <dc:for-each>
598 <dc:variable name="combined_desc" expr="concat($facet_description, ' ', dc:date-format('dd.MM.yyyy - H:mm:ss', $a_creation), ' ', $collection_name)"/> 598 <dc:variable name="combined_desc" expr="concat($facet_description, ' ', dc:date-format('dd.MM.yyyy - H:mm:ss', $a_creation), ' ', $collection_name)" />
599 <dc:element name="${facet_name}"> 599 <dc:element name="${facet_name}">
600 <dc:attribute name="description" value="${combined_desc}"/> 600 <dc:attribute name="description" value="${combined_desc}" />
601 <dc:attribute name="factory" value="winfo"/> 601 <dc:attribute name="factory" value="winfo" />
602 <dc:attribute name="target_out" value="${out}"/> 602 <dc:attribute name="target_out" value="${out}" />
603 <dc:attribute name="artifact-id" value="${a_id}"/> 603 <dc:attribute name="artifact-id" value="${a_id}" />
604 <dc:attribute name="ids" value="${a_id}"/> 604 <dc:attribute name="ids" value="${a_id}" />
605 <dc:attribute name="out" value="floodmap"/> 605 <dc:attribute name="out" value="floodmap" />
606 </dc:element> 606 </dc:element>
607 </dc:for-each> 607 </dc:for-each>
608 </floodmap> 608 </floodmap>
609 </dc:if> 609 </dc:if>
610 </dc:filter> 610 </dc:filter>
611 </dc:macro> 611 </dc:macro>
612 612
613 <dc:macro name="cross_section_user_content"> 613 <dc:macro name="cross_section_user_content">
614 <dc:call-macro name="cross_section_user_content_waterlevels"/> 614 <dc:call-macro name="cross_section_user_content_waterlevels" />
615 <dc:call-macro name="cross_section_user_content_iota"/> 615 <dc:call-macro name="cross_section_user_content_iota" />
616 <dc:call-macro name="vegetationzones"/> 616 <dc:call-macro name="vegetationzones" />
617 </dc:macro> 617 </dc:macro>
618 618
619 <dc:macro name="cross_section_user_content_waterlevels"> 619 <dc:macro name="cross_section_user_content_waterlevels">
620 <dc:filter expr="$out_name = 'cross_section' and $a_state != 'state.uinfo.salix_line'"> 620 <dc:filter expr="$out_name = 'cross_section' and $a_state != 'state.uinfo.salix_line'">
621 <dc:if test="dc:has-result()"> 621 <dc:if test="dc:has-result()">
623 <dc:group expr="concat($river, ' ', dc:date-format('dd.MM.yyyy - H:mm:ss', $a_creation))"> 623 <dc:group expr="concat($river, ' ', dc:date-format('dd.MM.yyyy - H:mm:ss', $a_creation))">
624 <dc:comment>Aheinecke: Why is this grouping different from the rest?</dc:comment> 624 <dc:comment>Aheinecke: Why is this grouping different from the rest?</dc:comment>
625 <longitudinal_section_columns description="{dc:group-key()}"> 625 <longitudinal_section_columns description="{dc:group-key()}">
626 <dc:for-each> 626 <dc:for-each>
627 <dc:element name="${facet_name}"> 627 <dc:element name="${facet_name}">
628 <dc:attribute name="description" value="${facet_description}"/> 628 <dc:attribute name="description" value="${facet_description}" />
629 <dc:attribute name="ids" value="${facet_num}"/> 629 <dc:attribute name="ids" value="${facet_num}" />
630 <dc:attribute name="factory" value="winfo"/> 630 <dc:attribute name="factory" value="winfo" />
631 <dc:attribute name="target_out" value="${out}"/> 631 <dc:attribute name="target_out" value="${out}" />
632 <dc:attribute name="artifact-id" value="${a_gid}"/> 632 <dc:attribute name="artifact-id" value="${a_gid}" />
633 <dc:attribute name="out" value="cross_section"/> 633 <dc:attribute name="out" value="cross_section" />
634 </dc:element> 634 </dc:element>
635 </dc:for-each> 635 </dc:for-each>
636 </longitudinal_section_columns> 636 </longitudinal_section_columns>
637 </dc:group> 637 </dc:group>
638 </waterlevels> 638 </waterlevels>
647 <dc:group expr="concat($river, ' ', dc:date-format('dd.MM.yyyy - H:mm:ss', $a_creation))"> 647 <dc:group expr="concat($river, ' ', dc:date-format('dd.MM.yyyy - H:mm:ss', $a_creation))">
648 <dc:comment>Aheinecke: Why is this grouping different from the rest?</dc:comment> 648 <dc:comment>Aheinecke: Why is this grouping different from the rest?</dc:comment>
649 <longitudinal_section_columns description="{dc:group-key()}"> 649 <longitudinal_section_columns description="{dc:group-key()}">
650 <dc:for-each> 650 <dc:for-each>
651 <dc:element name="${facet_name}"> 651 <dc:element name="${facet_name}">
652 <dc:attribute name="description" value="${facet_description}"/> 652 <dc:attribute name="description" value="${facet_description}" />
653 <dc:attribute name="ids" value="${facet_num}"/> 653 <dc:attribute name="ids" value="${facet_num}" />
654 <dc:attribute name="factory" value="uinfo"/> 654 <dc:attribute name="factory" value="uinfo" />
655 <dc:attribute name="target_out" value="${out}"/> 655 <dc:attribute name="target_out" value="${out}" />
656 <dc:attribute name="artifact-id" value="${a_gid}"/> 656 <dc:attribute name="artifact-id" value="${a_gid}" />
657 <dc:attribute name="out" value="cross_section"/> 657 <dc:attribute name="out" value="cross_section" />
658 </dc:element> 658 </dc:element>
659 </dc:for-each> 659 </dc:for-each>
660 </longitudinal_section_columns> 660 </longitudinal_section_columns>
661 </dc:group> 661 </dc:group>
662 </uinfo_salix_lines> 662 </uinfo_salix_lines>
664 </dc:filter> 664 </dc:filter>
665 </dc:macro> 665 </dc:macro>
666 666
667 <dc:macro name="collection-group"> 667 <dc:macro name="collection-group">
668 <dc:group expr="concat($river, ' ', dc:date-format('dd.MM.yyyy - H:mm:ss', $a_creation), ' ', $collection_name)"> 668 <dc:group expr="concat($river, ' ', dc:date-format('dd.MM.yyyy - H:mm:ss', $a_creation), ' ', $collection_name)">
669 <dc:macro-body/> 669 <dc:macro-body />
670 </dc:group> 670 </dc:group>
671 </dc:macro> 671 </dc:macro>
672 672
673 <dc:macro name="longitudinal"> 673 <dc:macro name="longitudinal">
674 <dc:filter expr="$out_name = 'longitudinal_section' and $a_state != 'state.fix.vollmer.compute' and $a_state != 'state.bundu.vollmer.compute'"> 674 <dc:filter expr="$out_name = 'longitudinal_section' and $a_state != 'state.fix.vollmer.compute' and $a_state != 'state.bundu.vollmer.compute'">
677 <dc:call-macro name="collection-group"> 677 <dc:call-macro name="collection-group">
678 <dc:comment>Aheinecke: Why is this grouping different from the rest?</dc:comment> 678 <dc:comment>Aheinecke: Why is this grouping different from the rest?</dc:comment>
679 <longitudinal_section_columns description="{dc:group-key()}"> 679 <longitudinal_section_columns description="{dc:group-key()}">
680 <dc:for-each> 680 <dc:for-each>
681 <dc:element name="${facet_name}"> 681 <dc:element name="${facet_name}">
682 <dc:attribute name="description" value="${facet_description}"/> 682 <dc:attribute name="description" value="${facet_description}" />
683 <dc:attribute name="ids" value="${facet_num}"/> 683 <dc:attribute name="ids" value="${facet_num}" />
684 <dc:attribute name="factory" value="winfo"/> 684 <dc:attribute name="factory" value="winfo" />
685 <dc:attribute name="target_out" value="${out}"/> 685 <dc:attribute name="target_out" value="${out}" />
686 <dc:attribute name="artifact-id" value="${a_gid}"/> 686 <dc:attribute name="artifact-id" value="${a_gid}" />
687 <dc:attribute name="out" value="longitudinal_section"/> 687 <dc:attribute name="out" value="longitudinal_section" />
688 </dc:element> 688 </dc:element>
689 </dc:for-each> 689 </dc:for-each>
690 </longitudinal_section_columns> 690 </longitudinal_section_columns>
691 </dc:call-macro> 691 </dc:call-macro>
692 </waterlevels_ls> 692 </waterlevels_ls>
695 </dc:macro> 695 </dc:macro>
696 696
697 <dc:macro name="longitudinal-section-fix-vollmer"> 697 <dc:macro name="longitudinal-section-fix-vollmer">
698 <dc:filter expr="($a_state = 'state.fix.vollmer.compute' or $a_state = 'state.bundu.vollmer.compute') and 698 <dc:filter expr="($a_state = 'state.fix.vollmer.compute' or $a_state = 'state.bundu.vollmer.compute') and
699 ($facet_name = 'longitudinal_section.w' or $facet_name = 'longitudinal_section.q')"> 699 ($facet_name = 'longitudinal_section.w' or $facet_name = 'longitudinal_section.q')">
700 <dc:call-macro name="longitudinal-section-fix-vollmer_macro"/> 700 <dc:call-macro name="longitudinal-section-fix-vollmer_macro" />
701 </dc:filter> 701 </dc:filter>
702 </dc:macro> 702 </dc:macro>
703 703
704 <dc:macro name="longitudinal-section-fix-vollmer_w"> 704 <dc:macro name="longitudinal-section-fix-vollmer_w">
705 <dc:filter expr=" ($a_state = 'state.fix.vollmer.compute' or $a_state = 'state.bundu.vollmer.compute') and $facet_name = 'longitudinal_section.w'"> 705 <dc:filter expr=" ($a_state = 'state.fix.vollmer.compute' or $a_state = 'state.bundu.vollmer.compute') and $facet_name = 'longitudinal_section.w'">
706 <dc:call-macro name="longitudinal-section-fix-vollmer_macro"/> 706 <dc:call-macro name="longitudinal-section-fix-vollmer_macro" />
707 </dc:filter> 707 </dc:filter>
708 </dc:macro> 708 </dc:macro>
709 709
710 <dc:macro name="longitudinal-section-fix-vollmer_macro"> 710 <dc:macro name="longitudinal-section-fix-vollmer_macro">
711 <dc:if test="dc:has-result()"> 711 <dc:if test="dc:has-result()">
712 <waterlevels_fix_vollmer> 712 <waterlevels_fix_vollmer>
713 <dc:call-macro name="collection-group"> 713 <dc:call-macro name="collection-group">
714 <waterlevels description="{dc:group-key()}"> 714 <waterlevels description="{dc:group-key()}">
715 <dc:for-each> 715 <dc:for-each>
716 <dc:element name="${facet_name}"> 716 <dc:element name="${facet_name}">
717 <dc:attribute name="description" value="${facet_description}"/> 717 <dc:attribute name="description" value="${facet_description}" />
718 <dc:attribute name="ids" value="${facet_num}"/> 718 <dc:attribute name="ids" value="${facet_num}" />
719 <!-- FIXME --> 719 <!-- FIXME -->
720 <dc:attribute name="factory" value="fixanalysis"/> 720 <dc:attribute name="factory" value="fixanalysis" />
721 <!-- bundu works due to same implementation 721 <!-- bundu works due to same implementation
722 <dc:attribute name="factory" value="bundu"/> 722 <dc:attribute name="factory" value="bundu"/>
723 --> 723 -->
724 <dc:attribute name="target_out" value="${out}"/> 724 <dc:attribute name="target_out" value="${out}" />
725 <dc:attribute name="artifact-id" value="${a_gid}"/> 725 <dc:attribute name="artifact-id" value="${a_gid}" />
726 <dc:attribute name="out" value="longitudinal_section"/> 726 <dc:attribute name="out" value="longitudinal_section" />
727 727
728 <dc:variable name="fixAnalysisYear" expr="dc:fix_analysis_year($a_gid)"/> 728 <dc:variable name="fixAnalysisYear" expr="dc:fix_analysis_year($a_gid)" />
729 <dc:attribute name="year" value="${fixAnalysisYear}"/> 729 <dc:attribute name="year" value="${fixAnalysisYear}" />
730 </dc:element> 730 </dc:element>
731 </dc:for-each> 731 </dc:for-each>
732 </waterlevels> 732 </waterlevels>
733 </dc:call-macro> 733 </dc:call-macro>
734 </waterlevels_fix_vollmer> 734 </waterlevels_fix_vollmer>
746 <waterlevels_fix> 746 <waterlevels_fix>
747 <dc:call-macro name="collection-group"> 747 <dc:call-macro name="collection-group">
748 <waterlevels description="{dc:group-key()}"> 748 <waterlevels description="{dc:group-key()}">
749 <dc:for-each> 749 <dc:for-each>
750 <dc:element name="${facet_name}"> 750 <dc:element name="${facet_name}">
751 <dc:attribute name="description" value="${facet_description}"/> 751 <dc:attribute name="description" value="${facet_description}" />
752 <dc:attribute name="ids" value="${facet_num}"/> 752 <dc:attribute name="ids" value="${facet_num}" />
753 <dc:attribute name="factory" value="fixanalysis"/> 753 <dc:attribute name="factory" value="fixanalysis" />
754 <dc:attribute name="target_out" value="${out}"/> 754 <dc:attribute name="target_out" value="${out}" />
755 <dc:attribute name="artifact-id" value="${a_gid}"/> 755 <dc:attribute name="artifact-id" value="${a_gid}" />
756 <dc:attribute name="out" value="fix_longitudinal_section_curve"/> 756 <dc:attribute name="out" value="fix_longitudinal_section_curve" />
757 </dc:element> 757 </dc:element>
758 </dc:for-each> 758 </dc:for-each>
759 </waterlevels> 759 </waterlevels>
760 </dc:call-macro> 760 </dc:call-macro>
761 </waterlevels_fix> 761 </waterlevels_fix>
774 <waterlevels> 774 <waterlevels>
775 <dc:call-macro name="collection-group"> 775 <dc:call-macro name="collection-group">
776 <waterlevels description="{dc:group-key()}"> 776 <waterlevels description="{dc:group-key()}">
777 <dc:for-each> 777 <dc:for-each>
778 <dc:element name="${facet_name}"> 778 <dc:element name="${facet_name}">
779 <dc:attribute name="description" value="${facet_description}"/> 779 <dc:attribute name="description" value="${facet_description}" />
780 <dc:attribute name="ids" value="${facet_num}"/> 780 <dc:attribute name="ids" value="${facet_num}" />
781 <dc:attribute name="factory" value="fixanalysis"/> 781 <dc:attribute name="factory" value="fixanalysis" />
782 <dc:attribute name="target_out" value="${out}"/> 782 <dc:attribute name="target_out" value="${out}" />
783 <dc:attribute name="artifact-id" value="${a_gid}"/> 783 <dc:attribute name="artifact-id" value="${a_gid}" />
784 <dc:attribute name="out" value="fix_deltawt_curve"/> 784 <dc:attribute name="out" value="fix_deltawt_curve" />
785 </dc:element> 785 </dc:element>
786 </dc:for-each> 786 </dc:for-each>
787 </waterlevels> 787 </waterlevels>
788 </dc:call-macro> 788 </dc:call-macro>
789 </waterlevels> 789 </waterlevels>
805 <projects description="{dc:group-key()}"> 805 <projects description="{dc:group-key()}">
806 <dc:for-each> 806 <dc:for-each>
807 <dc:choose> 807 <dc:choose>
808 <dc:when test="$out_name = 'fix_wq_curve'"> 808 <dc:when test="$out_name = 'fix_wq_curve'">
809 <dc:element name="${facet_name}"> 809 <dc:element name="${facet_name}">
810 <dc:attribute name="description" value="${facet_description}"/> 810 <dc:attribute name="description" value="${facet_description}" />
811 <dc:attribute name="ids" value="${facet_num}"/> 811 <dc:attribute name="ids" value="${facet_num}" />
812 <dc:attribute name="factory" value="fixanalysis"/> 812 <dc:attribute name="factory" value="fixanalysis" />
813 <dc:attribute name="target_out" value="${out}"/> 813 <dc:attribute name="target_out" value="${out}" />
814 <dc:attribute name="artifact-id" value="${a_gid}"/> 814 <dc:attribute name="artifact-id" value="${a_gid}" />
815 <dc:attribute name="out" value="fix_wq_curve"/> 815 <dc:attribute name="out" value="fix_wq_curve" />
816 </dc:element> 816 </dc:element>
817 </dc:when> 817 </dc:when>
818 <dc:when test="$out_name = 'fix_derivate_curve'"> 818 <dc:when test="$out_name = 'fix_derivate_curve'">
819 <dc:element name="${facet_name}"> 819 <dc:element name="${facet_name}">
820 <dc:attribute name="description" value="${facet_description}"/> 820 <dc:attribute name="description" value="${facet_description}" />
821 <dc:attribute name="ids" value="${facet_num}"/> 821 <dc:attribute name="ids" value="${facet_num}" />
822 <dc:attribute name="factory" value="fixanalysis"/> 822 <dc:attribute name="factory" value="fixanalysis" />
823 <dc:attribute name="target_out" value="${out}"/> 823 <dc:attribute name="target_out" value="${out}" />
824 <dc:attribute name="artifact-id" value="${a_gid}"/> 824 <dc:attribute name="artifact-id" value="${a_gid}" />
825 <dc:attribute name="out" value="fix_derivate_curve"/> 825 <dc:attribute name="out" value="fix_derivate_curve" />
826 </dc:element> 826 </dc:element>
827 </dc:when> 827 </dc:when>
828 </dc:choose> 828 </dc:choose>
829 </dc:for-each> 829 </dc:for-each>
830 </projects> 830 </projects>
838 <dc:filter expr="$facet_name = 'extreme_wq_curve' or $facet_name = 'extreme_wq_curve_base'"> 838 <dc:filter expr="$facet_name = 'extreme_wq_curve' or $facet_name = 'extreme_wq_curve_base'">
839 <dc:if test="dc:has-result()"> 839 <dc:if test="dc:has-result()">
840 <computed_discharge_curves> 840 <computed_discharge_curves>
841 <dc:for-each> 841 <dc:for-each>
842 <dc:element name="${facet_name}"> 842 <dc:element name="${facet_name}">
843 <dc:attribute name="description" value="${facet_description}"/> 843 <dc:attribute name="description" value="${facet_description}" />
844 <dc:attribute name="factory" value="fixanalysis"/> 844 <dc:attribute name="factory" value="fixanalysis" />
845 <dc:attribute name="target_out" value="${out}"/> 845 <dc:attribute name="target_out" value="${out}" />
846 <dc:attribute name="artifact-id" value="${a_gid}"/> 846 <dc:attribute name="artifact-id" value="${a_gid}" />
847 <dc:attribute name="ids" value="${a_gid}"/> 847 <dc:attribute name="ids" value="${a_gid}" />
848 <dc:attribute name="out" value="computed_discharge_curve"/> 848 <dc:attribute name="out" value="computed_discharge_curve" />
849 </dc:element> 849 </dc:element>
850 </dc:for-each> 850 </dc:for-each>
851 </computed_discharge_curves> 851 </computed_discharge_curves>
852 </dc:if> 852 </dc:if>
853 </dc:filter> 853 </dc:filter>
859 <computed_discharge_curves> 859 <computed_discharge_curves>
860 <dc:call-macro name="collection-group"> 860 <dc:call-macro name="collection-group">
861 <projects description="{dc:group-key()}"> 861 <projects description="{dc:group-key()}">
862 <dc:for-each> 862 <dc:for-each>
863 <dc:element name="${facet_name}"> 863 <dc:element name="${facet_name}">
864 <dc:attribute name="description" value="${facet_description}"/> 864 <dc:attribute name="description" value="${facet_description}" />
865 <dc:attribute name="factory" value="winfo"/> 865 <dc:attribute name="factory" value="winfo" />
866 <dc:attribute name="target_out" value="${out}"/> 866 <dc:attribute name="target_out" value="${out}" />
867 <dc:attribute name="artifact-id" value="${a_gid}"/> 867 <dc:attribute name="artifact-id" value="${a_gid}" />
868 <dc:attribute name="ids" value="${a_gid}"/> 868 <dc:attribute name="ids" value="${a_gid}" />
869 <dc:attribute name="out" value="computed_discharge_curve"/> 869 <dc:attribute name="out" value="computed_discharge_curve" />
870 </dc:element> 870 </dc:element>
871 </dc:for-each> 871 </dc:for-each>
872 </projects> 872 </projects>
873 </dc:call-macro> 873 </dc:call-macro>
874 </computed_discharge_curves> 874 </computed_discharge_curves>
876 </dc:filter> 876 </dc:filter>
877 </dc:macro> 877 </dc:macro>
878 878
879 <!-- Unterschreitungsdauern aus WINFO --> 879 <!-- Unterschreitungsdauern aus WINFO -->
880 <dc:macro name="duration-curve-user"> 880 <dc:macro name="duration-curve-user">
881 <dc:call-macro name="duration-curve-user_winfo-duration-curve"/> 881 <dc:call-macro name="duration-curve-user_winfo-duration-curve" />
882 </dc:macro> 882 </dc:macro>
883 883
884 <!-- Ãœberschrautungsdauern aus SINFO --> 884 <!-- Ãœberschrautungsdauern aus SINFO -->
885 <dc:macro name="floodduration-curve-user"> 885 <dc:macro name="floodduration-curve-user">
886 <dc:call-macro name="duration-curve-user_sinfo-flood-duration"/> 886 <dc:call-macro name="duration-curve-user_sinfo-flood-duration" />
887 </dc:macro> 887 </dc:macro>
888 888
889 <dc:macro name="duration-curve-user_winfo-duration-curve"> 889 <dc:macro name="duration-curve-user_winfo-duration-curve">
890 <!-- Restults of WINFO-DurationCurve calculation --> 890 <!-- Restults of WINFO-DurationCurve calculation -->
891 <dc:filter expr="$a_state = 'state.winfo.durationcurve' and ( $facet_name = 'duration_curve.q' or $facet_name = 'duration_curve.w' )"> 891 <dc:filter expr="$a_state = 'state.winfo.durationcurve' and ( $facet_name = 'duration_curve.q' or $facet_name = 'duration_curve.w' )">
892 <dc:if test="dc:has-result()"> 892 <dc:if test="dc:has-result()">
893 <!-- FIXME: this label is wrong, should be rather 'winfo - duration curve' or something --> 893 <!-- FIXME: this label is wrong, should be rather 'winfo - duration curve' or something -->
894 <computed_discharge_curves> 894 <computed_discharge_curves>
895 <dc:for-each> 895 <dc:for-each>
896 <dc:element name="${facet_name}"> 896 <dc:element name="${facet_name}">
897 <dc:attribute name="description" value="${facet_description}"/> 897 <dc:attribute name="description" value="${facet_description}" />
898 <dc:attribute name="factory" value="winfo"/> 898 <dc:attribute name="factory" value="winfo" />
899 <dc:attribute name="target_out" value="${out}"/> 899 <dc:attribute name="target_out" value="${out}" />
900 <dc:attribute name="artifact-id" value="${a_gid}"/> 900 <dc:attribute name="artifact-id" value="${a_gid}" />
901 <dc:attribute name="ids" value="${facet_num}"/> 901 <dc:attribute name="ids" value="${facet_num}" />
902 <dc:attribute name="out" value="${out_name}"/> 902 <dc:attribute name="out" value="${out_name}" />
903 </dc:element> 903 </dc:element>
904 </dc:for-each> 904 </dc:for-each>
905 </computed_discharge_curves> 905 </computed_discharge_curves>
906 </dc:if> 906 </dc:if>
907 </dc:filter> 907 </dc:filter>
908 </dc:macro> 908 </dc:macro>
909 909
910 <dc:macro name="duration-curve-user_sinfo-flood-duration"> 910 <dc:macro name="duration-curve-user_sinfo-flood-duration">
911 <!-- Restults of SINFO-Ãœberflutungsdauern-Aue calculation --> 911 <!-- Restults of SINFO-Ãœberflutungsdauern-Aue calculation -->
912 <dc:filter expr="$a_state = 'state.sinfo.flood_duration' and $out_name = 'sinfo_floodduration_curve'"> 912 <dc:filter expr="$a_state = 'state.sinfo.flood_duration' and $out_name = 'sinfo_floodduration_curve'">
913 <!-- FIXME: group by calculation? --> 913 <!-- FIXME: group by calculation? -->
914 <dc:if test="dc:has-result()"> 914 <dc:if test="dc:has-result()">
915 <sinfo_flood_durations> 915 <sinfo_flood_durations>
916 916
917 <dc:call-macro name="collection-group"> 917 <dc:call-macro name="collection-group">
918 <sinfo_flood_durations description="{dc:group-key()}"> 918 <sinfo_flood_durations description="{dc:group-key()}">
919 <dc:for-each> 919 <dc:for-each>
920 <dc:element name="${facet_name}"> 920 <dc:element name="${facet_name}">
921 <dc:attribute name="description" value="${facet_description}"/> 921 <dc:attribute name="description" value="${facet_description}" />
922 <dc:attribute name="factory" value="sinfo"/> 922 <dc:attribute name="factory" value="sinfo" />
923 <dc:attribute name="target_out" value="${out}"/> 923 <dc:attribute name="target_out" value="${out}" />
924 <dc:attribute name="artifact-id" value="${a_gid}"/> 924 <dc:attribute name="artifact-id" value="${a_gid}" />
925 <dc:attribute name="ids" value="${facet_num}"/> 925 <dc:attribute name="ids" value="${facet_num}" />
926 <dc:attribute name="out" value="${out_name}"/> 926 <dc:attribute name="out" value="${out_name}" />
927 </dc:element> 927 </dc:element>
928 </dc:for-each> 928 </dc:for-each>
929 </sinfo_flood_durations> 929 </sinfo_flood_durations>
930 </dc:call-macro> 930 </dc:call-macro>
931 </sinfo_flood_durations> 931 </sinfo_flood_durations>
944 <waterlevels description="{dc:group-key()}"> 944 <waterlevels description="{dc:group-key()}">
945 <dc:for-each> 945 <dc:for-each>
946 <dc:choose> 946 <dc:choose>
947 <dc:when test="$ld_m = 'location'"> 947 <dc:when test="$ld_m = 'location'">
948 <dc:variable name="combined_desc" expr="concat($facet_description, 948 <dc:variable name="combined_desc" expr="concat($facet_description,
949 ' an KM ', $deffrom)"/> 949 ' an KM ', $deffrom)" />
950 </dc:when> 950 </dc:when>
951 <dc:otherwise> 951 <dc:otherwise>
952 <dc:variable name="combined_desc" expr="concat($facet_description, ' von KM ', 952 <dc:variable name="combined_desc" expr="concat($facet_description, ' von KM ',
953 $deffrom, ' bis KM ', $defto)"/> 953 $deffrom, ' bis KM ', $defto)" />
954 </dc:otherwise> 954 </dc:otherwise>
955 </dc:choose> 955 </dc:choose>
956 <dc:element name="${facet_name}"> 956 <dc:element name="${facet_name}">
957 <dc:attribute name="description" value="${combined_desc}"/> 957 <dc:attribute name="description" value="${combined_desc}" />
958 <dc:attribute name="ids" value="${facet_num}"/> 958 <dc:attribute name="ids" value="${facet_num}" />
959 <dc:attribute name="factory" value="winfo"/> 959 <dc:attribute name="factory" value="winfo" />
960 <dc:attribute name="target_out" value="${out}"/> 960 <dc:attribute name="target_out" value="${out}" />
961 <dc:attribute name="artifact-id" value="${a_gid}"/> 961 <dc:attribute name="artifact-id" value="${a_gid}" />
962 <dc:attribute name="out" value="longitudinal_section"/> 962 <dc:attribute name="out" value="longitudinal_section" />
963 </dc:element> 963 </dc:element>
964 </dc:for-each> 964 </dc:for-each>
965 </waterlevels> 965 </waterlevels>
966 </dc:call-macro> 966 </dc:call-macro>
967 </waterlevels> 967 </waterlevels>
968 </dc:if> 968 </dc:if>
969 </dc:filter> 969 </dc:filter>
970 </dc:macro> 970 </dc:macro>
971 971
972 <dc:comment comment="For building differences."/> 972 <dc:comment comment="For building differences." />
973 <dc:macro name="differences-fix"> 973 <dc:macro name="differences-fix">
974 <dc:comment comment="Vollmer curves need own factory"/> 974 <dc:comment comment="Vollmer curves need own factory" />
975 <dc:filter expr="($a_state = 'state.fix.vollmer.compute' or $a_state = 'state.bundu.vollmer.compute') and $facet_name = 'longitudinal_section.w'"> 975 <dc:filter expr="($a_state = 'state.fix.vollmer.compute' or $a_state = 'state.bundu.vollmer.compute') and $facet_name = 'longitudinal_section.w'">
976 <dc:if test="dc:has-result()"> 976 <dc:if test="dc:has-result()">
977 <vollmer_waterlevels> 977 <vollmer_waterlevels>
978 <dc:call-macro name="collection-group"> 978 <dc:call-macro name="collection-group">
979 <waterlevels description="{dc:group-key()}"> 979 <waterlevels description="{dc:group-key()}">
980 <dc:for-each> 980 <dc:for-each>
981 <dc:choose> 981 <dc:choose>
982 <dc:when test="$ld_m = 'location'"> 982 <dc:when test="$ld_m = 'location'">
983 <dc:variable name="combined_desc" expr="concat($facet_description, ' an KM ', $deffrom)"/> 983 <dc:variable name="combined_desc" expr="concat($facet_description, ' an KM ', $deffrom)" />
984 </dc:when> 984 </dc:when>
985 <dc:otherwise> 985 <dc:otherwise>
986 <dc:variable name="combined_desc" expr="concat($facet_description, ' von KM ', 986 <dc:variable name="combined_desc" expr="concat($facet_description, ' von KM ',
987 $deffrom, ' bis KM ', $defto)"/> 987 $deffrom, ' bis KM ', $defto)" />
988 </dc:otherwise> 988 </dc:otherwise>
989 </dc:choose> 989 </dc:choose>
990 <dc:element name="${facet_name}"> 990 <dc:element name="${facet_name}">
991 <dc:attribute name="description" value="${combined_desc}"/> 991 <dc:attribute name="description" value="${combined_desc}" />
992 <dc:attribute name="ids" value="${facet_num}"/> 992 <dc:attribute name="ids" value="${facet_num}" />
993 <!-- FIXME: different factories! --> 993 <!-- FIXME: different factories! -->
994 <dc:attribute name="factory" value="fixanalysis"/> 994 <dc:attribute name="factory" value="fixanalysis" />
995 <dc:attribute name="target_out" value="${out}"/> 995 <dc:attribute name="target_out" value="${out}" />
996 <dc:attribute name="artifact-id" value="${a_gid}"/> 996 <dc:attribute name="artifact-id" value="${a_gid}" />
997 <dc:attribute name="out" value="longitudinal_section"/> 997 <dc:attribute name="out" value="longitudinal_section" />
998 </dc:element> 998 </dc:element>
999 </dc:for-each> 999 </dc:for-each>
1000 </waterlevels> 1000 </waterlevels>
1001 </dc:call-macro> 1001 </dc:call-macro>
1002 </vollmer_waterlevels> 1002 </vollmer_waterlevels>
1009 <dc:call-macro name="collection-group"> 1009 <dc:call-macro name="collection-group">
1010 <waterlevels description="{dc:group-key()}"> 1010 <waterlevels description="{dc:group-key()}">
1011 <dc:for-each> 1011 <dc:for-each>
1012 <dc:choose> 1012 <dc:choose>
1013 <dc:when test="$ld_m = 'location'"> 1013 <dc:when test="$ld_m = 'location'">
1014 <dc:variable name="combined_desc" expr="concat($facet_description, ' an KM ', $deffrom)"/> 1014 <dc:variable name="combined_desc" expr="concat($facet_description, ' an KM ', $deffrom)" />
1015 </dc:when> 1015 </dc:when>
1016 <dc:otherwise> 1016 <dc:otherwise>
1017 <dc:variable name="combined_desc" expr="concat($facet_description, ' von KM ', 1017 <dc:variable name="combined_desc" expr="concat($facet_description, ' von KM ',
1018 $deffrom, ' bis KM ', $defto)"/> 1018 $deffrom, ' bis KM ', $defto)" />
1019 </dc:otherwise> 1019 </dc:otherwise>
1020 </dc:choose> 1020 </dc:choose>
1021 <dc:element name="${facet_name}"> 1021 <dc:element name="${facet_name}">
1022 <dc:attribute name="description" value="${combined_desc}"/> 1022 <dc:attribute name="description" value="${combined_desc}" />
1023 <dc:attribute name="ids" value="${facet_num}"/> 1023 <dc:attribute name="ids" value="${facet_num}" />
1024 <dc:attribute name="factory" value="winfo"/> 1024 <dc:attribute name="factory" value="winfo" />
1025 <dc:attribute name="target_out" value="${out}"/> 1025 <dc:attribute name="target_out" value="${out}" />
1026 <dc:attribute name="artifact-id" value="${a_gid}"/> 1026 <dc:attribute name="artifact-id" value="${a_gid}" />
1027 <dc:attribute name="out" value="longitudinal_section"/> 1027 <dc:attribute name="out" value="longitudinal_section" />
1028 </dc:element> 1028 </dc:element>
1029 </dc:for-each> 1029 </dc:for-each>
1030 </waterlevels> 1030 </waterlevels>
1031 </dc:call-macro> 1031 </dc:call-macro>
1032 </waterlevels> 1032 </waterlevels>
1039 <dc:comment>No grouping in this?</dc:comment> 1039 <dc:comment>No grouping in this?</dc:comment>
1040 <dc:filter expr="$out_name = 'floodmap' and $facet_name = 'floodmap.usershape'"> 1040 <dc:filter expr="$out_name = 'floodmap' and $facet_name = 'floodmap.usershape'">
1041 <own-hws> 1041 <own-hws>
1042 <dc:for-each> 1042 <dc:for-each>
1043 <dc:element name="${facet_name}"> 1043 <dc:element name="${facet_name}">
1044 <dc:attribute name="description" value="${facet_description}"/> 1044 <dc:attribute name="description" value="${facet_description}" />
1045 <dc:attribute name="ids" value="${facet_num}"/> 1045 <dc:attribute name="ids" value="${facet_num}" />
1046 <dc:attribute name="factory" value="winfo"/> 1046 <dc:attribute name="factory" value="winfo" />
1047 <dc:attribute name="target_out" value="${out}"/> 1047 <dc:attribute name="target_out" value="${out}" />
1048 <dc:attribute name="artifact-id" value="${a_gid}"/> 1048 <dc:attribute name="artifact-id" value="${a_gid}" />
1049 <dc:attribute name="out" value="floodmap"/> 1049 <dc:attribute name="out" value="floodmap" />
1050 </dc:element> 1050 </dc:element>
1051 </dc:for-each> 1051 </dc:for-each>
1052 </own-hws> 1052 </own-hws>
1053 </dc:filter> 1053 </dc:filter>
1054 </dc:macro> 1054 </dc:macro>
1060 <bed_quality> 1060 <bed_quality>
1061 <dc:call-macro name="collection-group"> 1061 <dc:call-macro name="collection-group">
1062 <quality-bed description="{dc:group-key()}"> 1062 <quality-bed description="{dc:group-key()}">
1063 <dc:for-each> 1063 <dc:for-each>
1064 <dc:element name="${facet_name}"> 1064 <dc:element name="${facet_name}">
1065 <dc:attribute name="factory" value="minfo"/> 1065 <dc:attribute name="factory" value="minfo" />
1066 <dc:attribute name="target_out" value="${out}"/> 1066 <dc:attribute name="target_out" value="${out}" />
1067 <dc:attribute name="description" value="${facet_description}"/> 1067 <dc:attribute name="description" value="${facet_description}" />
1068 <dc:attribute name="ids" value="${facet_num}"/> 1068 <dc:attribute name="ids" value="${facet_num}" />
1069 <dc:attribute name="artifact-id" value="${a_gid}"/> 1069 <dc:attribute name="artifact-id" value="${a_gid}" />
1070 <dc:attribute name="out" value="bed_longitudinal_section"/> 1070 <dc:attribute name="out" value="bed_longitudinal_section" />
1071 </dc:element> 1071 </dc:element>
1072 </dc:for-each> 1072 </dc:for-each>
1073 </quality-bed> 1073 </quality-bed>
1074 </dc:call-macro> 1074 </dc:call-macro>
1075 </bed_quality> 1075 </bed_quality>
1084 <flow_velocity> 1084 <flow_velocity>
1085 <dc:call-macro name="collection-group"> 1085 <dc:call-macro name="collection-group">
1086 <flow description="{dc:group-key()}"> 1086 <flow description="{dc:group-key()}">
1087 <dc:for-each> 1087 <dc:for-each>
1088 <dc:element name="${facet_name}"> 1088 <dc:element name="${facet_name}">
1089 <dc:attribute name="factory" value="minfo"/> 1089 <dc:attribute name="factory" value="minfo" />
1090 <dc:attribute name="target_out" value="${out}"/> 1090 <dc:attribute name="target_out" value="${out}" />
1091 <dc:attribute name="description" value="${facet_description}"/> 1091 <dc:attribute name="description" value="${facet_description}" />
1092 <dc:attribute name="ids" value="${facet_num}"/> 1092 <dc:attribute name="ids" value="${facet_num}" />
1093 <dc:attribute name="artifact-id" value="${a_gid}"/> 1093 <dc:attribute name="artifact-id" value="${a_gid}" />
1094 <dc:attribute name="out" value="flow_velocity"/> 1094 <dc:attribute name="out" value="flow_velocity" />
1095 </dc:element> 1095 </dc:element>
1096 </dc:for-each> 1096 </dc:for-each>
1097 </flow> 1097 </flow>
1098 </dc:call-macro> 1098 </dc:call-macro>
1099 </flow_velocity> 1099 </flow_velocity>
1107 <sediment_load> 1107 <sediment_load>
1108 <dc:call-macro name="collection-group"> 1108 <dc:call-macro name="collection-group">
1109 <load description="{dc:group-key()}"> 1109 <load description="{dc:group-key()}">
1110 <dc:for-each> 1110 <dc:for-each>
1111 <dc:element name="${facet_name}"> 1111 <dc:element name="${facet_name}">
1112 <dc:attribute name="factory" value="minfo"/> 1112 <dc:attribute name="factory" value="minfo" />
1113 <dc:attribute name="target_out" value="${out}"/> 1113 <dc:attribute name="target_out" value="${out}" />
1114 <dc:attribute name="description" value="${facet_description}"/> 1114 <dc:attribute name="description" value="${facet_description}" />
1115 <dc:attribute name="ids" value="${facet_num}"/> 1115 <dc:attribute name="ids" value="${facet_num}" />
1116 <dc:attribute name="artifact-id" value="${a_gid}"/> 1116 <dc:attribute name="artifact-id" value="${a_gid}" />
1117 <dc:attribute name="out" value="${out_name}"/> 1117 <dc:attribute name="out" value="${out_name}" />
1118 </dc:element> 1118 </dc:element>
1119 </dc:for-each> 1119 </dc:for-each>
1120 </load> 1120 </load>
1121 </dc:call-macro> 1121 </dc:call-macro>
1122 </sediment_load> 1122 </sediment_load>
1131 <middle_bedheights> 1131 <middle_bedheights>
1132 <dc:call-macro name="collection-group"> 1132 <dc:call-macro name="collection-group">
1133 <middle_bedheight description="{dc:group-key()}"> 1133 <middle_bedheight description="{dc:group-key()}">
1134 <dc:for-each> 1134 <dc:for-each>
1135 <dc:element name="${facet_name}"> 1135 <dc:element name="${facet_name}">
1136 <dc:attribute name="factory" value="minfo"/> 1136 <dc:attribute name="factory" value="minfo" />
1137 <dc:attribute name="target_out" value="${out}"/> 1137 <dc:attribute name="target_out" value="${out}" />
1138 <dc:attribute name="description" value="${facet_description}"/> 1138 <dc:attribute name="description" value="${facet_description}" />
1139 <dc:attribute name="ids" value="${facet_num}"/> 1139 <dc:attribute name="ids" value="${facet_num}" />
1140 <dc:attribute name="artifact-id" value="${a_gid}"/> 1140 <dc:attribute name="artifact-id" value="${a_gid}" />
1141 <dc:attribute name="out" value="${out_name}"/> 1141 <dc:attribute name="out" value="${out_name}" />
1142 </dc:element> 1142 </dc:element>
1143 </dc:for-each> 1143 </dc:for-each>
1144 </middle_bedheight> 1144 </middle_bedheight>
1145 </dc:call-macro> 1145 </dc:call-macro>
1146 </middle_bedheights> 1146 </middle_bedheights>
1155 <bedheight_differences> 1155 <bedheight_differences>
1156 <dc:call-macro name="collection-group"> 1156 <dc:call-macro name="collection-group">
1157 <difference description="{dc:group-key()}"> 1157 <difference description="{dc:group-key()}">
1158 <dc:for-each> 1158 <dc:for-each>
1159 <dc:element name="${facet_name}"> 1159 <dc:element name="${facet_name}">
1160 <dc:attribute name="factory" value="minfo"/> 1160 <dc:attribute name="factory" value="minfo" />
1161 <dc:attribute name="target_out" value="${out}"/> 1161 <dc:attribute name="target_out" value="${out}" />
1162 <dc:attribute name="description" value="${facet_description}"/> 1162 <dc:attribute name="description" value="${facet_description}" />
1163 <dc:attribute name="ids" value="${facet_num}"/> 1163 <dc:attribute name="ids" value="${facet_num}" />
1164 <dc:attribute name="artifact-id" value="${a_gid}"/> 1164 <dc:attribute name="artifact-id" value="${a_gid}" />
1165 <dc:attribute name="out" value="${out_name}"/> 1165 <dc:attribute name="out" value="${out_name}" />
1166 </dc:element> 1166 </dc:element>
1167 </dc:for-each> 1167 </dc:for-each>
1168 </difference> 1168 </difference>
1169 </dc:call-macro> 1169 </dc:call-macro>
1170 </bedheight_differences> 1170 </bedheight_differences>
1187 <sq_relations> 1187 <sq_relations>
1188 <dc:call-macro name="collection-group"> 1188 <dc:call-macro name="collection-group">
1189 <sqrel description="{dc:group-key()}"> 1189 <sqrel description="{dc:group-key()}">
1190 <dc:for-each> 1190 <dc:for-each>
1191 <dc:element name="${facet_name}"> 1191 <dc:element name="${facet_name}">
1192 <dc:attribute name="factory" value="minfo"/> 1192 <dc:attribute name="factory" value="minfo" />
1193 <dc:attribute name="target_out" value="${out}"/> 1193 <dc:attribute name="target_out" value="${out}" />
1194 <dc:attribute name="description" value="${facet_description}"/> 1194 <dc:attribute name="description" value="${facet_description}" />
1195 <dc:attribute name="ids" value="${facet_num}"/> 1195 <dc:attribute name="ids" value="${facet_num}" />
1196 <dc:attribute name="artifact-id" value="${a_gid}"/> 1196 <dc:attribute name="artifact-id" value="${a_gid}" />
1197 <dc:attribute name="out" value="${out_name}"/> 1197 <dc:attribute name="out" value="${out_name}" />
1198 </dc:element> 1198 </dc:element>
1199 </dc:for-each> 1199 </dc:for-each>
1200 </sqrel> 1200 </sqrel>
1201 </dc:call-macro> 1201 </dc:call-macro>
1202 </sq_relations> 1202 </sq_relations>
1210 <waterlevels_discharge> 1210 <waterlevels_discharge>
1211 <dc:call-macro name="collection-group"> 1211 <dc:call-macro name="collection-group">
1212 <discharge description="{dc:group-key()}"> 1212 <discharge description="{dc:group-key()}">
1213 <dc:for-each> 1213 <dc:for-each>
1214 <dc:element name="${facet_name}"> 1214 <dc:element name="${facet_name}">
1215 <dc:attribute name="factory" value="winfo"/> 1215 <dc:attribute name="factory" value="winfo" />
1216 <dc:attribute name="target_out" value="${out}"/> 1216 <dc:attribute name="target_out" value="${out}" />
1217 <dc:attribute name="description" value="${facet_description}"/> 1217 <dc:attribute name="description" value="${facet_description}" />
1218 <dc:attribute name="ids" value="${facet_num}-${facet_name}"/> 1218 <dc:attribute name="ids" value="${facet_num}-${facet_name}" />
1219 <dc:attribute name="artifact-id" value="${a_gid}"/> 1219 <dc:attribute name="artifact-id" value="${a_gid}" />
1220 <dc:attribute name="out" value="discharge_longitudinal_section"/> 1220 <dc:attribute name="out" value="discharge_longitudinal_section" />
1221 </dc:element> 1221 </dc:element>
1222 </dc:for-each> 1222 </dc:for-each>
1223 </discharge> 1223 </discharge>
1224 </dc:call-macro> 1224 </dc:call-macro>
1225 </waterlevels_discharge> 1225 </waterlevels_discharge>
1229 1229
1230 1230
1231 <!-- Macros to load system data --> 1231 <!-- Macros to load system data -->
1232 1232
1233 <dc:macro name="duration_curve_system"> 1233 <dc:macro name="duration_curve_system">
1234 <dc:call-macro name="mainvalues"/> 1234 <dc:call-macro name="mainvalues" />
1235 <dc:call-macro name="basedata_2_fixations_relative_point"/> 1235 <dc:call-macro name="basedata_2_fixations_relative_point" />
1236 <dc:call-macro name="basedata_4_heightmarks-points-relative_points"/> 1236 <dc:call-macro name="basedata_4_heightmarks-points-relative_points" />
1237 <dc:call-macro name="basedata_5_flood-protections_relative_points"/> 1237 <dc:call-macro name="basedata_5_flood-protections_relative_points" />
1238 </dc:macro> 1238 </dc:macro>
1239 1239
1240 <dc:macro name="floodduration_curve_system"> 1240 <dc:macro name="floodduration_curve_system">
1241 <dc:call-macro name="mainvalues"/> 1241 <dc:call-macro name="mainvalues" />
1242 </dc:macro> 1242 </dc:macro>
1243 1243
1244 <dc:macro name="qmainvalues"> 1244 <dc:macro name="qmainvalues">
1245 <qmainvalue factory="mainvalue" ids="{$river_id}:q" target_out="{$out}"/> 1245 <qmainvalue factory="mainvalue" ids="{$river_id}:q" target_out="{$out}" />
1246 </dc:macro> 1246 </dc:macro>
1247 1247
1248 <dc:macro name="mainvalues"> 1248 <dc:macro name="mainvalues">
1249 <wmainvalue factory="mainvalue" ids="{$river_id}:w" target_out="{$out}"/> 1249 <wmainvalue factory="mainvalue" ids="{$river_id}:w" target_out="{$out}" />
1250 <dc:call-macro name="qmainvalues"/> 1250 <dc:call-macro name="qmainvalues" />
1251 </dc:macro> 1251 </dc:macro>
1252 1252
1253 <!-- discharge curves --> 1253 <!-- discharge curves -->
1254 <dc:macro name="hist_discharge_factory"> 1254 <dc:macro name="hist_discharge_factory">
1255 <dc:for-each> 1255 <dc:for-each>
1256 <dc:variable name="validity" expr="concat( 1256 <dc:variable name="validity" expr="concat(
1257 dc:date-format('dd.MM.yyyy', $start_time), 1257 dc:date-format('dd.MM.yyyy', $start_time),
1258 ' - ', 1258 ' - ',
1259 dc:date-format('dd.MM.yyyy', $stop_time))"/> 1259 dc:date-format('dd.MM.yyyy', $stop_time))" />
1260 <histdis name="{concat($bfg_id, ' ', $validity)}" description="{concat($bfg_id, ' ', $validity)}" factory="gaugedischarge" target_out="{$out}" ids="{$gauge_name};{$dt_id};{concat($bfg_id, ' ', 1260 <histdis name="{concat($bfg_id, ' ', $validity)}" description="{concat($bfg_id, ' ', $validity)}" factory="gaugedischarge" target_out="{$out}" ids="{$gauge_name};{$dt_id};{concat($bfg_id, ' ',
1261 $gauge_name, ' ', $validity)}"/> 1261 $gauge_name, ' ', $validity)}" />
1262 </dc:for-each> 1262 </dc:for-each>
1263 </dc:macro> 1263 </dc:macro>
1264 1264
1265 <dc:macro name="hist_discharge_rec"> 1265 <dc:macro name="hist_discharge_rec">
1266 <dc:variable name="start" type="number" expr="dc:date-format('yyyyMMdd', 1266 <dc:variable name="start" type="number" expr="dc:date-format('yyyyMMdd',
1267 number(substring-before($year_range, ';')))"/> 1267 number(substring-before($year_range, ';')))" />
1268 <dc:variable name="stop" type="number" expr="dc:date-format('yyyyMMdd', 1268 <dc:variable name="stop" type="number" expr="dc:date-format('yyyyMMdd',
1269 number(substring-after($year_range, ';')))"/> 1269 number(substring-after($year_range, ';')))" />
1270 <dc:call-macro name="discharge_curve_choose_context"> 1270 <dc:call-macro name="discharge_curve_choose_context">
1271 <dc:filter expr="$kind = 1 and 1271 <dc:filter expr="$kind = 1 and
1272 number(dc:date-format('yyyyMMdd', $start_time)) 1272 number(dc:date-format('yyyyMMdd', $start_time))
1273 &lt; $stop and 1273 &lt; $stop and
1274 number(dc:coalesce( 1274 number(dc:coalesce(
1275 dc:date-format('yyyyMMdd', $stop_time), 1275 dc:date-format('yyyyMMdd', $stop_time),
1276 '99999999')) 1276 '99999999'))
1277 &gt; $start"> 1277 &gt; $start">
1278 <dc:call-macro name="hist_discharge_factory"/> 1278 <dc:call-macro name="hist_discharge_factory" />
1279 </dc:filter> 1279 </dc:filter>
1280 </dc:call-macro> 1280 </dc:call-macro>
1281 </dc:macro> 1281 </dc:macro>
1282 1282
1283 <dc:macro name="discharge_table_gauge"> 1283 <dc:macro name="discharge_table_gauge">
1284 <dc:call-macro name="discharge_curve_choose_context"> 1284 <dc:call-macro name="discharge_curve_choose_context">
1285 <dc:filter expr="$kind = 0"> 1285 <dc:filter expr="$kind = 0">
1286 <dc:group expr="$gauge_name"> 1286 <dc:group expr="$gauge_name">
1287 <gauge name="{dc:group-key()}"> 1287 <gauge name="{dc:group-key()}">
1288 <dc:for-each> 1288 <dc:for-each>
1289 <current_gauge factory="gaugedischarge" target_out="{$out}" ids="{$gauge_name}"/> 1289 <current_gauge factory="gaugedischarge" target_out="{$out}" ids="{$gauge_name}" />
1290 </dc:for-each> 1290 </dc:for-each>
1291 </gauge> 1291 </gauge>
1292 </dc:group> 1292 </dc:group>
1293 </dc:filter> 1293 </dc:filter>
1294 </dc:call-macro> 1294 </dc:call-macro>
1298 <dc:call-macro name="discharge_curve_choose_context"> 1298 <dc:call-macro name="discharge_curve_choose_context">
1299 <dc:filter expr="$kind = 1"> 1299 <dc:filter expr="$kind = 1">
1300 <historical_discharge_curves> 1300 <historical_discharge_curves>
1301 <dc:group expr="$gauge_name"> 1301 <dc:group expr="$gauge_name">
1302 <gauge name="{dc:group-key()}"> 1302 <gauge name="{dc:group-key()}">
1303 <dc:call-macro name="hist_discharge_factory"/> 1303 <dc:call-macro name="hist_discharge_factory" />
1304 </gauge> 1304 </gauge>
1305 </dc:group> 1305 </dc:group>
1306 </historical_discharge_curves> 1306 </historical_discharge_curves>
1307 </dc:filter> 1307 </dc:filter>
1308 </dc:call-macro> 1308 </dc:call-macro>
1310 1310
1311 <dc:macro name="discharge_curve_choose_context"> 1311 <dc:macro name="discharge_curve_choose_context">
1312 <dc:choose> 1312 <dc:choose>
1313 <dc:when test="$fromkm &gt; -99999 and $tokm &lt; 99999"> 1313 <dc:when test="$fromkm &gt; -99999 and $tokm &lt; 99999">
1314 <dc:context> 1314 <dc:context>
1315 <dc:call-macro name="discharge_curves_km"/> 1315 <dc:call-macro name="discharge_curves_km" />
1316 <dc:macro-body/> 1316 <dc:macro-body />
1317 </dc:context> 1317 </dc:context>
1318 </dc:when> 1318 </dc:when>
1319 <dc:otherwise> 1319 <dc:otherwise>
1320 <dc:variable name="refgauge" type="number" expr="dc:get('reference_gauge')"/> 1320 <dc:variable name="refgauge" type="number" expr="dc:get('reference_gauge')" />
1321 <dc:context> 1321 <dc:context>
1322 <dc:call-macro name="discharge_curves_refgauge"/> 1322 <dc:call-macro name="discharge_curves_refgauge" />
1323 <dc:macro-body/> 1323 <dc:macro-body />
1324 </dc:context> 1324 </dc:context>
1325 </dc:otherwise> 1325 </dc:otherwise>
1326 </dc:choose> 1326 </dc:choose>
1327 </dc:macro> 1327 </dc:macro>
1328 1328
1372 JOIN cross_section_lines csl ON csl.cross_section_id = cs.id 1372 JOIN cross_section_lines csl ON csl.cross_section_id = cs.id
1373 WHERE cs.river_id = ${river_id} 1373 WHERE cs.river_id = ${river_id}
1374 AND csl.km BETWEEN ${fromkm} AND ${tokm} 1374 AND csl.km BETWEEN ${fromkm} AND ${tokm}
1375 </dc:statement> 1375 </dc:statement>
1376 <dc:for-each> 1376 <dc:for-each>
1377 <cross_section name="{$prot_description}" ids="{$prot_id}" factory="crosssections" target_out="{$out}"/> 1377 <cross_section name="{$prot_description}" ids="{$prot_id}" factory="crosssections" target_out="{$out}" />
1378 </dc:for-each> 1378 </dc:for-each>
1379 </dc:context> 1379 </dc:context>
1380 </cross_sections> 1380 </cross_sections>
1381 </dc:macro> 1381 </dc:macro>
1382 1382
1391 JOIN hyk_entries he ON he.hyk_id = h.id 1391 JOIN hyk_entries he ON he.hyk_id = h.id
1392 WHERE river_id = ${river_id} 1392 WHERE river_id = ${river_id}
1393 AND he.km BETWEEN ${fromkm} AND ${tokm} 1393 AND he.km BETWEEN ${fromkm} AND ${tokm}
1394 </dc:statement> 1394 </dc:statement>
1395 <dc:for-each> 1395 <dc:for-each>
1396 <hyk name="{$hyk_description}" ids="{$hyk_id}" factory="hyk" target_out="{$out}"/> 1396 <hyk name="{$hyk_description}" ids="{$hyk_id}" factory="hyk" target_out="{$out}" />
1397 </dc:for-each> 1397 </dc:for-each>
1398 </dc:context> 1398 </dc:context>
1399 </hyks> 1399 </hyks>
1400 </dc:macro> 1400 </dc:macro>
1401 1401
1402 <!-- Default Vegetation Zones --> 1402 <!-- Default Vegetation Zones -->
1403 <dc:macro name="predefined_vegetation_zones"> 1403 <dc:macro name="predefined_vegetation_zones">
1404 <uinfo module="uinfo"> 1404 <uinfo module="uinfo">
1405 <vegetation_zones> 1405 <vegetation_zones>
1406 <dc:variable name="vegzonedata" expr="dc:defaultvegetationzone($river)"/> 1406 <dc:variable name="vegzonedata" expr="dc:defaultvegetationzone($river)" />
1407 1407
1408 <defaultVegetationZone factory="predefined_vegetation_zonesf" target_out="{$out}" ids="{$vegzonedata}"/> 1408 <defaultVegetationZone factory="predefined_vegetation_zonesf" target_out="{$out}" ids="{$vegzonedata}" />
1409 </vegetation_zones> 1409 </vegetation_zones>
1410 </uinfo> 1410 </uinfo>
1411 </dc:macro> 1411 </dc:macro>
1412 1412
1413 <!-- wst-data --> 1413 <!-- wst-data -->
1418 <dc:if test="dc:has-result()"> 1418 <dc:if test="dc:has-result()">
1419 <basedata> 1419 <basedata>
1420 <dc:group expr="$wst_description"> 1420 <dc:group expr="$wst_description">
1421 <basedata name="{dc:group-key()}"> 1421 <basedata name="{dc:group-key()}">
1422 <dc:for-each> 1422 <dc:for-each>
1423 <dc:macro-body/> 1423 <dc:macro-body />
1424 </dc:for-each> 1424 </dc:for-each>
1425 </basedata> 1425 </basedata>
1426 </dc:group> 1426 </dc:group>
1427 </basedata> 1427 </basedata>
1428 </dc:if> 1428 </dc:if>
1429 </dc:filter> 1429 </dc:filter>
1430 </dc:macro> 1430 </dc:macro>
1431 1431
1432 <dc:macro name="basedata_0"> 1432 <dc:macro name="basedata_0">
1433 <dc:call-macro name="basedata_0_macro"> 1433 <dc:call-macro name="basedata_0_macro">
1434 <column name="{$wst_column_name}" ids="base_data-wstv-{$wst_column_position}-{$wst_id}" factory="staticwqkms" target_out="{$out}" info="{$info} [km {$deffrom} - {$defto}]"/> 1434 <column name="{$wst_column_name}" ids="base_data-wstv-{$wst_column_position}-{$wst_id}" factory="staticwqkms" target_out="{$out}" info="{$info} [km {$deffrom} - {$defto}]" />
1435 </dc:call-macro> 1435 </dc:call-macro>
1436 </dc:macro> 1436 </dc:macro>
1437 1437
1438 <dc:macro name="basedata_0_wq"> 1438 <dc:macro name="basedata_0_wq">
1439 <dc:call-macro name="basedata_0_macro"> 1439 <dc:call-macro name="basedata_0_macro">
1440 <column name="{$wst_column_name}" ids="base_data-wstv-{$wst_column_position}-{$wst_id}" factory="wqinterpol" target_out="{$out}" info="{$info} [km {$deffrom} - {$defto}]"/> 1440 <column name="{$wst_column_name}" ids="base_data-wstv-{$wst_column_position}-{$wst_id}" factory="wqinterpol" target_out="{$out}" info="{$info} [km {$deffrom} - {$defto}]" />
1441 </dc:call-macro> 1441 </dc:call-macro>
1442 </dc:macro> 1442 </dc:macro>
1443 1443
1444 <!-- additional longitudinal sections --> 1444 <!-- additional longitudinal sections -->
1445 <dc:macro name="basedata_1_additionals_macro"> 1445 <dc:macro name="basedata_1_additionals_macro">
1447 <dc:if test="dc:has-result()"> 1447 <dc:if test="dc:has-result()">
1448 <additionals> 1448 <additionals>
1449 <dc:group expr="dc:replace($wst_description, 'Zus.Längsschnitte/', '')"> 1449 <dc:group expr="dc:replace($wst_description, 'Zus.Längsschnitte/', '')">
1450 <additional name="{dc:group-key()}" description="{dc:group-key()}"> 1450 <additional name="{dc:group-key()}" description="{dc:group-key()}">
1451 <dc:for-each> 1451 <dc:for-each>
1452 <dc:macro-body/> 1452 <dc:macro-body />
1453 </dc:for-each> 1453 </dc:for-each>
1454 </additional> 1454 </additional>
1455 </dc:group> 1455 </dc:group>
1456 </additionals> 1456 </additionals>
1457 </dc:if> 1457 </dc:if>
1458 </dc:filter> 1458 </dc:filter>
1459 </dc:macro> 1459 </dc:macro>
1460 1460
1461 <dc:macro name="basedata_1_additionals"> 1461 <dc:macro name="basedata_1_additionals">
1462 <dc:call-macro name="basedata_1_additionals_macro"> 1462 <dc:call-macro name="basedata_1_additionals_macro">
1463 <column name="{$wst_column_name}" ids="additionals-wstv-{$wst_column_position}-{$wst_id}" factory="staticwqkms" target_out="{$out}" info="{$info} [km {$deffrom} - {$defto}]"/> 1463 <column name="{$wst_column_name}" ids="additionals-wstv-{$wst_column_position}-{$wst_id}" factory="staticwqkms" target_out="{$out}" info="{$info} [km {$deffrom} - {$defto}]" />
1464 </dc:call-macro> 1464 </dc:call-macro>
1465 </dc:macro> 1465 </dc:macro>
1466 1466
1467 <dc:macro name="basedata_1_additionals-sinfo-with-q_macro"> 1467 <dc:macro name="basedata_1_additionals-sinfo-with-q_macro">
1468 <dc:filter expr="$kind=1 and $sinfo_selection='Q'"> 1468 <dc:filter expr="$kind=1 and $sinfo_selection='Q'">
1469 <dc:if test="dc:has-result()"> 1469 <dc:if test="dc:has-result()">
1470 <sinfo_additional_ls_withQ> 1470 <sinfo_additional_ls_withQ>
1471 <dc:group expr="dc:replace($wst_description, 'Zus.Längsschnitte/', '')"> 1471 <dc:group expr="dc:replace($wst_description, 'Zus.Längsschnitte/', '')">
1472 <additional name="{dc:group-key()}" description="{dc:group-key()}"> 1472 <additional name="{dc:group-key()}" description="{dc:group-key()}">
1473 <dc:for-each> 1473 <dc:for-each>
1474 <dc:macro-body/> 1474 <dc:macro-body />
1475 </dc:for-each> 1475 </dc:for-each>
1476 </additional> 1476 </additional>
1477 </dc:group> 1477 </dc:group>
1478 </sinfo_additional_ls_withQ> 1478 </sinfo_additional_ls_withQ>
1479 </dc:if> 1479 </dc:if>
1480 </dc:filter> 1480 </dc:filter>
1481 </dc:macro> 1481 </dc:macro>
1482 1482
1483 <dc:macro name="basedata_1_additionals-sinfo-with-q"> 1483 <dc:macro name="basedata_1_additionals-sinfo-with-q">
1484 <dc:call-macro name="basedata_1_additionals-sinfo-with-q_macro"> 1484 <dc:call-macro name="basedata_1_additionals-sinfo-with-q_macro">
1485 <column name="{$wst_column_name}" ids="additionals-wstv-{$wst_column_position}-{$wst_id}" factory="staticwqkms" target_out="{$out}" info="{$info} [km {$deffrom} - {$defto}]" year="{dc:date-format('yyyy', $start_time)}"/> 1485 <column name="{$wst_column_name}" ids="additionals-wstv-{$wst_column_position}-{$wst_id}" factory="staticwqkms" target_out="{$out}" info="{$info} [km {$deffrom} - {$defto}]" year="{dc:date-format('yyyy', $start_time)}" />
1486 </dc:call-macro> 1486 </dc:call-macro>
1487 </dc:macro> 1487 </dc:macro>
1488 1488
1489 <dc:macro name="basedata_1_additionals-sinfo-without-q_macro"> 1489 <dc:macro name="basedata_1_additionals-sinfo-without-q_macro">
1490 <dc:filter expr="$kind=1 and $sinfo_selection='W'"> 1490 <dc:filter expr="$kind=1 and $sinfo_selection='W'">
1491 <dc:if test="dc:has-result()"> 1491 <dc:if test="dc:has-result()">
1492 <sinfo_additional_ls_withoutQ> 1492 <sinfo_additional_ls_withoutQ>
1493 <dc:group expr="dc:replace($wst_description, 'Zus.Längsschnitte/', '')"> 1493 <dc:group expr="dc:replace($wst_description, 'Zus.Längsschnitte/', '')">
1494 <additional name="{dc:group-key()}" description="{dc:group-key()}"> 1494 <additional name="{dc:group-key()}" description="{dc:group-key()}">
1495 <dc:for-each> 1495 <dc:for-each>
1496 <dc:macro-body/> 1496 <dc:macro-body />
1497 </dc:for-each> 1497 </dc:for-each>
1498 </additional> 1498 </additional>
1499 </dc:group> 1499 </dc:group>
1500 </sinfo_additional_ls_withoutQ> 1500 </sinfo_additional_ls_withoutQ>
1501 </dc:if> 1501 </dc:if>
1502 </dc:filter> 1502 </dc:filter>
1503 </dc:macro> 1503 </dc:macro>
1504 1504
1505 <dc:macro name="basedata_1_additionals-sinfo-without-q"> 1505 <dc:macro name="basedata_1_additionals-sinfo-without-q">
1506 <dc:call-macro name="basedata_1_additionals-sinfo-without-q_macro"> 1506 <dc:call-macro name="basedata_1_additionals-sinfo-without-q_macro">
1507 <dc:variable name="start_year" expr="dc:date-format('yyyy', $start_time)"/> 1507 <dc:variable name="start_year" expr="dc:date-format('yyyy', $start_time)" />
1508 <column name="{$wst_column_name}" ids="additionals-wstv-{$wst_column_position}-{$wst_id}" factory="staticwkms" target_out="{$out}" info="{$info} [km {$deffrom} - {$defto}]" year="{dc:date-format('yyyy', $start_time)}"/> 1508 <column name="{$wst_column_name}" ids="additionals-wstv-{$wst_column_position}-{$wst_id}" factory="staticwkms" target_out="{$out}" info="{$info} [km {$deffrom} - {$defto}]" year="{dc:date-format('yyyy', $start_time)}" />
1509 </dc:call-macro> 1509 </dc:call-macro>
1510 </dc:macro> 1510 </dc:macro>
1511 1511
1512 <dc:macro name="basedata_1_additionals_wq"> 1512 <dc:macro name="basedata_1_additionals_wq">
1513 <dc:call-macro name="basedata_1_additionals_macro"> 1513 <dc:call-macro name="basedata_1_additionals_macro">
1514 <column name="{$wst_column_name}" ids="base_data-wstv-{$wst_column_position}-{$wst_id}" factory="wqinterpol" target_out="{$out}" info="{$info} [km {$deffrom} - {$defto}]"/> 1514 <column name="{$wst_column_name}" ids="base_data-wstv-{$wst_column_position}-{$wst_id}" factory="wqinterpol" target_out="{$out}" info="{$info} [km {$deffrom} - {$defto}]" />
1515 </dc:call-macro> 1515 </dc:call-macro>
1516 </dc:macro> 1516 </dc:macro>
1517 1517
1518 <dc:macro name="basedata_1_additionals-relative_point"> 1518 <dc:macro name="basedata_1_additionals-relative_point">
1519 <dc:call-macro name="basedata_1_additionals_macro"> 1519 <dc:call-macro name="basedata_1_additionals_macro">
1520 <column name="{$wst_column_name}" ids="additionals-wstv-{$wst_column_position}-{$wst_id}" factory="staticwkms" target_out="{$out}" info="{$info} [km {$deffrom} - {$defto}]"/> 1520 <column name="{$wst_column_name}" ids="additionals-wstv-{$wst_column_position}-{$wst_id}" factory="staticwkms" target_out="{$out}" info="{$info} [km {$deffrom} - {$defto}]" />
1521 </dc:call-macro> 1521 </dc:call-macro>
1522 </dc:macro> 1522 </dc:macro>
1523 1523
1524 <!-- fixations --> 1524 <!-- fixations -->
1525 <dc:macro name="fixings-macro"> 1525 <dc:macro name="fixings-macro">
1527 <dc:if test="dc:has-result()"> 1527 <dc:if test="dc:has-result()">
1528 <fixations> 1528 <fixations>
1529 <dc:group expr="dc:replace($wst_description, 'Fixierungen/', '')"> 1529 <dc:group expr="dc:replace($wst_description, 'Fixierungen/', '')">
1530 <fixation name="{dc:group-key()}"> 1530 <fixation name="{dc:group-key()}">
1531 <dc:for-each> 1531 <dc:for-each>
1532 <dc:macro-body/> 1532 <dc:macro-body />
1533 </dc:for-each> 1533 </dc:for-each>
1534 </fixation> 1534 </fixation>
1535 </dc:group> 1535 </dc:group>
1536 </fixations> 1536 </fixations>
1537 </dc:if> 1537 </dc:if>
1538 </dc:filter> 1538 </dc:filter>
1539 </dc:macro> 1539 </dc:macro>
1540 1540
1541 <dc:macro name="basedata_2_fixations"> 1541 <dc:macro name="basedata_2_fixations">
1542 <dc:call-macro name="fixings-macro"> 1542 <dc:call-macro name="fixings-macro">
1543 <dc:variable name="start_year" expr="dc:date-format('yyyy', $start_time)"/> 1543 <dc:variable name="start_year" expr="dc:date-format('yyyy', $start_time)" />
1544 <column name="{$wst_column_name}" ids="fixations-wstv-{$wst_column_position}-{$wst_id}" factory="staticwqkms" target_out="{$out}" info="{$info} [km {$deffrom} - {$defto}]" year="{dc:date-format('yyyy', $start_time)}"/> 1544 <column name="{$wst_column_name}" ids="fixations-wstv-{$wst_column_position}-{$wst_id}" factory="staticwqkms" target_out="{$out}" info="{$info} [km {$deffrom} - {$defto}]" year="{dc:date-format('yyyy', $start_time)}" />
1545 </dc:call-macro> 1545 </dc:call-macro>
1546 </dc:macro> 1546 </dc:macro>
1547 1547
1548 <dc:macro name="basedata_2_fixations_wq"> 1548 <dc:macro name="basedata_2_fixations_wq">
1549 <dc:call-macro name="fixings-macro"> 1549 <dc:call-macro name="fixings-macro">
1550 <column name="{$wst_column_name}" ids="fixations-wstv-{$wst_column_position}-{$wst_id}" factory="wqinterpol" target_out="{$out}" info="{$info} [km {$deffrom} - {$defto}]"/> 1550 <column name="{$wst_column_name}" ids="fixations-wstv-{$wst_column_position}-{$wst_id}" factory="wqinterpol" target_out="{$out}" info="{$info} [km {$deffrom} - {$defto}]" />
1551 </dc:call-macro> 1551 </dc:call-macro>
1552 </dc:macro> 1552 </dc:macro>
1553 1553
1554 <dc:macro name="basedata_2_fixations_relative_point"> 1554 <dc:macro name="basedata_2_fixations_relative_point">
1555 <dc:call-macro name="fixings-macro"> 1555 <dc:call-macro name="fixings-macro">
1556 <column name="{$wst_column_name}" ids="fixations-wstv-{$wst_column_position}-{$wst_id}" factory="staticwkms" target_out="{$out}" info="{$info} [km {$deffrom} - {$defto}]"/> 1556 <column name="{$wst_column_name}" ids="fixations-wstv-{$wst_column_position}-{$wst_id}" factory="staticwkms" target_out="{$out}" info="{$info} [km {$deffrom} - {$defto}]" />
1557 </dc:call-macro> 1557 </dc:call-macro>
1558 </dc:macro> 1558 </dc:macro>
1559 1559
1560 <!-- official lines --> 1560 <!-- official lines -->
1561 <dc:macro name="basedata_3_macro"> 1561 <dc:macro name="basedata_3_macro">
1563 <dc:if test="dc:has-result()"> 1563 <dc:if test="dc:has-result()">
1564 <officiallines> 1564 <officiallines>
1565 <dc:group expr="$wst_description"> 1565 <dc:group expr="$wst_description">
1566 <official name="{dc:group-key()}"> 1566 <official name="{dc:group-key()}">
1567 <dc:for-each> 1567 <dc:for-each>
1568 <dc:macro-body/> 1568 <dc:macro-body />
1569 </dc:for-each> 1569 </dc:for-each>
1570 </official> 1570 </official>
1571 </dc:group> 1571 </dc:group>
1572 </officiallines> 1572 </officiallines>
1573 </dc:if> 1573 </dc:if>
1574 </dc:filter> 1574 </dc:filter>
1575 </dc:macro> 1575 </dc:macro>
1576 1576
1577 <dc:macro name="basedata_3_officials"> 1577 <dc:macro name="basedata_3_officials">
1578 <dc:call-macro name="basedata_3_macro"> 1578 <dc:call-macro name="basedata_3_macro">
1579 <dc:variable name="start_year" expr="dc:date-format('yyyy', $start_time)"/> 1579 <dc:variable name="start_year" expr="dc:date-format('yyyy', $start_time)" />
1580 <column name="{$wst_column_name}" ids="additionals-wstv-{$wst_column_position}-{$wst_id}" factory="staticwqkms" target_out="{$out}" info="{$info} [km {$deffrom} - {$defto}]" year="{dc:date-format('yyyy', $start_time)}"/> 1580 <column name="{$wst_column_name}" ids="additionals-wstv-{$wst_column_position}-{$wst_id}" factory="staticwqkms" target_out="{$out}" info="{$info} [km {$deffrom} - {$defto}]" year="{dc:date-format('yyyy', $start_time)}" />
1581 </dc:call-macro> 1581 </dc:call-macro>
1582 </dc:macro> 1582 </dc:macro>
1583 1583
1584 <dc:macro name="basedata_3_officials_wq"> 1584 <dc:macro name="basedata_3_officials_wq">
1585 <dc:call-macro name="basedata_3_macro"> 1585 <dc:call-macro name="basedata_3_macro">
1586 <column name="{$wst_column_name}" ids="officials_wq-wstv-{$wst_column_position}-{$wst_id}" factory="wqinterpol" target_out="{$out}" info="{$info} [km {$deffrom} - {$defto}]"/> 1586 <column name="{$wst_column_name}" ids="officials_wq-wstv-{$wst_column_position}-{$wst_id}" factory="wqinterpol" target_out="{$out}" info="{$info} [km {$deffrom} - {$defto}]" />
1587 </dc:call-macro> 1587 </dc:call-macro>
1588 </dc:macro> 1588 </dc:macro>
1589 1589
1590 <!-- flood marks --> 1590 <!-- flood marks -->
1591 <dc:macro name="basedata_4_macro"> 1591 <dc:macro name="basedata_4_macro">
1593 <dc:if test="dc:has-result()"> 1593 <dc:if test="dc:has-result()">
1594 <heightmarks> 1594 <heightmarks>
1595 <dc:group expr="dc:replace($wst_description, 'HW-Marken/', '')"> 1595 <dc:group expr="dc:replace($wst_description, 'HW-Marken/', '')">
1596 <heightmark name="{dc:group-key()}" description="{dc:group-key()}"> 1596 <heightmark name="{dc:group-key()}" description="{dc:group-key()}">
1597 <dc:for-each> 1597 <dc:for-each>
1598 <dc:macro-body/> 1598 <dc:macro-body />
1599 </dc:for-each> 1599 </dc:for-each>
1600 </heightmark> 1600 </heightmark>
1601 </dc:group> 1601 </dc:group>
1602 </heightmarks> 1602 </heightmarks>
1603 </dc:if> 1603 </dc:if>
1604 </dc:filter> 1604 </dc:filter>
1605 </dc:macro> 1605 </dc:macro>
1606 1606
1607 <dc:macro name="basedata_4_heightmarks-points"> 1607 <dc:macro name="basedata_4_heightmarks-points">
1608 <dc:call-macro name="basedata_4_macro"> 1608 <dc:call-macro name="basedata_4_macro">
1609 <column name="{$wst_column_name}" ids="heightmarks_points-wstv-{$wst_column_position}-{$wst_id}" factory="staticwkms" target_out="{$out}" info="{$info} [km {$deffrom} - {$defto}]"/> 1609 <column name="{$wst_column_name}" ids="heightmarks_points-wstv-{$wst_column_position}-{$wst_id}" factory="staticwkms" target_out="{$out}" info="{$info} [km {$deffrom} - {$defto}]" />
1610 </dc:call-macro> 1610 </dc:call-macro>
1611 </dc:macro> 1611 </dc:macro>
1612 1612
1613 <dc:macro name="basedata_4_heightmarks-points_wq"> 1613 <dc:macro name="basedata_4_heightmarks-points_wq">
1614 <dc:call-macro name="basedata_4_macro"> 1614 <dc:call-macro name="basedata_4_macro">
1615 <column name="{$wst_column_name}" ids="heightmarks_points-wstv-{$wst_column_position}-{$wst_id}" factory="wqinterpol" target_out="{$out}" info="{$info} [km {$deffrom} - {$defto}]"/> 1615 <column name="{$wst_column_name}" ids="heightmarks_points-wstv-{$wst_column_position}-{$wst_id}" factory="wqinterpol" target_out="{$out}" info="{$info} [km {$deffrom} - {$defto}]" />
1616 </dc:call-macro> 1616 </dc:call-macro>
1617 </dc:macro> 1617 </dc:macro>
1618 1618
1619 <dc:macro name="basedata_4_heightmarks-points-relative_points"> 1619 <dc:macro name="basedata_4_heightmarks-points-relative_points">
1620 <dc:call-macro name="basedata_4_macro"> 1620 <dc:call-macro name="basedata_4_macro">
1621 <column name="{$wst_column_name}" ids="heightmarks_points-wstv-{$wst_column_position}-{$wst_id}" factory="staticwkms" target_out="{$out}" info="{$info} [km {$deffrom} - {$defto}]"/> 1621 <column name="{$wst_column_name}" ids="heightmarks_points-wstv-{$wst_column_position}-{$wst_id}" factory="staticwkms" target_out="{$out}" info="{$info} [km {$deffrom} - {$defto}]" />
1622 </dc:call-macro> 1622 </dc:call-macro>
1623 </dc:macro> 1623 </dc:macro>
1624 1624
1625 <!-- flood protection structures --> 1625 <!-- flood protection structures -->
1626 <dc:macro name="basedata_5_macro"> 1626 <dc:macro name="basedata_5_macro">
1628 <dc:if test="dc:has-result()"> 1628 <dc:if test="dc:has-result()">
1629 <flood_protections> 1629 <flood_protections>
1630 <dc:group expr="dc:replace($wst_description, 'HW-Schutzanlagen/', '')"> 1630 <dc:group expr="dc:replace($wst_description, 'HW-Schutzanlagen/', '')">
1631 <flood_protection name="{dc:group-key()}" description="{dc:group-key()}"> 1631 <flood_protection name="{dc:group-key()}" description="{dc:group-key()}">
1632 <dc:for-each> 1632 <dc:for-each>
1633 <dc:macro-body/> 1633 <dc:macro-body />
1634 </dc:for-each> 1634 </dc:for-each>
1635 </flood_protection> 1635 </flood_protection>
1636 </dc:group> 1636 </dc:group>
1637 </flood_protections> 1637 </flood_protections>
1638 </dc:if> 1638 </dc:if>
1639 </dc:filter> 1639 </dc:filter>
1640 </dc:macro> 1640 </dc:macro>
1641 1641
1642 <dc:macro name="basedata_5_flood-protections"> 1642 <dc:macro name="basedata_5_flood-protections">
1643 <dc:call-macro name="basedata_5_macro"> 1643 <dc:call-macro name="basedata_5_macro">
1644 <column name="{$wst_column_name}" ids="flood_protection-wstv-{$wst_column_position}-{$wst_id}" factory="staticwkms" target_out="{$out}" info="{$info} [km {$deffrom} - {$defto}]"/> 1644 <column name="{$wst_column_name}" ids="flood_protection-wstv-{$wst_column_position}-{$wst_id}" factory="staticwkms" target_out="{$out}" info="{$info} [km {$deffrom} - {$defto}]" />
1645 </dc:call-macro> 1645 </dc:call-macro>
1646 </dc:macro> 1646 </dc:macro>
1647 1647
1648 <dc:macro name="basedata_5_flood-protections_wq"> 1648 <dc:macro name="basedata_5_flood-protections_wq">
1649 <dc:call-macro name="basedata_5_macro"> 1649 <dc:call-macro name="basedata_5_macro">
1650 <column name="{$wst_column_name}" ids="flood_protection-wstv-{$wst_column_position}-{$wst_id}" factory="wqinterpol" target_out="{$out}" info="{$info} [km {$deffrom} - {$defto}]"/> 1650 <column name="{$wst_column_name}" ids="flood_protection-wstv-{$wst_column_position}-{$wst_id}" factory="wqinterpol" target_out="{$out}" info="{$info} [km {$deffrom} - {$defto}]" />
1651 </dc:call-macro> 1651 </dc:call-macro>
1652 </dc:macro> 1652 </dc:macro>
1653 1653
1654 <dc:macro name="basedata_5_flood-protections_relative_points"> 1654 <dc:macro name="basedata_5_flood-protections_relative_points">
1655 <dc:call-macro name="basedata_5_macro"> 1655 <dc:call-macro name="basedata_5_macro">
1656 <column name="{$wst_column_name}" ids="flood_protection-wstv-{$wst_column_position}-{$wst_id}" factory="staticwkms" target_out="{$out}" info="{$info} [km {$deffrom} - {$defto}]"/> 1656 <column name="{$wst_column_name}" ids="flood_protection-wstv-{$wst_column_position}-{$wst_id}" factory="staticwkms" target_out="{$out}" info="{$info} [km {$deffrom} - {$defto}]" />
1657 </dc:call-macro> 1657 </dc:call-macro>
1658 </dc:macro> 1658 </dc:macro>
1659 1659
1660 <!-- waterlevel differences imported from CSV-files for M-INFO --> 1660 <!-- waterlevel differences imported from CSV-files for M-INFO -->
1661 <dc:macro name="basedata_6_delta_w"> 1661 <dc:macro name="basedata_6_delta_w">
1665 <delta_w_cm> 1665 <delta_w_cm>
1666 <dc:filter expr="contains($wst_description, 'cm.csv')"> 1666 <dc:filter expr="contains($wst_description, 'cm.csv')">
1667 <dc:group expr="dc:replace($wst_description, 'CSV/', '')"> 1667 <dc:group expr="dc:replace($wst_description, 'CSV/', '')">
1668 <relativepoint name="{dc:group-key()}" description="{dc:group-key()}"> 1668 <relativepoint name="{dc:group-key()}" description="{dc:group-key()}">
1669 <dc:for-each> 1669 <dc:for-each>
1670 <column name="{$wst_column_name}" ids="delta_w-wstv-{$wst_column_position}-{$wst_id}" factory="staticwkms" target_out="{$out}" info="{$info} [km {$deffrom} - {$defto}]"/> 1670 <column name="{$wst_column_name}" ids="delta_w-wstv-{$wst_column_position}-{$wst_id}" factory="staticwkms" target_out="{$out}" info="{$info} [km {$deffrom} - {$defto}]" />
1671 </dc:for-each> 1671 </dc:for-each>
1672 </relativepoint> 1672 </relativepoint>
1673 </dc:group> 1673 </dc:group>
1674 </dc:filter> 1674 </dc:filter>
1675 </delta_w_cm> 1675 </delta_w_cm>
1676 <delta_w_cma> 1676 <delta_w_cma>
1677 <dc:filter expr="contains($wst_description, 'cm-a.csv')"> 1677 <dc:filter expr="contains($wst_description, 'cm-a.csv')">
1678 <dc:group expr="dc:replace($wst_description, 'CSV/', '')"> 1678 <dc:group expr="dc:replace($wst_description, 'CSV/', '')">
1679 <relativepoint name="{dc:group-key()}" description="{dc:group-key()}"> 1679 <relativepoint name="{dc:group-key()}" description="{dc:group-key()}">
1680 <dc:for-each> 1680 <dc:for-each>
1681 <column name="{$wst_column_name}" ids="delta_w_cma-wstv-{$wst_column_position}-{$wst_id}" factory="staticwkms" target_out="{$out}" info="{$info} [km {$deffrom} - {$defto}]"/> 1681 <column name="{$wst_column_name}" ids="delta_w_cma-wstv-{$wst_column_position}-{$wst_id}" factory="staticwkms" target_out="{$out}" info="{$info} [km {$deffrom} - {$defto}]" />
1682 </dc:for-each> 1682 </dc:for-each>
1683 </relativepoint> 1683 </relativepoint>
1684 </dc:group> 1684 </dc:group>
1685 </dc:filter> 1685 </dc:filter>
1686 </delta_w_cma> 1686 </delta_w_cma>
1695 <dc:if test="dc:has-result()"> 1695 <dc:if test="dc:has-result()">
1696 <wlevel> 1696 <wlevel>
1697 <dc:group expr="dc:replace($wst_description, 'CSV/', '')"> 1697 <dc:group expr="dc:replace($wst_description, 'CSV/', '')">
1698 <relativepoint name="{dc:group-key()}" description="{dc:group-key()}"> 1698 <relativepoint name="{dc:group-key()}" description="{dc:group-key()}">
1699 <dc:for-each> 1699 <dc:for-each>
1700 <dc:macro-body/> 1700 <dc:macro-body />
1701 </dc:for-each> 1701 </dc:for-each>
1702 </relativepoint> 1702 </relativepoint>
1703 </dc:group> 1703 </dc:group>
1704 </wlevel> 1704 </wlevel>
1705 </dc:if> 1705 </dc:if>
1706 </dc:filter> 1706 </dc:filter>
1707 </dc:macro> 1707 </dc:macro>
1708 1708
1709 <dc:macro name="basedata_7_waterlevels"> 1709 <dc:macro name="basedata_7_waterlevels">
1710 <dc:call-macro name="basedata_7_macro"> 1710 <dc:call-macro name="basedata_7_macro">
1711 <dc:variable name="start_year" expr="dc:date-format('yyyy', $start_time)"/> 1711 <dc:variable name="start_year" expr="dc:date-format('yyyy', $start_time)" />
1712 <column name="{$wst_column_name}" ids="additionals-wstv-{$wst_column_position}-{$wst_id}" factory="staticwqkms" target_out="{$out}" info="{$info} [km {$deffrom} - {$defto}]" year="{dc:date-format('yyyy', $start_time)}"/> 1712 <column name="{$wst_column_name}" ids="additionals-wstv-{$wst_column_position}-{$wst_id}" factory="staticwqkms" target_out="{$out}" info="{$info} [km {$deffrom} - {$defto}]" year="{dc:date-format('yyyy', $start_time)}" />
1713 </dc:call-macro> 1713 </dc:call-macro>
1714 </dc:macro> 1714 </dc:macro>
1715 1715
1716 <dc:macro name="basedata_7_waterlevels_wq"> 1716 <dc:macro name="basedata_7_waterlevels_wq">
1717 <dc:call-macro name="basedata_7_macro"> 1717 <dc:call-macro name="basedata_7_macro">
1718 <column name="{$wst_column_name}" ids="additionals-wstv-{$wst_column_position}-{$wst_id}" factory="wqinterpol" target_out="{$out}" info="{$info} [km {$deffrom} - {$defto}]"/> 1718 <column name="{$wst_column_name}" ids="additionals-wstv-{$wst_column_position}-{$wst_id}" factory="wqinterpol" target_out="{$out}" info="{$info} [km {$deffrom} - {$defto}]" />
1719 </dc:call-macro> 1719 </dc:call-macro>
1720 </dc:macro> 1720 </dc:macro>
1721 1721
1722 1722
1723 <!-- prototypes --> 1723 <!-- prototypes -->
1724 1724
1725 <dc:macro name="discharge-curve-prototype"> 1725 <dc:macro name="discharge-curve-prototype">
1726 <computed_discharge_curve> 1726 <computed_discharge_curve>
1727 <dc:call-macro name="discharge_table_gauge"/> 1727 <dc:call-macro name="discharge_table_gauge" />
1728 <dc:call-macro name="mainvalues"/> 1728 <dc:call-macro name="mainvalues" />
1729 </computed_discharge_curve> 1729 </computed_discharge_curve>
1730 <dc:call-macro name="historical_discharge_curve"/> 1730 <dc:call-macro name="historical_discharge_curve" />
1731 <dc:call-macro name="basedata_0_wq"/> 1731 <dc:call-macro name="basedata_0_wq" />
1732 <dc:call-macro name="basedata_1_additionals_wq"/> 1732 <dc:call-macro name="basedata_1_additionals_wq" />
1733 <dc:call-macro name="basedata_2_fixations_wq"/> 1733 <dc:call-macro name="basedata_2_fixations_wq" />
1734 <dc:call-macro name="basedata_3_officials_wq"/> 1734 <dc:call-macro name="basedata_3_officials_wq" />
1735 <dc:call-macro name="basedata_4_heightmarks-points_wq"/> 1735 <dc:call-macro name="basedata_4_heightmarks-points_wq" />
1736 <dc:call-macro name="basedata_5_flood-protections_wq"/> 1736 <dc:call-macro name="basedata_5_flood-protections_wq" />
1737 <minfo module="minfo"> 1737 <minfo module="minfo">
1738 <dc:call-macro name="sqrelations"/> 1738 <dc:call-macro name="sqrelations" />
1739 <dc:call-macro name="basedata_7_waterlevels_wq"/> 1739 <dc:call-macro name="basedata_7_waterlevels_wq" />
1740 </minfo> 1740 </minfo>
1741 </dc:macro> 1741 </dc:macro>
1742 1742
1743 <dc:macro name="discharge-curve-user-prototype"> 1743 <dc:macro name="discharge-curve-user-prototype">
1744 <dc:call-macro name="waterlevels-user"/> 1744 <dc:call-macro name="waterlevels-user" />
1745 <dc:call-macro name="computed-discharge-curve"/> 1745 <dc:call-macro name="computed-discharge-curve" />
1746 <!-- TODO: macro for discharge longitudinal section --> 1746 <!-- TODO: macro for discharge longitudinal section -->
1747 <dc:call-macro name="fix-wq-curve"/> 1747 <dc:call-macro name="fix-wq-curve" />
1748 <!-- TODO: own macro for Vollmer-curve (extract from fix-wq-curve and waterlevels-user) --> 1748 <!-- TODO: own macro for Vollmer-curve (extract from fix-wq-curve and waterlevels-user) -->
1749 <dc:call-macro name="extreme-wq-curve"/> 1749 <dc:call-macro name="extreme-wq-curve" />
1750 <minfo module="minfo"> 1750 <minfo module="minfo">
1751 <dc:call-macro name="sqrelations_user"/> 1751 <dc:call-macro name="sqrelations_user" />
1752 </minfo> 1752 </minfo>
1753 </dc:macro> 1753 </dc:macro>
1754 1754
1755 <dc:macro name="longitudinal-section-prototype"> 1755 <dc:macro name="longitudinal-section-prototype">
1756 <dc:call-macro name="basedata_0"/> 1756 <dc:call-macro name="basedata_0" />
1757 <dc:call-macro name="basedata_1_additionals"/> 1757 <dc:call-macro name="basedata_1_additionals" />
1758 <dc:call-macro name="basedata_2_fixations"/> 1758 <dc:call-macro name="basedata_2_fixations" />
1759 <dc:call-macro name="basedata_3_officials"/> 1759 <dc:call-macro name="basedata_3_officials" />
1760 <dc:call-macro name="basedata_4_heightmarks-points"/> 1760 <dc:call-macro name="basedata_4_heightmarks-points" />
1761 <dc:call-macro name="basedata_5_flood-protections"/> 1761 <dc:call-macro name="basedata_5_flood-protections" />
1762 <dc:call-macro name="annotations_per_type"/> 1762 <dc:call-macro name="annotations_per_type" />
1763 <minfo module="minfo"> 1763 <minfo module="minfo">
1764 <fixanalysis> 1764 <fixanalysis>
1765 <dc:call-macro name="basedata_6_delta_w"/> 1765 <dc:call-macro name="basedata_6_delta_w" />
1766 <dc:call-macro name="basedata_7_waterlevels"/> 1766 <dc:call-macro name="basedata_7_waterlevels" />
1767 </fixanalysis> 1767 </fixanalysis>
1768 <dc:call-macro name="sedimentloads"/> 1768 <dc:call-macro name="sedimentloads" />
1769 <dc:call-macro name="densities"/> 1769 <dc:call-macro name="densities" />
1770 <dc:call-macro name="minfo-heights"/> 1770 <dc:call-macro name="minfo-heights" />
1771 <dc:call-macro name="sounding-width"/> 1771 <dc:call-macro name="sounding-width" />
1772 <dc:call-macro name="morph_width"/> 1772 <dc:call-macro name="morph_width" />
1773 <dc:call-macro name="porosities"/> 1773 <dc:call-macro name="porosities" />
1774 <flow_velocities> 1774 <flow_velocities>
1775 <dc:call-macro name="flow_velocity_measurements"/> 1775 <dc:call-macro name="flow_velocity_measurements" />
1776 <dc:call-macro name="flow_velocity_models"/> 1776 <dc:call-macro name="flow_velocity_models" />
1777 </flow_velocities> 1777 </flow_velocities>
1778 </minfo> 1778 </minfo>
1779 1779
1780 <sinfo module="sinfo"> 1780 <sinfo module="sinfo">
1781 <sinfo_predefined_flowdepths> 1781 <sinfo_predefined_flowdepths>
1782 <dc:call-macro name="sinfo_predefined_flowdepth-m"/> 1782 <dc:call-macro name="sinfo_predefined_flowdepth-m" />
1783 </sinfo_predefined_flowdepths> 1783 </sinfo_predefined_flowdepths>
1784 1784
1785 <sinfo_predefined_collision> 1785 <sinfo_predefined_collision>
1786 <dc:call-macro name="sinfo_predefined_collision"/> 1786 <dc:call-macro name="sinfo_predefined_collision" />
1787 </sinfo_predefined_collision> 1787 </sinfo_predefined_collision>
1788 1788
1789 <sinfo_predefined_channel> 1789 <sinfo_predefined_channel>
1790 <dc:call-macro name="sinfo_predefined_channel"/> 1790 <dc:call-macro name="sinfo_predefined_channel" />
1791 </sinfo_predefined_channel> 1791 </sinfo_predefined_channel>
1792 1792
1793 <sinfo_predefined_infrastructure> 1793 <sinfo_predefined_infrastructure>
1794 <dc:call-macro name="sinfo_predefined_infrastructure"/> 1794 <dc:call-macro name="sinfo_predefined_infrastructure" />
1795 </sinfo_predefined_infrastructure> 1795 </sinfo_predefined_infrastructure>
1796 1796
1797 <sinfo_predefined_tkh> 1797 <sinfo_predefined_tkh>
1798 <dc:call-macro name="sinfo_predefined_tkh-berechnung"/> 1798 <dc:call-macro name="sinfo_predefined_tkh-berechnung" />
1799 <dc:call-macro name="sinfo_predefined_tkh-messung"/> 1799 <dc:call-macro name="sinfo_predefined_tkh-messung" />
1800 </sinfo_predefined_tkh> 1800 </sinfo_predefined_tkh>
1801 1801
1802 <sinfo_predefined_depthevol> 1802 <sinfo_predefined_depthevol>
1803 <dc:call-macro name="sinfo_predefined_depthevol-aktuell"/> 1803 <dc:call-macro name="sinfo_predefined_depthevol-aktuell" />
1804 <dc:call-macro name="sinfo_predefined_depthevol-etappe"/> 1804 <dc:call-macro name="sinfo_predefined_depthevol-etappe" />
1805 </sinfo_predefined_depthevol> 1805 </sinfo_predefined_depthevol>
1806 1806
1807 </sinfo> 1807 </sinfo>
1808 1808
1809 </dc:macro> 1809 </dc:macro>
1810 1810
1811 <dc:macro name="longitudinal-section-user-prototype"> 1811 <dc:macro name="longitudinal-section-user-prototype">
1812 <dc:comment> SINFO </dc:comment> 1812 <dc:comment> SINFO </dc:comment>
1813 <dc:call-macro name="sinfo_flowdepths"/> 1813 <dc:call-macro name="sinfo_flowdepths" />
1814 <dc:call-macro name="sinfo_flowdepths_minmax"/> 1814 <dc:call-macro name="sinfo_flowdepths_minmax" />
1815 <dc:call-macro name="sinfo_flow_depth_development"/> 1815 <dc:call-macro name="sinfo_flow_depth_development" />
1816 <dc:call-macro name="sinfo_tkh"/> 1816 <dc:call-macro name="sinfo_tkh" />
1817 <dc:call-macro name="sinfo_collision"/> 1817 <dc:call-macro name="sinfo_collision" />
1818 <dc:call-macro name="sinfo_flood_duration"/> 1818 <dc:call-macro name="sinfo_flood_duration" />
1819 1819
1820 <dc:comment> WINFO/DIFF/FIX </dc:comment> 1820 <dc:comment> WINFO/DIFF/FIX </dc:comment>
1821 <dc:call-macro name="longitudinal"/> 1821 <dc:call-macro name="longitudinal" />
1822 <dc:call-macro name="differences"/> 1822 <dc:call-macro name="differences" />
1823 <dc:call-macro name="waterlevels-discharge"/> 1823 <dc:call-macro name="waterlevels-discharge" />
1824 <dc:call-macro name="longitudinal-section-fix"/> 1824 <dc:call-macro name="longitudinal-section-fix" />
1825 <dc:call-macro name="longitudinal-section-fix-vollmer"/> 1825 <dc:call-macro name="longitudinal-section-fix-vollmer" />
1826 1826
1827 <dc:comment> MINFO </dc:comment> 1827 <dc:comment> MINFO </dc:comment>
1828 <dc:call-macro name="middle_bedheights"/> 1828 <dc:call-macro name="middle_bedheights" />
1829 <dc:call-macro name="bedheight_differences"/> 1829 <dc:call-macro name="bedheight_differences" />
1830 <dc:call-macro name="bedquality"/> 1830 <dc:call-macro name="bedquality" />
1831 <dc:call-macro name="flow-velocity"/> 1831 <dc:call-macro name="flow-velocity" />
1832 <dc:call-macro name="sediment-load"/> 1832 <dc:call-macro name="sediment-load" />
1833 1833
1834 <dc:comment> UINFO </dc:comment> 1834 <dc:comment> UINFO </dc:comment>
1835 <dc:call-macro name="uinfo_salix_line"/> 1835 <dc:call-macro name="uinfo_salix_line" />
1836 1836
1837 <dc:comment> BUNDU </dc:comment> 1837 <dc:comment> BUNDU </dc:comment>
1838 <dc:call-macro name="bundu_bezugswst"/> 1838 <dc:call-macro name="bundu_bezugswst" />
1839 </dc:macro> 1839 </dc:macro>
1840 1840
1841 <!-- porosities --> 1841 <!-- porosities -->
1842 <dc:macro name="porosities"> 1842 <dc:macro name="porosities">
1843 <porosities> 1843 <porosities>
1862 ORDER BY depth_lower, depth_upper 1862 ORDER BY depth_lower, depth_upper
1863 </dc:statement> 1863 </dc:statement>
1864 <dc:if test="dc:has-result()"> 1864 <dc:if test="dc:has-result()">
1865 <dc:for-each> 1865 <dc:for-each>
1866 <porosity description="{$depth_lower}-{$depth_upper} cm" factory="porosity" target_out="{$out}" info="{concat($info, dc:date-format('yyyy', $syear), 1866 <porosity description="{$depth_lower}-{$depth_upper} cm" factory="porosity" target_out="{$out}" info="{concat($info, dc:date-format('yyyy', $syear),
1867 ' - ', dc:date-format('yyyy', $eyear))}" ids="{$pid};{$description}"/> 1867 ' - ', dc:date-format('yyyy', $eyear))}" ids="{$pid};{$description}" />
1868 </dc:for-each> 1868 </dc:for-each>
1869 </dc:if> 1869 </dc:if>
1870 </dc:context> 1870 </dc:context>
1871 </porosities> 1871 </porosities>
1872 </dc:macro> 1872 </dc:macro>
1889 ORDER BY 1889 ORDER BY
1890 year, depth_lower, depth_upper 1890 year, depth_lower, depth_upper
1891 </dc:statement> 1891 </dc:statement>
1892 <dc:if test="dc:has-result()"> 1892 <dc:if test="dc:has-result()">
1893 <dc:for-each> 1893 <dc:for-each>
1894 <density description="{$depth_lower}-{$depth_upper} cm" factory="sedimentdensity" target_out="{$out}" info="{$info}" ids="{$sdid}"/> 1894 <density description="{$depth_lower}-{$depth_upper} cm" factory="sedimentdensity" target_out="{$out}" info="{$info}" ids="{$sdid}" />
1895 </dc:for-each> 1895 </dc:for-each>
1896 </dc:if> 1896 </dc:if>
1897 </dc:context> 1897 </dc:context>
1898 </densities> 1898 </densities>
1899 </dc:macro> 1899 </dc:macro>
1900 1900
1901 <!-- sediment load --> 1901 <!-- sediment load -->
1902 <dc:macro name="load"> 1902 <dc:macro name="load">
1903 <year description="{$timespan}" factory="sedimentload" target_out="{$out}" info="{$info}" ids="{$slid};{$fraction};{$timespan};{$kind}"/> 1903 <year description="{$timespan}" factory="sedimentload" target_out="{$out}" info="{$info}" ids="{$slid};{$fraction};{$timespan};{$kind}" />
1904 </dc:macro> 1904 </dc:macro>
1905 1905
1906 <dc:macro name="load_ls"> 1906 <dc:macro name="load_ls">
1907 <year description="{$timespan}" factory="sedimentload_ls" target_out="{$out}" info="{$info}" ids="{$slid};{$timespan};{$kind}"/> 1907 <year description="{$timespan}" factory="sedimentload_ls" target_out="{$out}" info="{$info}" ids="{$slid};{$timespan};{$kind}" />
1908 </dc:macro> 1908 </dc:macro>
1909 1909
1910 <dc:macro name="loads"> 1910 <dc:macro name="loads">
1911 <dc:if test="dc:has-result()"> 1911 <dc:if test="dc:has-result()">
1912 <dc:group expr="concat('SQ ', dc:date-format('yyyy', $sqstart), '-', 1912 <dc:group expr="concat('SQ ', dc:date-format('yyyy', $sqstart), '-',
1913 dc:date-format('yyyy', $sqstop))"> 1913 dc:date-format('yyyy', $sqstop))">
1914 <sq_time description="{dc:group-key()}"> 1914 <sq_time description="{dc:group-key()}">
1915 <dc:group expr="$fraction"> 1915 <dc:group expr="$fraction">
1916 <dc:variable name="fraction_name" expr="concat('${', dc:group-key(), '}')"/> 1916 <dc:variable name="fraction_name" expr="concat('${', dc:group-key(), '}')" />
1917 <fraction description="{$fraction_name}"> 1917 <fraction description="{$fraction_name}">
1918 <dc:for-each> 1918 <dc:for-each>
1919 <dc:choose> 1919 <dc:choose>
1920 <dc:when test="string-length(dc:get('endyear')) = 0"> 1920 <dc:when test="string-length(dc:get('endyear')) = 0">
1921 <dc:variable name="timespan" type="string" expr="dc:date-format('yyyy', $startyear)"/> 1921 <dc:variable name="timespan" type="string" expr="dc:date-format('yyyy', $startyear)" />
1922 </dc:when> 1922 </dc:when>
1923 <dc:otherwise> 1923 <dc:otherwise>
1924 <dc:variable name="timespan" type="string" expr="concat(dc:date-format('yyyy', 1924 <dc:variable name="timespan" type="string" expr="concat(dc:date-format('yyyy',
1925 $startyear), '-', 1925 $startyear), '-',
1926 dc:date-format('yyyy', $endyear))"/> 1926 dc:date-format('yyyy', $endyear))" />
1927 </dc:otherwise> 1927 </dc:otherwise>
1928 </dc:choose> 1928 </dc:choose>
1929 <dc:if test="$kind = 'official'"> 1929 <dc:if test="$kind = 'official'">
1930 <dc:variable name="info" type="string" expr="concat('Amtliche Epoche&lt;BR&gt;', 1930 <dc:variable name="info" type="string" expr="concat('Amtliche Epoche&lt;BR&gt;',
1931 dc:get('info'))"/> 1931 dc:get('info'))" />
1932 </dc:if> 1932 </dc:if>
1933 <dc:macro-body/> 1933 <dc:macro-body />
1934 </dc:for-each> 1934 </dc:for-each>
1935 </fraction> 1935 </fraction>
1936 </dc:group> 1936 </dc:group>
1937 </sq_time> 1937 </sq_time>
1938 </dc:group> 1938 </dc:group>
1941 1941
1942 <dc:macro name="sedimentloads-filter"> 1942 <dc:macro name="sedimentloads-filter">
1943 <years> 1943 <years>
1944 <dc:filter expr="string-length(dc:get('endyear')) = 0 and 1944 <dc:filter expr="string-length(dc:get('endyear')) = 0 and
1945 $kind != 'official'"> 1945 $kind != 'official'">
1946 <dc:macro-body/> 1946 <dc:macro-body />
1947 </dc:filter> 1947 </dc:filter>
1948 </years> 1948 </years>
1949 <epochs> 1949 <epochs>
1950 <dc:filter expr="string-length(dc:get('endyear')) &gt; 0 and 1950 <dc:filter expr="string-length(dc:get('endyear')) &gt; 0 and
1951 $kind != 'official'"> 1951 $kind != 'official'">
1952 <dc:macro-body/> 1952 <dc:macro-body />
1953 </dc:filter> 1953 </dc:filter>
1954 </epochs> 1954 </epochs>
1955 <off_epochs> 1955 <off_epochs>
1956 <dc:filter expr="$kind = 'official'"> 1956 <dc:filter expr="$kind = 'official'">
1957 <dc:macro-body/> 1957 <dc:macro-body />
1958 </dc:filter> 1958 </dc:filter>
1959 </off_epochs> 1959 </off_epochs>
1960 </dc:macro> 1960 </dc:macro>
1961 1961
1962 <dc:macro name="sedimentloads"> 1962 <dc:macro name="sedimentloads">
1963 <sedimentloads> 1963 <sedimentloads>
1964 <dc:call-macro name="annotations_sediment_load_ls"/> 1964 <dc:call-macro name="annotations_sediment_load_ls" />
1965 <measurement_stations> 1965 <measurement_stations>
1966 <dc:context> 1966 <dc:context>
1967 <dc:call-macro name="sedimentload_stations_statement"/> 1967 <dc:call-macro name="sedimentload_stations_statement" />
1968 <dc:call-macro name="sedimentloads-filter"> 1968 <dc:call-macro name="sedimentloads-filter">
1969 <dc:call-macro name="loads"> 1969 <dc:call-macro name="loads">
1970 <dc:call-macro name="load"/> 1970 <dc:call-macro name="load" />
1971 </dc:call-macro> 1971 </dc:call-macro>
1972 </dc:call-macro> 1972 </dc:call-macro>
1973 </dc:context> 1973 </dc:context>
1974 </measurement_stations> 1974 </measurement_stations>
1975 <sediment_load_ls> 1975 <sediment_load_ls>
1976 <dc:context> 1976 <dc:context>
1977 <dc:call-macro name="sedimentload_ls_statement"/> 1977 <dc:call-macro name="sedimentload_ls_statement" />
1978 <dc:call-macro name="sedimentloads-filter"> 1978 <dc:call-macro name="sedimentloads-filter">
1979 <dc:call-macro name="loads"> 1979 <dc:call-macro name="loads">
1980 <dc:call-macro name="load_ls"/> 1980 <dc:call-macro name="load_ls" />
1981 </dc:call-macro> 1981 </dc:call-macro>
1982 </dc:call-macro> 1982 </dc:call-macro>
1983 </dc:context> 1983 </dc:context>
1984 </sediment_load_ls> 1984 </sediment_load_ls>
1985 </sedimentloads> 1985 </sedimentloads>
2052 </dc:statement> 2052 </dc:statement>
2053 </dc:macro> 2053 </dc:macro>
2054 2054
2055 <!-- annotations --> 2055 <!-- annotations -->
2056 <dc:macro name="annotations"> 2056 <dc:macro name="annotations">
2057 <annotation factory="annotations" ids="{$river_id}" target_out="{$out}"/> 2057 <annotation factory="annotations" ids="{$river_id}" target_out="{$out}" />
2058 </dc:macro> 2058 </dc:macro>
2059 2059
2060 <dc:macro name="annotations_per_type"> 2060 <dc:macro name="annotations_per_type">
2061 <annotations> 2061 <annotations>
2062 <dc:context> 2062 <dc:context>
2063 <all_annotations factory="annotations" ids="{$river_id}" target_out="{$out}"/> 2063 <all_annotations factory="annotations" ids="{$river_id}" target_out="{$out}" />
2064 <dc:statement> 2064 <dc:statement>
2065 SELECT id AS anno_id, 2065 SELECT id AS anno_id,
2066 name AS anno_description 2066 name AS anno_description
2067 FROM annotation_types 2067 FROM annotation_types
2068 </dc:statement> 2068 </dc:statement>
2069 <dc:for-each> 2069 <dc:for-each>
2070 <annotation name="{$anno_description}" factory="annotations" target_out="{$out}" ids="{$river_id}:{$anno_description}"/> 2070 <annotation name="{$anno_description}" factory="annotations" target_out="{$out}" ids="{$river_id}:{$anno_description}" />
2071 </dc:for-each> 2071 </dc:for-each>
2072 </dc:context> 2072 </dc:context>
2073 </annotations> 2073 </annotations>
2074 </dc:macro> 2074 </dc:macro>
2075 2075
2081 name AS anno_description 2081 name AS anno_description
2082 FROM annotation_types 2082 FROM annotation_types
2083 WHERE name LIKE 'Quelle %' OR name LIKE 'Senke %' 2083 WHERE name LIKE 'Quelle %' OR name LIKE 'Senke %'
2084 </dc:statement> 2084 </dc:statement>
2085 <dc:for-each> 2085 <dc:for-each>
2086 <annotation name="{$anno_description}" factory="annotations" target_out="{$out}" ids="{$river_id}:{$anno_description}"/> 2086 <annotation name="{$anno_description}" factory="annotations" target_out="{$out}" ids="{$river_id}:{$anno_description}" />
2087 </dc:for-each> 2087 </dc:for-each>
2088 </dc:context> 2088 </dc:context>
2089 </sources_sinks> 2089 </sources_sinks>
2090 </dc:macro> 2090 </dc:macro>
2091 2091
2092 <dc:macro name="qsectors"> 2092 <dc:macro name="qsectors">
2093 <qsector factory="qsectors" ids="{$river_id}" target_out="{$out}"/> 2093 <qsector factory="qsectors" ids="{$river_id}" target_out="{$out}" />
2094 </dc:macro> 2094 </dc:macro>
2095 2095
2096 <dc:macro name="flood-map-recommended"> 2096 <dc:macro name="flood-map-recommended">
2097 <kilometrage> 2097 <kilometrage>
2098 <riveraxis factory="riveraxis" ids="{$river_id}" target_out="{$out}"/> 2098 <riveraxis factory="riveraxis" ids="{$river_id}" target_out="{$out}" />
2099 </kilometrage> 2099 </kilometrage>
2100 <rastermap> 2100 <rastermap>
2101 <background factory="wmsbackground" ids="{$river_id}" target_out="{$out}"/> 2101 <background factory="wmsbackground" ids="{$river_id}" target_out="{$out}" />
2102 </rastermap> 2102 </rastermap>
2103 </dc:macro> 2103 </dc:macro>
2104 2104
2105 <!-- bed levels --> 2105 <!-- bed heights -->
2106 <dc:macro name="minfo-heights-diff"> 2106 <dc:macro name="minfo-heights-diff">
2107 <dc:context> 2107 <dc:context>
2108 <dc:statement> 2108 <dc:statement>
2109 WITH sta 2109 WITH sta
2110 AS (SELECT bhs.id, 2110 AS (SELECT bhs.id,
2135 FROM csta 2135 FROM csta
2136 ORDER BY b1desc, b2desc 2136 ORDER BY b1desc, b2desc
2137 </dc:statement> 2137 </dc:statement>
2138 <dc:if test="dc:has-result()"> 2138 <dc:if test="dc:has-result()">
2139 <bedheights> 2139 <bedheights>
2140 <dc:call-macro name="bed-heights-single-diff"/> 2140 <dc:call-macro name="bed-heights-single-diff" />
2141 <dc:call-macro name="bed-heights-epoch-diff"/> 2141 <dc:call-macro name="bed-heights-epoch-diff" />
2142 </bedheights> 2142 </bedheights>
2143 </dc:if> 2143 </dc:if>
2144 </dc:context> 2144 </dc:context>
2145 </dc:macro> 2145 </dc:macro>
2146 2146
2147 <dc:macro name="bed-heights-single-diff"> 2147 <dc:macro name="bed-heights-single-diff">
2148 <dc:filter expr="not(contains(dc:lowercase($b1desc), 'epoche'))"> 2148 <dc:filter expr="not(contains(dc:lowercase($b1desc), 'epoche'))">
2149 <years> 2149 <years>
2150 <dc:call-macro name="minfo-heights-diff-tree"/> 2150 <dc:call-macro name="minfo-heights-diff-tree" />
2151 </years> 2151 </years>
2152 </dc:filter> 2152 </dc:filter>
2153 </dc:macro> 2153 </dc:macro>
2154 2154
2155 <dc:macro name="bed-heights-epoch-diff"> 2155 <dc:macro name="bed-heights-epoch-diff">
2156 <dc:filter expr="contains(dc:lowercase($b1desc), 'epoche')"> 2156 <dc:filter expr="contains(dc:lowercase($b1desc), 'epoche')">
2157 <epochs> 2157 <epochs>
2158 <dc:call-macro name="minfo-heights-diff-tree"/> 2158 <dc:call-macro name="minfo-heights-diff-tree" />
2159 </epochs> 2159 </epochs>
2160 </dc:filter> 2160 </dc:filter>
2161 </dc:macro> 2161 </dc:macro>
2162 2162
2163 <dc:macro name="minfo-heights-diff-tree"> 2163 <dc:macro name="minfo-heights-diff-tree">
2164 <dc:group expr="dc:coalesce($b1year, 'sonstige')"> 2164 <dc:group expr="dc:coalesce($b1year, 'sonstige')">
2165 <minfo-diff name="{dc:group-key()}"> 2165 <minfo-diff name="{dc:group-key()}">
2166 <dc:for-each> 2166 <dc:for-each>
2167 <dc:choose> 2167 <dc:choose>
2168 <dc:when test="dc:group-key() = $b1year"> 2168 <dc:when test="dc:group-key() = $b1year">
2169 <height factory="bedheight" target_out="{$out}" ids="bedheight-single-{$b1id}-{$b1desc}#bedheight-single-{$b2id}-{$b2desc}" info="{$b1desc}#{$b2desc}" description="{$b1desc} - {$b2desc}"/> 2169 <height factory="bedheight" target_out="{$out}" ids="bedheight-single-{$b1id}-{$b1desc}#bedheight-single-{$b2id}-{$b2desc}" info="{$b1desc}#{$b2desc}" description="{$b1desc} - {$b2desc}" />
2170 </dc:when> 2170 </dc:when>
2171 <dc:when test="dc:group-key() = 'sonstige'"> 2171 <dc:when test="dc:group-key() = 'sonstige'">
2172 <height factory="bedheight" target_out="{$out}" ids="bedheight-single-{$b1id}-{$b1desc}#bedheight-single-{$b2id}-{$b2desc}" info="{$b1desc}#{$b2desc}" description="{$b1desc} - {$b2desc}"/> 2172 <height factory="bedheight" target_out="{$out}" ids="bedheight-single-{$b1id}-{$b1desc}#bedheight-single-{$b2id}-{$b2desc}" info="{$b1desc}#{$b2desc}" description="{$b1desc} - {$b2desc}" />
2173 <height factory="bedheight" target_out="{$out}" ids="bedheight-single-{$b2id}-{$b1desc}#bedheight-single-{$b1id}-{$b2desc}" info="{$b2desc}#{$b1desc}" description="{$b2desc} - {$b1desc}"/> 2173 <height factory="bedheight" target_out="{$out}" ids="bedheight-single-{$b2id}-{$b1desc}#bedheight-single-{$b1id}-{$b2desc}" info="{$b2desc}#{$b1desc}" description="{$b2desc} - {$b1desc}" />
2174 </dc:when> 2174 </dc:when>
2175 </dc:choose> 2175 </dc:choose>
2176 </dc:for-each> 2176 </dc:for-each>
2177 </minfo-diff> 2177 </minfo-diff>
2178 </dc:group> 2178 </dc:group>
2179 </dc:macro> 2179 </dc:macro>
2180 2180
2181 <dc:macro name="minfo-heights"> 2181 <dc:macro name="minfo-heights">
2182 <bedheights> 2182 <bedheights>
2183 <dc:call-macro name="bed-heights-single"/> 2183 <dc:call-macro name="bed-heights-single" />
2184 <dc:call-macro name="bed-heights-epoch"/> 2184 <dc:call-macro name="bed-heights-epoch" />
2185 </bedheights> 2185 </bedheights>
2186 </dc:macro> 2186 </dc:macro>
2187 2187
2188 <!-- Show all three MW, TL, and KL bedheights --> 2188 <!-- Show all three MW, TL, and KL bedheights -->
2189 <dc:macro name="bed-heights-factory_MW_TW_KL"> 2189 <dc:macro name="bed-heights-factory_MW_TW_KL">
2190 <dc:for-each> 2190 <dc:for-each>
2191 <dc:if test="$bedh_height_count > 0"> 2191 <dc:if test="$bedh_height_count > 0">
2192 <height factory="bedheight" target_out="{$out}" ids="bedheight-single-{$bedh_id}-{$bedh_year}-MW-{$bedh_descr}" info="{$info}" description="MW-{$bedh_descr}"/> 2192 <height factory="bedheight" target_out="{$out}" ids="bedheight-single-{$bedh_id}-{$bedh_year}-MW-{$bedh_descr}" info="{$info}" description="MW-{$bedh_descr}" />
2193 </dc:if> 2193 </dc:if>
2194 <dc:if test="$bedh_min_count > 0"> 2194 <dc:if test="$bedh_min_count > 0">
2195 <height factory="bedheight" target_out="{$out}" ids="bedheight-singleMin-{$bedh_id}-{$bedh_year}-TW-{$bedh_descr}" info="{$info}" description="TW-{$bedh_descr}"/> 2195 <height factory="bedheight" target_out="{$out}" ids="bedheight-singleMin-{$bedh_id}-{$bedh_year}-TW-{$bedh_descr}" info="{$info}" description="TW-{$bedh_descr}" />
2196 </dc:if> 2196 </dc:if>
2197 <dc:if test="$bedh_max_count > 0"> 2197 <dc:if test="$bedh_max_count > 0">
2198 <height factory="bedheight" target_out="{$out}" ids="bedheight-singleMax-{$bedh_id}-{$bedh_year}-KL-{$bedh_descr}" info="{$info}" description="KL-{$bedh_descr}"/> 2198 <height factory="bedheight" target_out="{$out}" ids="bedheight-singleMax-{$bedh_id}-{$bedh_year}-KL-{$bedh_descr}" info="{$info}" description="KL-{$bedh_descr}" />
2199 </dc:if> 2199 </dc:if>
2200 </dc:for-each> 2200 </dc:for-each>
2201 </dc:macro> 2201 </dc:macro>
2202 2202
2203 <!-- Show only MW bed level and name it in a neutral way --> 2203 <!-- Show only MW bed level and name it in a neutral way -->
2204 <dc:macro name="bed-heights-factory_MW"> 2204 <dc:macro name="bed-heights-factory_MW">
2205 <dc:for-each> 2205 <dc:for-each>
2206 <dc:if test="$bedh_height_count > 0"> 2206 <dc:if test="$bedh_height_count > 0">
2207 <!-- REMARK: addition 'yaer' attribute is used by intelligent datacage filter of SINFO --> 2207 <!-- REMARK: addition 'yaer' attribute is used by intelligent datacage filter of SINFO -->
2208 <height factory="bedheight" target_out="{$out}" ids="bedheight-single-{$bedh_id}-{$bedh_year}-{$bedh_descr}" info="{$info}" description="{$bedh_descr}" year="{$bedh_year}"/> 2208 <height factory="bedheight" target_out="{$out}" ids="bedheight-single-{$bedh_id}-{$bedh_year}-{$bedh_descr}" info="{$info}" description="{$bedh_descr}" year="{$bedh_year}" />
2209 </dc:if> 2209 </dc:if>
2210 </dc:for-each> 2210 </dc:for-each>
2211 </dc:macro> 2211 </dc:macro>
2212 2212
2213 <dc:macro name="bed-heights-single"> 2213 <dc:macro name="bed-heights-single">
2214 <single> 2214 <single>
2215 <dc:context> 2215 <dc:context>
2216 <dc:call-macro name="bed-heights-statement"/> 2216 <dc:call-macro name="bed-heights-statement" />
2217 <dc:if test="dc:has-result()"> 2217 <dc:if test="dc:has-result()">
2218 <dc:group expr="dc:coalesce($bedh_year, 'sonstige')"> 2218 <dc:group expr="dc:coalesce($bedh_year, 'sonstige')">
2219 <heights name="{dc:group-key()}" description="{dc:group-key()}"> 2219 <heights name="{dc:group-key()}" description="{dc:group-key()}">
2220 <dc:call-macro name="bed-heights-factory_MW_TW_KL"/> 2220 <dc:call-macro name="bed-heights-factory_MW_TW_KL" />
2221 </heights> 2221 </heights>
2222 </dc:group> 2222 </dc:group>
2223 </dc:if> 2223 </dc:if>
2224 </dc:context> 2224 </dc:context>
2225 </single> 2225 </single>
2227 2227
2228 <!-- Show bed levels that have MW values with a neutral name --> 2228 <!-- Show bed levels that have MW values with a neutral name -->
2229 <dc:macro name="bed-heights-single-MW"> 2229 <dc:macro name="bed-heights-single-MW">
2230 <single> 2230 <single>
2231 <dc:context> 2231 <dc:context>
2232 <dc:call-macro name="bed-heights-statement"/> 2232 <dc:call-macro name="bed-heights-statement" />
2233 <dc:filter expr="$bedh_height_count"> 2233 <dc:filter expr="$bedh_height_count">
2234 <dc:if test="dc:has-result()"> 2234 <dc:if test="dc:has-result()">
2235 <dc:group expr="dc:coalesce($bedh_year, 'sonstige')"> 2235 <dc:group expr="dc:coalesce($bedh_year, 'sonstige')">
2236 <heights name="{dc:group-key()}" description="{dc:group-key()}"> 2236 <heights name="{dc:group-key()}" description="{dc:group-key()}">
2237 <dc:call-macro name="bed-heights-factory_MW"/> 2237 <dc:call-macro name="bed-heights-factory_MW" />
2238 </heights> 2238 </heights>
2239 </dc:group> 2239 </dc:group>
2240 </dc:if> 2240 </dc:if>
2241 </dc:filter> 2241 </dc:filter>
2242 </dc:context> 2242 </dc:context>
2245 2245
2246 <!-- Show bed levels that have KL and TW values with a neutral name --> 2246 <!-- Show bed levels that have KL and TW values with a neutral name -->
2247 <dc:macro name="bed-heights-single-KL_TW"> 2247 <dc:macro name="bed-heights-single-KL_TW">
2248 <single> 2248 <single>
2249 <dc:context> 2249 <dc:context>
2250 <dc:call-macro name="bed-heights-statement"/> 2250 <dc:call-macro name="bed-heights-statement" />
2251 <dc:filter expr="$bedh_max_count > 0 and $bedh_min_count > 0"> 2251 <dc:filter expr="$bedh_max_count > 0 and $bedh_min_count > 0">
2252 <dc:if test="dc:has-result()"> 2252 <dc:if test="dc:has-result()">
2253 <dc:group expr="dc:coalesce($bedh_year, 'sonstige')"> 2253 <dc:group expr="dc:coalesce($bedh_year, 'sonstige')">
2254 <heights name="{dc:group-key()}" description="{dc:group-key()}"> 2254 <heights name="{dc:group-key()}" description="{dc:group-key()}">
2255 <dc:call-macro name="bed-heights-factory_MW"/> 2255 <dc:call-macro name="bed-heights-factory_MW" />
2256 </heights> 2256 </heights>
2257 </dc:group> 2257 </dc:group>
2258 </dc:if> 2258 </dc:if>
2259 </dc:filter> 2259 </dc:filter>
2260 </dc:context> 2260 </dc:context>
2262 </dc:macro> 2262 </dc:macro>
2263 2263
2264 <dc:macro name="bed-heights-epoch"> 2264 <dc:macro name="bed-heights-epoch">
2265 <epoch> 2265 <epoch>
2266 <dc:context> 2266 <dc:context>
2267 <dc:call-macro name="bed-heights-statement"/> 2267 <dc:call-macro name="bed-heights-statement" />
2268 <dc:filter expr="contains($bedh_descr, 'Epoche')"> 2268 <dc:filter expr="contains($bedh_descr, 'Epoche')">
2269 <dc:call-macro name="bed-heights-factory_MW_TW_KL"/> 2269 <dc:call-macro name="bed-heights-factory_MW_TW_KL" />
2270 </dc:filter> 2270 </dc:filter>
2271 </dc:context> 2271 </dc:context>
2272 </epoch> 2272 </epoch>
2273 </dc:macro> 2273 </dc:macro>
2274 2274
2275 <dc:macro name="sounding-width-factory"> 2275 <dc:macro name="sounding-width-factory">
2276 <dc:for-each> 2276 <dc:for-each>
2277 <height factory="bedheight" target_out="{$out}" ids="bedheight-soundings-{$bedh_id}-{$bedh_year}-{$bedh_descr}" info="{$info}" description="{$bedh_descr}"/> 2277 <height factory="bedheight" target_out="{$out}" ids="bedheight-soundings-{$bedh_id}-{$bedh_year}-{$bedh_descr}" info="{$info}" description="{$bedh_descr}" />
2278 </dc:for-each> 2278 </dc:for-each>
2279 </dc:macro> 2279 </dc:macro>
2280 2280
2281 <dc:macro name="sounding-width"> 2281 <dc:macro name="sounding-width">
2282 <dc:context> 2282 <dc:context>
2283 <dc:call-macro name="bed-heights-statement"/> 2283 <dc:call-macro name="bed-heights-statement" />
2284 <dc:if test="dc:has-result()"> 2284 <dc:if test="dc:has-result()">
2285 <soundings_width> 2285 <soundings_width>
2286 <dc:call-macro name="sounding-width-factory"/> 2286 <dc:call-macro name="sounding-width-factory" />
2287 </soundings_width> 2287 </soundings_width>
2288 </dc:if> 2288 </dc:if>
2289 </dc:context> 2289 </dc:context>
2290 </dc:macro> 2290 </dc:macro>
2291 2291
2292 <dc:macro name="sounding-width-recommendations"> 2292 <dc:macro name="sounding-width-recommendations">
2293 <dc:context> 2293 <dc:context>
2294 <dc:call-macro name="bed-heights-statement"/> 2294 <dc:call-macro name="bed-heights-statement" />
2295 <dc:filter expr="dc:contains($diffids, concat(';', $bedh_descr, ']'))"> 2295 <dc:filter expr="dc:contains($diffids, concat(';', $bedh_descr, ']'))">
2296 <dc:call-macro name="sounding-width-factory"/> 2296 <dc:call-macro name="sounding-width-factory" />
2297 </dc:filter> 2297 </dc:filter>
2298 </dc:context> 2298 </dc:context>
2299 </dc:macro> 2299 </dc:macro>
2300 2300
2301 <dc:macro name="bed-heights-statement"> 2301 <dc:macro name="bed-heights-statement">
2350 <dc:if test="dc:has-result()"> 2350 <dc:if test="dc:has-result()">
2351 <flowvelocitymodel> 2351 <flowvelocitymodel>
2352 <dc:for-each> 2352 <dc:for-each>
2353 <measurement_value name="{$fvmd}" description="{$fvmd}" ids="{$fvmid}" factory="flowvelocitymodel" info="{$lowerQ} - {$upperQ}&lt;BR&gt; 2353 <measurement_value name="{$fvmd}" description="{$fvmd}" ids="{$fvmid}" factory="flowvelocitymodel" info="{$lowerQ} - {$upperQ}&lt;BR&gt;
2354 Pegel {$gauge}&lt;BR&gt; 2354 Pegel {$gauge}&lt;BR&gt;
2355 Q = {$q} m3/s" target_out="{$out}"/> 2355 Q = {$q} m3/s" target_out="{$out}" />
2356 </dc:for-each> 2356 </dc:for-each>
2357 </flowvelocitymodel> 2357 </flowvelocitymodel>
2358 </dc:if> 2358 </dc:if>
2359 </dc:context> 2359 </dc:context>
2360 </dc:macro> 2360 </dc:macro>
2377 FROM flow_velocity_measure_values 2377 FROM flow_velocity_measure_values
2378 WHERE measurements_id = ${fvmid} 2378 WHERE measurements_id = ${fvmid}
2379 AND station BETWEEN ${fromkm} AND ${tokm} 2379 AND station BETWEEN ${fromkm} AND ${tokm}
2380 </dc:statement> 2380 </dc:statement>
2381 <dc:for-each> 2381 <dc:for-each>
2382 <measurement_value name="{$description} - {$station} - {$datetime}" description="{$description} - {$station} - {$datetime}" ids="{$id}" factory="flowvelocity" target_out="{$out}"/> 2382 <measurement_value name="{$description} - {$station} - {$datetime}" description="{$description} - {$station} - {$datetime}" ids="{$id}" factory="flowvelocity" target_out="{$out}" />
2383 </dc:for-each> 2383 </dc:for-each>
2384 </dc:context> 2384 </dc:context>
2385 </flow_velocity_measurement> 2385 </flow_velocity_measurement>
2386 </dc:for-each> 2386 </dc:for-each>
2387 </flowvelocitymeasurement> 2387 </flowvelocitymeasurement>
2405 max(station) AS to_station 2405 max(station) AS to_station
2406 FROM morphologic_width_values 2406 FROM morphologic_width_values
2407 WHERE morphologic_width_id = ${width_id} 2407 WHERE morphologic_width_id = ${width_id}
2408 </dc:statement> 2408 </dc:statement>
2409 <dc:for-each> 2409 <dc:for-each>
2410 <morphologic-width name="{$from_station} - {$to_station}" description="{$from_station} - {$to_station}" ids="{$width_id}" factory="morph-width" target_out="{$out}"/> 2410 <morphologic-width name="{$from_station} - {$to_station}" description="{$from_station} - {$to_station}" ids="{$width_id}" factory="morph-width" target_out="{$out}" />
2411 </dc:for-each> 2411 </dc:for-each>
2412 </dc:context> 2412 </dc:context>
2413 </dc:for-each> 2413 </dc:for-each>
2414 </morph_width> 2414 </morph_width>
2415 </dc:if> 2415 </dc:if>
2446 <station description="{dc:group-key()}"> 2446 <station description="{dc:group-key()}">
2447 <dc:for-each> 2447 <dc:for-each>
2448 <dc:variable name="combined_desc" expr="concat(dc:date-format('yyyy', 2448 <dc:variable name="combined_desc" expr="concat(dc:date-format('yyyy',
2449 $start_time), ' bis ', 2449 $start_time), ' bis ',
2450 dc:date-format('yyyy', 2450 dc:date-format('yyyy',
2451 $stop_time))"/> 2451 $stop_time))" />
2452 <sqvalue factory="sqrelationdatacage" target_out="{$out}" ids="{$sqvid};{dc:uppercase($parameter)} - {$station_name}: {$combined_desc}" description="{$combined_desc}"/> 2452 <sqvalue factory="sqrelationdatacage" target_out="{$out}" ids="{$sqvid};{dc:uppercase($parameter)} - {$station_name}: {$combined_desc}" description="{$combined_desc}" />
2453 </dc:for-each> 2453 </dc:for-each>
2454 </station> 2454 </station>
2455 </dc:group> 2455 </dc:group>
2456 </dc:group> 2456 </dc:group>
2457 </parameter> 2457 </parameter>
2461 </dc:context> 2461 </dc:context>
2462 </dc:macro> 2462 </dc:macro>
2463 2463
2464 <!-- Floodmap part --> 2464 <!-- Floodmap part -->
2465 <dc:macro name="flood-map-complete"> 2465 <dc:macro name="flood-map-complete">
2466 <dc:call-macro name="flood-map-buildings"/> 2466 <dc:call-macro name="flood-map-buildings" />
2467 <dc:call-macro name="flood-map-gaugelocations"/> 2467 <dc:call-macro name="flood-map-gaugelocations" />
2468 <dc:call-macro name="floodmarks"/> 2468 <dc:call-macro name="floodmarks" />
2469 <hws> 2469 <hws>
2470 <dc:call-macro name="hwslines"/> 2470 <dc:call-macro name="hwslines" />
2471 <dc:call-macro name="hwspoints"/> 2471 <dc:call-macro name="hwspoints" />
2472 </hws> 2472 </hws>
2473 <dc:call-macro name="flood-map-routing"/> 2473 <dc:call-macro name="flood-map-routing" />
2474 <hydrboundaries> 2474 <hydrboundaries>
2475 <dc:call-macro name="flood-map-floodplain"/> 2475 <dc:call-macro name="flood-map-floodplain" />
2476 <dc:call-macro name="flood-map-hydr-boundaries"/> 2476 <dc:call-macro name="flood-map-hydr-boundaries" />
2477 </hydrboundaries> 2477 </hydrboundaries>
2478 <dc:call-macro name="flood-map-uesk"/> 2478 <dc:call-macro name="flood-map-uesk" />
2479 </dc:macro> 2479 </dc:macro>
2480 2480
2481 <dc:macro name="flood-map-routing"> 2481 <dc:macro name="flood-map-routing">
2482 <route_data> 2482 <route_data>
2483 <dc:call-macro name="flood-map-qps"/> 2483 <dc:call-macro name="flood-map-qps" />
2484 <dc:call-macro name="flood-map-fixpoints"/> 2484 <dc:call-macro name="flood-map-fixpoints" />
2485 <dc:call-macro name="flood-map-km"/> 2485 <dc:call-macro name="flood-map-km" />
2486 <dc:call-macro name="flood-map-riveraxis"/> 2486 <dc:call-macro name="flood-map-riveraxis" />
2487 </route_data> 2487 </route_data>
2488 </dc:macro> 2488 </dc:macro>
2489 2489
2490 <dc:macro name="flood-map-hydr-boundaries"> 2490 <dc:macro name="flood-map-hydr-boundaries">
2491 <bfg_model> 2491 <bfg_model>
2492 <dc:call-macro name="flood-map-hydr-boundaries-poly"/> 2492 <dc:call-macro name="flood-map-hydr-boundaries-poly" />
2493 <dc:call-macro name="flood-map-hydr-boundaries-lines"/> 2493 <dc:call-macro name="flood-map-hydr-boundaries-lines" />
2494 </bfg_model> 2494 </bfg_model>
2495 <dc:call-macro name="flood-map-hydr-boundaries-state"/> 2495 <dc:call-macro name="flood-map-hydr-boundaries-state" />
2496 </dc:macro> 2496 </dc:macro>
2497 2497
2498 <dc:macro name="flood-map-dem"> 2498 <dc:macro name="flood-map-dem">
2499 <dems> 2499 <dems>
2500 <dc:context> 2500 <dc:context>
2516 = t.id 2516 = t.id
2517 WHERE d.river_id = ${river_id} 2517 WHERE d.river_id = ${river_id}
2518 AND NOT((${tokm} &lt; r.a) or (${fromkm} &gt; r.b)) 2518 AND NOT((${tokm} &lt; r.a) or (${fromkm} &gt; r.b))
2519 </dc:statement> 2519 </dc:statement>
2520 <dc:for-each> 2520 <dc:for-each>
2521 <dem factory="demfactory" target_out="{$out}" ids="{$dem_id}" name="{$name}" info="{$info}{dc:date-format('yyyy', $start_time)} - {dc:date-format('yyyy', $stop_time)}"/> 2521 <dem factory="demfactory" target_out="{$out}" ids="{$dem_id}" name="{$name}" info="{$info}{dc:date-format('yyyy', $start_time)} - {dc:date-format('yyyy', $stop_time)}" />
2522 </dc:for-each> 2522 </dc:for-each>
2523 </dc:context> 2523 </dc:context>
2524 </dems> 2524 </dems>
2525 </dc:macro> 2525 </dc:macro>
2526 2526
2527 <dc:macro name="filter_hws_ddg"> 2527 <dc:macro name="filter_hws_ddg">
2528 <dc:macro name="durchlass_damm_graben"> 2528 <dc:macro name="durchlass_damm_graben">
2529 <dc:macro name="ddg_factory"> 2529 <dc:macro name="ddg_factory">
2530 <dc:for-each> 2530 <dc:for-each>
2531 <hws factory="hwsfactory" name="{$hws_name}" target_out="{$out}"/> 2531 <hws factory="hwsfactory" name="{$hws_name}" target_out="{$out}" />
2532 </dc:for-each> 2532 </dc:for-each>
2533 </dc:macro> 2533 </dc:macro>
2534 2534
2535 <dc:filter expr="$hws_kind=1"> 2535 <dc:filter expr="$hws_kind=1">
2536 <dc:if test="dc:has-result()"> 2536 <dc:if test="dc:has-result()">
2537 <Durchlass> 2537 <Durchlass>
2538 <dc:call-macro name="ddg_factory"/> 2538 <dc:call-macro name="ddg_factory" />
2539 </Durchlass> 2539 </Durchlass>
2540 </dc:if> 2540 </dc:if>
2541 </dc:filter> 2541 </dc:filter>
2542 2542
2543 <dc:filter expr="$hws_kind=2"> 2543 <dc:filter expr="$hws_kind=2">
2544 <dc:if test="dc:has-result()"> 2544 <dc:if test="dc:has-result()">
2545 <Damm> 2545 <Damm>
2546 <dc:call-macro name="ddg_factory"/> 2546 <dc:call-macro name="ddg_factory" />
2547 </Damm> 2547 </Damm>
2548 </dc:if> 2548 </dc:if>
2549 </dc:filter> 2549 </dc:filter>
2550 2550
2551 <dc:filter expr="$hws_kind=3"> 2551 <dc:filter expr="$hws_kind=3">
2552 <dc:if test="dc:has-result()"> 2552 <dc:if test="dc:has-result()">
2553 <Graben> 2553 <Graben>
2554 <dc:call-macro name="ddg_factory"/> 2554 <dc:call-macro name="ddg_factory" />
2555 </Graben> 2555 </Graben>
2556 </dc:if> 2556 </dc:if>
2557 </dc:filter> 2557 </dc:filter>
2558 </dc:macro> 2558 </dc:macro>
2559 2559
2560 <dc:filter expr="$hws_official=1"> 2560 <dc:filter expr="$hws_official=1">
2561 <dc:if test="dc:has-result()"> 2561 <dc:if test="dc:has-result()">
2562 <official> 2562 <official>
2563 <dc:call-macro name="durchlass_damm_graben"/> 2563 <dc:call-macro name="durchlass_damm_graben" />
2564 </official> 2564 </official>
2565 </dc:if> 2565 </dc:if>
2566 </dc:filter> 2566 </dc:filter>
2567 2567
2568 <dc:filter expr="$hws_official=0"> 2568 <dc:filter expr="$hws_official=0">
2569 <dc:if test="dc:has-result()"> 2569 <dc:if test="dc:has-result()">
2570 <inofficial> 2570 <inofficial>
2571 <dc:call-macro name="durchlass_damm_graben"/> 2571 <dc:call-macro name="durchlass_damm_graben" />
2572 </inofficial> 2572 </inofficial>
2573 </dc:if> 2573 </dc:if>
2574 </dc:filter> 2574 </dc:filter>
2575 </dc:macro> 2575 </dc:macro>
2576 2576
2584 FROM hws_lines 2584 FROM hws_lines
2585 WHERE river_id = ${river_id} 2585 WHERE river_id = ${river_id}
2586 </dc:statement> 2586 </dc:statement>
2587 <dc:if test="dc:has-result()"> 2587 <dc:if test="dc:has-result()">
2588 <lines> 2588 <lines>
2589 <dc:call-macro name="filter_hws_ddg"/> 2589 <dc:call-macro name="filter_hws_ddg" />
2590 </lines> 2590 </lines>
2591 </dc:if> 2591 </dc:if>
2592 </dc:context> 2592 </dc:context>
2593 </dc:macro> 2593 </dc:macro>
2594 2594
2602 FROM hws_points 2602 FROM hws_points
2603 WHERE river_id = ${river_id} 2603 WHERE river_id = ${river_id}
2604 </dc:statement> 2604 </dc:statement>
2605 <dc:if test="dc:has-result()"> 2605 <dc:if test="dc:has-result()">
2606 <points> 2606 <points>
2607 <dc:call-macro name="filter_hws_ddg"/> 2607 <dc:call-macro name="filter_hws_ddg" />
2608 </points> 2608 </points>
2609 </dc:if> 2609 </dc:if>
2610 </dc:context> 2610 </dc:context>
2611 </dc:macro> 2611 </dc:macro>
2612 2612
2619 FROM hydr_boundaries 2619 FROM hydr_boundaries
2620 WHERE river_id = ${river_id} 2620 WHERE river_id = ${river_id}
2621 AND kind = 2 2621 AND kind = 2
2622 </dc:statement> 2622 </dc:statement>
2623 <dc:for-each> 2623 <dc:for-each>
2624 <line factory="wmshydrboundariesfactory" target_out="{$out}" ids="{$river_id};{$name};2" name="{$name}"/> 2624 <line factory="wmshydrboundariesfactory" target_out="{$out}" ids="{$river_id};{$name};2" name="{$name}" />
2625 </dc:for-each> 2625 </dc:for-each>
2626 </dc:context> 2626 </dc:context>
2627 <dc:context> 2627 <dc:context>
2628 <dc:statement> 2628 <dc:statement>
2629 SELECT DISTINCT 2629 SELECT DISTINCT
2631 FROM hydr_boundaries_poly 2631 FROM hydr_boundaries_poly
2632 WHERE river_id = ${river_id} 2632 WHERE river_id = ${river_id}
2633 AND kind = 2 2633 AND kind = 2
2634 </dc:statement> 2634 </dc:statement>
2635 <dc:for-each> 2635 <dc:for-each>
2636 <line factory="wmshydrboundariespolyfactory" target_out="{$out}" ids="{$river_id};{$name};2" name="{$name}"/> 2636 <line factory="wmshydrboundariespolyfactory" target_out="{$out}" ids="{$river_id};{$name};2" name="{$name}" />
2637 </dc:for-each> 2637 </dc:for-each>
2638 </dc:context> 2638 </dc:context>
2639 </federal> 2639 </federal>
2640 </dc:macro> 2640 </dc:macro>
2641 2641
2650 </dc:statement> 2650 </dc:statement>
2651 <dc:comment> What about all other line kinds?</dc:comment> 2651 <dc:comment> What about all other line kinds?</dc:comment>
2652 <dc:if test="dc:has-result()"> 2652 <dc:if test="dc:has-result()">
2653 <lines> 2653 <lines>
2654 <dc:for-each> 2654 <dc:for-each>
2655 <line factory="wmshydrboundariesfactory" target_out="{$out}" ids="{$river_id};{$name};1" name="{$name}"/> 2655 <line factory="wmshydrboundariesfactory" target_out="{$out}" ids="{$river_id};{$name};1" name="{$name}" />
2656 </dc:for-each> 2656 </dc:for-each>
2657 </lines> 2657 </lines>
2658 </dc:if> 2658 </dc:if>
2659 </dc:context> 2659 </dc:context>
2660 </dc:macro> 2660 </dc:macro>
2672 AND b.kind = 1 2672 AND b.kind = 1
2673 </dc:statement> 2673 </dc:statement>
2674 <dc:if test="dc:has-result()"> 2674 <dc:if test="dc:has-result()">
2675 <sobek_areas> 2675 <sobek_areas>
2676 <dc:for-each> 2676 <dc:for-each>
2677 <boundary name="{$sectie}" factory="wmshydrboundariespolyfactory" target_out="{$out}" ids="{$river_id};{$sectie};1;{$sectie_id};-1"/> 2677 <boundary name="{$sectie}" factory="wmshydrboundariespolyfactory" target_out="{$out}" ids="{$river_id};{$sectie};1;{$sectie_id};-1" />
2678 </dc:for-each> 2678 </dc:for-each>
2679 </sobek_areas> 2679 </sobek_areas>
2680 </dc:if> 2680 </dc:if>
2681 </dc:context> 2681 </dc:context>
2682 <dc:context> 2682 <dc:context>
2690 AND b.kind = 1 2690 AND b.kind = 1
2691 </dc:statement> 2691 </dc:statement>
2692 <dc:if test="dc:has-result()"> 2692 <dc:if test="dc:has-result()">
2693 <sobek_flooded> 2693 <sobek_flooded>
2694 <dc:for-each> 2694 <dc:for-each>
2695 <boundary name="{$sobek}" factory="wmshydrboundariespolyfactory" target_out="{$out}" ids="{$river_id};{$sobek};1;-1;{$sobek_id}"/> 2695 <boundary name="{$sobek}" factory="wmshydrboundariespolyfactory" target_out="{$out}" ids="{$river_id};{$sobek};1;-1;{$sobek_id}" />
2696 </dc:for-each> 2696 </dc:for-each>
2697 </sobek_flooded> 2697 </sobek_flooded>
2698 </dc:if> 2698 </dc:if>
2699 </dc:context> 2699 </dc:context>
2700 <dc:context> 2700 <dc:context>
2706 AND b.kind = 1 2706 AND b.kind = 1
2707 AND b.sobek IS NULL 2707 AND b.sobek IS NULL
2708 AND b.sectie is NULL 2708 AND b.sectie is NULL
2709 </dc:statement> 2709 </dc:statement>
2710 <dc:for-each> 2710 <dc:for-each>
2711 <boundary name="{$name}" factory="wmshydrboundariespolyfactory" target_out="{$out}" ids="{$river_id};{$name}"/> 2711 <boundary name="{$name}" factory="wmshydrboundariespolyfactory" target_out="{$out}" ids="{$river_id};{$name}" />
2712 </dc:for-each> 2712 </dc:for-each>
2713 </dc:context> 2713 </dc:context>
2714 </areas> 2714 </areas>
2715 </dc:macro> 2715 </dc:macro>
2716 2716
2736 WHERE river_id = ${river_id} AND kind = 111 2736 WHERE river_id = ${river_id} AND kind = 111
2737 </dc:statement> 2737 </dc:statement>
2738 <dc:if test="dc:has-result()"> 2738 <dc:if test="dc:has-result()">
2739 <bfg> 2739 <bfg>
2740 <dc:for-each> 2740 <dc:for-each>
2741 <floodmaps factory="wmsfloodmapsfactory" target_out="{$out}" ids="{$river_id};{$name}" name="{$name}"/> 2741 <floodmaps factory="wmsfloodmapsfactory" target_out="{$out}" ids="{$river_id};{$name}" name="{$name}" />
2742 </dc:for-each> 2742 </dc:for-each>
2743 </bfg> 2743 </bfg>
2744 </dc:if> 2744 </dc:if>
2745 </dc:context> 2745 </dc:context>
2746 <dc:context> 2746 <dc:context>
2750 WHERE river_id = ${river_id} AND kind = 112 2750 WHERE river_id = ${river_id} AND kind = 112
2751 </dc:statement> 2751 </dc:statement>
2752 <dc:if test="dc:has-result()"> 2752 <dc:if test="dc:has-result()">
2753 <federal> 2753 <federal>
2754 <dc:for-each> 2754 <dc:for-each>
2755 <floodmaps factory="wmsfloodmapsfactory" target_out="{$out}" ids="{$river_id};{$name}" name="{$name}"/> 2755 <floodmaps factory="wmsfloodmapsfactory" target_out="{$out}" ids="{$river_id};{$name}" name="{$name}" />
2756 </dc:for-each> 2756 </dc:for-each>
2757 </federal> 2757 </federal>
2758 </dc:if> 2758 </dc:if>
2759 </dc:context> 2759 </dc:context>
2760 </current> 2760 </current>
2774 WHERE river_id = ${river_id} AND kind = 121 2774 WHERE river_id = ${river_id} AND kind = 121
2775 </dc:statement> 2775 </dc:statement>
2776 <dc:if test="dc:has-result()"> 2776 <dc:if test="dc:has-result()">
2777 <bfg> 2777 <bfg>
2778 <dc:for-each> 2778 <dc:for-each>
2779 <floodmaps factory="wmsfloodmapsfactory" target_out="{$out}" ids="{$river_id};{$name}" name="{$name}"/> 2779 <floodmaps factory="wmsfloodmapsfactory" target_out="{$out}" ids="{$river_id};{$name}" name="{$name}" />
2780 </dc:for-each> 2780 </dc:for-each>
2781 </bfg> 2781 </bfg>
2782 </dc:if> 2782 </dc:if>
2783 </dc:context> 2783 </dc:context>
2784 <dc:context> 2784 <dc:context>
2789 WHERE river_id = ${river_id} AND kind = 122 2789 WHERE river_id = ${river_id} AND kind = 122
2790 </dc:statement> 2790 </dc:statement>
2791 <dc:if test="dc:has-result()"> 2791 <dc:if test="dc:has-result()">
2792 <federal> 2792 <federal>
2793 <dc:for-each> 2793 <dc:for-each>
2794 <floodmaps factory="wmsfloodmapsfactory" target_out="{$out}" ids="{$river_id};{$name}" name="{$name}"/> 2794 <floodmaps factory="wmsfloodmapsfactory" target_out="{$out}" ids="{$river_id};{$name}" name="{$name}" />
2795 </dc:for-each> 2795 </dc:for-each>
2796 </federal> 2796 </federal>
2797 </dc:if> 2797 </dc:if>
2798 </dc:context> 2798 </dc:context>
2799 </potential> 2799 </potential>
2818 FROM floodmaps 2818 FROM floodmaps
2819 WHERE river_id = ${river_id} AND kind = 200 AND source = 2819 WHERE river_id = ${river_id} AND kind = 200 AND source =
2820 ${source} 2820 ${source}
2821 </dc:statement> 2821 </dc:statement>
2822 <dc:for-each> 2822 <dc:for-each>
2823 <floodmaps factory="wmsfloodmapsfactory" target_out="{$out}" ids="{$river_id};{$name}" name="{$name}"/> 2823 <floodmaps factory="wmsfloodmapsfactory" target_out="{$out}" ids="{$river_id};{$name}" name="{$name}" />
2824 </dc:for-each> 2824 </dc:for-each>
2825 </dc:context> 2825 </dc:context>
2826 </year> 2826 </year>
2827 </dc:for-each> 2827 </dc:for-each>
2828 </measurements> 2828 </measurements>
2845 </dc:statement> 2845 </dc:statement>
2846 <dc:if test="dc:has-result()"> 2846 <dc:if test="dc:has-result()">
2847 <floodplain> 2847 <floodplain>
2848 <dc:filter expr="$kind_id=1"> 2848 <dc:filter expr="$kind_id=1">
2849 <dc:for-each> 2849 <dc:for-each>
2850 <floody factory="wmsfloodplainfactory" target_out="{$out}" description="{$kind_name}" ids="{$river_id};{$kind_name};{$kind_id}"/> 2850 <floody factory="wmsfloodplainfactory" target_out="{$out}" description="{$kind_name}" ids="{$river_id};{$kind_name};{$kind_id}" />
2851 </dc:for-each> 2851 </dc:for-each>
2852 </dc:filter> 2852 </dc:filter>
2853 <dc:filter expr="$kind_id != 1"> 2853 <dc:filter expr="$kind_id != 1">
2854 <dc:if test="dc:has-result()"> 2854 <dc:if test="dc:has-result()">
2855 <other> 2855 <other>
2856 <dc:for-each> 2856 <dc:for-each>
2857 <floody factory="wmsfloodplainfactory" target_out="{$out}" description="{$layer_name}" ids="{$river_id};{$layer_name};{$kind_id}"/> 2857 <floody factory="wmsfloodplainfactory" target_out="{$out}" description="{$layer_name}" ids="{$river_id};{$layer_name};{$kind_id}" />
2858 </dc:for-each> 2858 </dc:for-each>
2859 </other> 2859 </other>
2860 </dc:if> 2860 </dc:if>
2861 </dc:filter> 2861 </dc:filter>
2862 </floodplain> 2862 </floodplain>
2870 availble 2870 availble
2871 </dc:comment> 2871 </dc:comment>
2872 2872
2873 <dc:macro name="hwspoints_by_kind_factory"> 2873 <dc:macro name="hwspoints_by_kind_factory">
2874 <dc:for-each> 2874 <dc:for-each>
2875 <hws factory="wmshwspointsfactory" target_out="{$out}" ids="{$river_id};{$hws_name}" name="{$hws_name}"/> 2875 <hws factory="wmshwspointsfactory" target_out="{$out}" ids="{$river_id};{$hws_name}" name="{$hws_name}" />
2876 </dc:for-each> 2876 </dc:for-each>
2877 </dc:macro> 2877 </dc:macro>
2878 2878
2879 <dc:filter expr="$hws_kind=1"> 2879 <dc:filter expr="$hws_kind=1">
2880 <dc:if test="dc:has-result()"> 2880 <dc:if test="dc:has-result()">
2881 <Durchlass> 2881 <Durchlass>
2882 <dc:call-macro name="hwspoints_by_kind_factory"/> 2882 <dc:call-macro name="hwspoints_by_kind_factory" />
2883 </Durchlass> 2883 </Durchlass>
2884 </dc:if> 2884 </dc:if>
2885 </dc:filter> 2885 </dc:filter>
2886 2886
2887 <dc:filter expr="$hws_kind=2"> 2887 <dc:filter expr="$hws_kind=2">
2888 <dc:if test="dc:has-result()"> 2888 <dc:if test="dc:has-result()">
2889 <Damm> 2889 <Damm>
2890 <dc:call-macro name="hwspoints_by_kind_factory"/> 2890 <dc:call-macro name="hwspoints_by_kind_factory" />
2891 </Damm> 2891 </Damm>
2892 </dc:if> 2892 </dc:if>
2893 </dc:filter> 2893 </dc:filter>
2894 2894
2895 <dc:filter expr="$hws_kind=3"> 2895 <dc:filter expr="$hws_kind=3">
2896 <dc:if test="dc:has-result()"> 2896 <dc:if test="dc:has-result()">
2897 <Graben> 2897 <Graben>
2898 <dc:call-macro name="hwspoints_by_kind_factory"/> 2898 <dc:call-macro name="hwspoints_by_kind_factory" />
2899 </Graben> 2899 </Graben>
2900 </dc:if> 2900 </dc:if>
2901 </dc:filter> 2901 </dc:filter>
2902 </dc:macro> 2902 </dc:macro>
2903 2903
2924 WHERE river_id = ${river_id} 2924 WHERE river_id = ${river_id}
2925 AND official=1 2925 AND official=1
2926 AND fed_state_id = ${fed_id} ORDER BY name 2926 AND fed_state_id = ${fed_id} ORDER BY name
2927 </dc:statement> 2927 </dc:statement>
2928 <fedstate description="{$fed_name}"> 2928 <fedstate description="{$fed_name}">
2929 <dc:call-macro name="hwspoints_by_kind"/> 2929 <dc:call-macro name="hwspoints_by_kind" />
2930 </fedstate> 2930 </fedstate>
2931 </dc:context> 2931 </dc:context>
2932 </dc:for-each> 2932 </dc:for-each>
2933 </dc:context> 2933 </dc:context>
2934 <dc:context> 2934 <dc:context>
2941 AND official=1 2941 AND official=1
2942 AND fed_state_id IS NULL 2942 AND fed_state_id IS NULL
2943 ORDER BY name 2943 ORDER BY name
2944 </dc:statement> 2944 </dc:statement>
2945 <hws_fed_unknown> 2945 <hws_fed_unknown>
2946 <dc:call-macro name="hwspoints_by_kind"/> 2946 <dc:call-macro name="hwspoints_by_kind" />
2947 </hws_fed_unknown> 2947 </hws_fed_unknown>
2948 </dc:context> 2948 </dc:context>
2949 </official> 2949 </official>
2950 <inofficial> 2950 <inofficial>
2951 <dc:context> 2951 <dc:context>
2968 WHERE river_id = ${river_id} 2968 WHERE river_id = ${river_id}
2969 AND official=0 2969 AND official=0
2970 AND fed_state_id = ${fed_id} ORDER BY name 2970 AND fed_state_id = ${fed_id} ORDER BY name
2971 </dc:statement> 2971 </dc:statement>
2972 <fedstate description="{$fed_name}"> 2972 <fedstate description="{$fed_name}">
2973 <dc:call-macro name="hwspoints_by_kind"/> 2973 <dc:call-macro name="hwspoints_by_kind" />
2974 </fedstate> 2974 </fedstate>
2975 </dc:context> 2975 </dc:context>
2976 </dc:for-each> 2976 </dc:for-each>
2977 </dc:context> 2977 </dc:context>
2978 <dc:context> 2978 <dc:context>
2984 WHERE river_id = ${river_id} 2984 WHERE river_id = ${river_id}
2985 AND official=0 2985 AND official=0
2986 AND fed_state_id IS NULL ORDER BY name 2986 AND fed_state_id IS NULL ORDER BY name
2987 </dc:statement> 2987 </dc:statement>
2988 <hws_fed_unknown> 2988 <hws_fed_unknown>
2989 <dc:call-macro name="hwspoints_by_kind"/> 2989 <dc:call-macro name="hwspoints_by_kind" />
2990 </hws_fed_unknown> 2990 </hws_fed_unknown>
2991 </dc:context> 2991 </dc:context>
2992 </inofficial> 2992 </inofficial>
2993 </hws_points> 2993 </hws_points>
2994 </dc:macro> 2994 </dc:macro>
2999 availble 2999 availble
3000 </dc:comment> 3000 </dc:comment>
3001 3001
3002 <dc:macro name="hwslines_by_kind_factory"> 3002 <dc:macro name="hwslines_by_kind_factory">
3003 <dc:for-each> 3003 <dc:for-each>
3004 <hws factory="wmshwslinesfactory" target_out="{$out}" ids="{$river_id};{$hws_name}" name="{$hws_name}"/> 3004 <hws factory="wmshwslinesfactory" target_out="{$out}" ids="{$river_id};{$hws_name}" name="{$hws_name}" />
3005 </dc:for-each> 3005 </dc:for-each>
3006 </dc:macro> 3006 </dc:macro>
3007 3007
3008 <dc:filter expr="$hws_kind=1"> 3008 <dc:filter expr="$hws_kind=1">
3009 <dc:if test="dc:has-result()"> 3009 <dc:if test="dc:has-result()">
3010 <Durchlass> 3010 <Durchlass>
3011 <dc:call-macro name="hwslines_by_kind_factory"/> 3011 <dc:call-macro name="hwslines_by_kind_factory" />
3012 </Durchlass> 3012 </Durchlass>
3013 </dc:if> 3013 </dc:if>
3014 </dc:filter> 3014 </dc:filter>
3015 3015
3016 <dc:filter expr="$hws_kind=2"> 3016 <dc:filter expr="$hws_kind=2">
3017 <dc:if test="dc:has-result()"> 3017 <dc:if test="dc:has-result()">
3018 <Damm> 3018 <Damm>
3019 <dc:call-macro name="hwslines_by_kind_factory"/> 3019 <dc:call-macro name="hwslines_by_kind_factory" />
3020 </Damm> 3020 </Damm>
3021 </dc:if> 3021 </dc:if>
3022 </dc:filter> 3022 </dc:filter>
3023 3023
3024 <dc:filter expr="$hws_kind=3"> 3024 <dc:filter expr="$hws_kind=3">
3025 <dc:if test="dc:has-result()"> 3025 <dc:if test="dc:has-result()">
3026 <Graben> 3026 <Graben>
3027 <dc:call-macro name="hwslines_by_kind_factory"/> 3027 <dc:call-macro name="hwslines_by_kind_factory" />
3028 </Graben> 3028 </Graben>
3029 </dc:if> 3029 </dc:if>
3030 </dc:filter> 3030 </dc:filter>
3031 </dc:macro> 3031 </dc:macro>
3032 3032
3053 WHERE river_id = ${river_id} 3053 WHERE river_id = ${river_id}
3054 AND official=1 3054 AND official=1
3055 AND fed_state_id = ${fed_id} ORDER BY name 3055 AND fed_state_id = ${fed_id} ORDER BY name
3056 </dc:statement> 3056 </dc:statement>
3057 <fedstate description="{$fed_name}"> 3057 <fedstate description="{$fed_name}">
3058 <dc:call-macro name="hwslines_by_kind"/> 3058 <dc:call-macro name="hwslines_by_kind" />
3059 </fedstate> 3059 </fedstate>
3060 </dc:context> 3060 </dc:context>
3061 </dc:for-each> 3061 </dc:for-each>
3062 </dc:context> 3062 </dc:context>
3063 <dc:context> 3063 <dc:context>
3070 AND official=1 3070 AND official=1
3071 AND fed_state_id IS NULL 3071 AND fed_state_id IS NULL
3072 ORDER BY name 3072 ORDER BY name
3073 </dc:statement> 3073 </dc:statement>
3074 <hws_fed_unknown> 3074 <hws_fed_unknown>
3075 <dc:call-macro name="hwslines_by_kind"/> 3075 <dc:call-macro name="hwslines_by_kind" />
3076 </hws_fed_unknown> 3076 </hws_fed_unknown>
3077 </dc:context> 3077 </dc:context>
3078 </official> 3078 </official>
3079 <inofficial> 3079 <inofficial>
3080 <dc:context> 3080 <dc:context>
3097 WHERE river_id = ${river_id} 3097 WHERE river_id = ${river_id}
3098 AND official=0 3098 AND official=0
3099 AND fed_state_id = ${fed_id} ORDER BY name 3099 AND fed_state_id = ${fed_id} ORDER BY name
3100 </dc:statement> 3100 </dc:statement>
3101 <fedstate description="{$fed_name}"> 3101 <fedstate description="{$fed_name}">
3102 <dc:call-macro name="hwslines_by_kind"/> 3102 <dc:call-macro name="hwslines_by_kind" />
3103 </fedstate> 3103 </fedstate>
3104 </dc:context> 3104 </dc:context>
3105 </dc:for-each> 3105 </dc:for-each>
3106 </dc:context> 3106 </dc:context>
3107 <dc:context> 3107 <dc:context>
3113 WHERE river_id = ${river_id} 3113 WHERE river_id = ${river_id}
3114 AND official=0 3114 AND official=0
3115 AND fed_state_id IS NULL ORDER BY name 3115 AND fed_state_id IS NULL ORDER BY name
3116 </dc:statement> 3116 </dc:statement>
3117 <hws_fed_unknown> 3117 <hws_fed_unknown>
3118 <dc:call-macro name="hwslines_by_kind"/> 3118 <dc:call-macro name="hwslines_by_kind" />
3119 </hws_fed_unknown> 3119 </hws_fed_unknown>
3120 </dc:context> 3120 </dc:context>
3121 </inofficial> 3121 </inofficial>
3122 </hws_lines> 3122 </hws_lines>
3123 </dc:macro> 3123 </dc:macro>
3131 WHERE river_id = ${river_id} 3131 WHERE river_id = ${river_id}
3132 </dc:statement> 3132 </dc:statement>
3133 <dc:if test="dc:has-result()"> 3133 <dc:if test="dc:has-result()">
3134 <floodmarks> 3134 <floodmarks>
3135 <dc:for-each> 3135 <dc:for-each>
3136 <floodmark name="{$year}" factory="wmsfloodmarkfactory" target_out="{$out}" ids="{$river_id};{$year};{$year}"/> 3136 <floodmark name="{$year}" factory="wmsfloodmarkfactory" target_out="{$out}" ids="{$river_id};{$year};{$year}" />
3137 </dc:for-each> 3137 </dc:for-each>
3138 </floodmarks> 3138 </floodmarks>
3139 </dc:if> 3139 </dc:if>
3140 </dc:context> 3140 </dc:context>
3141 </dc:macro> 3141 </dc:macro>
3142 3142
3143 <dc:macro name="flood-map-gaugelocations"> 3143 <dc:macro name="flood-map-gaugelocations">
3144 <gaugelocations> 3144 <gaugelocations>
3145 <gauge_points factory="externalwmsfactory" ids="http://www.pegelonline.wsv.de/webservices/gis/wms;Pegelpunkte;Pegelpunkte (WSV)" target_out="{$out}"/> 3145 <gauge_points factory="externalwmsfactory" ids="http://www.pegelonline.wsv.de/webservices/gis/wms;Pegelpunkte;Pegelpunkte (WSV)" target_out="{$out}" />
3146 <gauge_names factory="externalwmsfactory" ids="http://www.pegelonline.wsv.de/webservices/gis/wms;Pegelnamen;Pegelnamen (WSV)" target_out="{$out}"/> 3146 <gauge_names factory="externalwmsfactory" ids="http://www.pegelonline.wsv.de/webservices/gis/wms;Pegelnamen;Pegelnamen (WSV)" target_out="{$out}" />
3147 <gauge_level factory="externalwmsfactory" ids="http://www.pegelonline.wsv.de/webservices/gis/wms;Pegelwasserstand;Aktueller Wasserstand (WSV)" target_out="{$out}"/> 3147 <gauge_level factory="externalwmsfactory" ids="http://www.pegelonline.wsv.de/webservices/gis/wms;Pegelwasserstand;Aktueller Wasserstand (WSV)" target_out="{$out}" />
3148 <gauge_tendency factory="externalwmsfactory" ids="http://www.pegelonline.wsv.de/webservices/gis/wms;TendenzWasserstand;Tendenz des Wasserstands (WSV)" target_out="{$out}"/> 3148 <gauge_tendency factory="externalwmsfactory" ids="http://www.pegelonline.wsv.de/webservices/gis/wms;TendenzWasserstand;Tendenz des Wasserstands (WSV)" target_out="{$out}" />
3149 </gaugelocations> 3149 </gaugelocations>
3150 </dc:macro> 3150 </dc:macro>
3151 3151
3152 <dc:macro name="flood-map-riveraxis"> 3152 <dc:macro name="flood-map-riveraxis">
3153 <dc:context> 3153 <dc:context>
3162 </dc:statement> 3162 </dc:statement>
3163 <dc:if test="dc:has-result()"> 3163 <dc:if test="dc:has-result()">
3164 <axis> 3164 <axis>
3165 <dc:filter expr="$kind_id=1"> 3165 <dc:filter expr="$kind_id=1">
3166 <dc:for-each> 3166 <dc:for-each>
3167 <actual description="{$kind_name}" ids="{$river_id};{$kind_name};{$kind_id}" factory="riveraxis" target_out="{$out}"/> 3167 <actual description="{$kind_name}" ids="{$river_id};{$kind_name};{$kind_id}" factory="riveraxis" target_out="{$out}" />
3168 </dc:for-each> 3168 </dc:for-each>
3169 </dc:filter> 3169 </dc:filter>
3170 <dc:filter expr="$kind_id!=1"> 3170 <dc:filter expr="$kind_id!=1">
3171 <other> 3171 <other>
3172 <dc:for-each> 3172 <dc:for-each>
3173 <misc-axis description="{$layer_name}" ids="{$river_id};{$layer_name};{$kind_id}" factory="riveraxis" target_out="{$out}"/> 3173 <misc-axis description="{$layer_name}" ids="{$river_id};{$layer_name};{$kind_id}" factory="riveraxis" target_out="{$out}" />
3174 </dc:for-each> 3174 </dc:for-each>
3175 </other> 3175 </other>
3176 </dc:filter> 3176 </dc:filter>
3177 </axis> 3177 </axis>
3178 </dc:if> 3178 </dc:if>
3183 <dc:context> 3183 <dc:context>
3184 <dc:statement> 3184 <dc:statement>
3185 SELECT DISTINCT 1 FROM river_axes_km WHERE river_id = ${river_id} 3185 SELECT DISTINCT 1 FROM river_axes_km WHERE river_id = ${river_id}
3186 </dc:statement> 3186 </dc:statement>
3187 <dc:for-each> 3187 <dc:for-each>
3188 <kilometrage factory="wmskmfactory" ids="{$river_id}" target_out="{$out}"/> 3188 <kilometrage factory="wmskmfactory" ids="{$river_id}" target_out="{$out}" />
3189 </dc:for-each> 3189 </dc:for-each>
3190 </dc:context> 3190 </dc:context>
3191 </dc:macro> 3191 </dc:macro>
3192 3192
3193 <dc:macro name="flood-map-fixpoints"> 3193 <dc:macro name="flood-map-fixpoints">
3197 FROM fixpoints 3197 FROM fixpoints
3198 WHERE river_id = ${river_id} 3198 WHERE river_id = ${river_id}
3199 GROUP BY name 3199 GROUP BY name
3200 </dc:statement> 3200 </dc:statement>
3201 <dc:for-each> 3201 <dc:for-each>
3202 <fixpoints factory="wmsfixpointsfactory" target_out="{$out}" ids="{$river_id};{$name}"/> 3202 <fixpoints factory="wmsfixpointsfactory" target_out="{$out}" ids="{$river_id};{$name}" />
3203 </dc:for-each> 3203 </dc:for-each>
3204 </dc:context> 3204 </dc:context>
3205 </dc:macro> 3205 </dc:macro>
3206 3206
3207 <dc:macro name="flood-map-qps"> 3207 <dc:macro name="flood-map-qps">
3217 </dc:statement> 3217 </dc:statement>
3218 <dc:if test="dc:has-result()"> 3218 <dc:if test="dc:has-result()">
3219 <qps> 3219 <qps>
3220 <dc:filter expr="$kind_id=1"> 3220 <dc:filter expr="$kind_id=1">
3221 <dc:for-each> 3221 <dc:for-each>
3222 <actual description="{$kind_name}" factory="wmsqpsfactory" target_out="{$out}" ids="{$river_id};{$kind_name};{$kind_id}"/> 3222 <actual description="{$kind_name}" factory="wmsqpsfactory" target_out="{$out}" ids="{$river_id};{$kind_name};{$kind_id}" />
3223 </dc:for-each> 3223 </dc:for-each>
3224 </dc:filter> 3224 </dc:filter>
3225 <dc:filter expr="$kind_id = 0"> 3225 <dc:filter expr="$kind_id = 0">
3226 <dc:if test="dc:has-result()"> 3226 <dc:if test="dc:has-result()">
3227 <other> 3227 <other>
3228 <dc:for-each> 3228 <dc:for-each>
3229 <misc-qps description="{$layer_name}" factory="wmsqpsfactory" target_out="{$out}" ids="{$river_id};{$layer_name};{$kind_id}"/> 3229 <misc-qps description="{$layer_name}" factory="wmsqpsfactory" target_out="{$out}" ids="{$river_id};{$layer_name};{$kind_id}" />
3230 </dc:for-each> 3230 </dc:for-each>
3231 </other> 3231 </other>
3232 </dc:if> 3232 </dc:if>
3233 </dc:filter> 3233 </dc:filter>
3234 </qps> 3234 </qps>
3249 WHERE river_id = ${river_id} 3249 WHERE river_id = ${river_id}
3250 </dc:statement> 3250 </dc:statement>
3251 <dc:if test="dc:has-result()"> 3251 <dc:if test="dc:has-result()">
3252 <dc:filter expr="$building_kind_id!=0"> 3252 <dc:filter expr="$building_kind_id!=0">
3253 <dc:for-each> 3253 <dc:for-each>
3254 <buildings description="{$building_kind}" factory="wmsbuildingsfactory" target_out="{$out}" ids="{$river_id};{$building_kind};{$building_kind_id}"/> 3254 <buildings description="{$building_kind}" factory="wmsbuildingsfactory" target_out="{$out}" ids="{$river_id};{$building_kind};{$building_kind_id}" />
3255 </dc:for-each> 3255 </dc:for-each>
3256 </dc:filter> 3256 </dc:filter>
3257 <dc:filter expr="$building_kind_id=0"> 3257 <dc:filter expr="$building_kind_id=0">
3258 <other> 3258 <other>
3259 <dc:for-each> 3259 <dc:for-each>
3260 <buildings description="{$building_name}" factory="wmsbuildingsfactory" target_out="{$out}" ids="{$river_id};{$building_name}"/> 3260 <buildings description="{$building_name}" factory="wmsbuildingsfactory" target_out="{$out}" ids="{$river_id};{$building_name}" />
3261 </dc:for-each> 3261 </dc:for-each>
3262 </other> 3262 </other>
3263 </dc:filter> 3263 </dc:filter>
3264 </dc:if> 3264 </dc:if>
3265 </dc:context> 3265 </dc:context>
3273 WHERE river_id = ${river_id} 3273 WHERE river_id = ${river_id}
3274 </dc:statement> 3274 </dc:statement>
3275 <dc:if test="dc:has-result()"> 3275 <dc:if test="dc:has-result()">
3276 <jetties> 3276 <jetties>
3277 <dc:for-each> 3277 <dc:for-each>
3278 <jetty description="{$jetty_kind}" factory="wmsjettiesfactory" target_out="{$out}" ids="{$river_id};{$jetty_kind};{$jetty_kind_id}"/> 3278 <jetty description="{$jetty_kind}" factory="wmsjettiesfactory" target_out="{$out}" ids="{$river_id};{$jetty_kind};{$jetty_kind_id}" />
3279 </dc:for-each> 3279 </dc:for-each>
3280 </jetties> 3280 </jetties>
3281 </dc:if> 3281 </dc:if>
3282 </dc:context> 3282 </dc:context>
3283 </buildings> 3283 </buildings>
3285 3285
3286 <dc:macro name="officiallines_user"> 3286 <dc:macro name="officiallines_user">
3287 <dc:if test="dc:contains($parameters, 'official-lines')"> 3287 <dc:if test="dc:contains($parameters, 'official-lines')">
3288 <dc:container-context container="official-lines"> 3288 <dc:container-context container="official-lines">
3289 <dc:properties> 3289 <dc:properties>
3290 <dc:property name="name" alias="olname"/> 3290 <dc:property name="name" alias="olname" />
3291 <dc:property name="wstId" alias="wstid"/> 3291 <dc:property name="wstId" alias="wstid" />
3292 <dc:property name="columnPos" alias="wstcolpos"/> 3292 <dc:property name="columnPos" alias="wstcolpos" />
3293 </dc:properties> 3293 </dc:properties>
3294 <dc:if test="dc:has-result()"> 3294 <dc:if test="dc:has-result()">
3295 <officiallines> 3295 <officiallines>
3296 <dc:for-each> 3296 <dc:for-each>
3297 <column name="{$olname}" ids="official-wstv-{$wstcolpos}-{$wstid}" factory="staticwqkms" target_out="{$out}"/> 3297 <column name="{$olname}" ids="official-wstv-{$wstcolpos}-{$wstid}" factory="staticwqkms" target_out="{$out}" />
3298 </dc:for-each> 3298 </dc:for-each>
3299 </officiallines> 3299 </officiallines>
3300 </dc:if> 3300 </dc:if>
3301 </dc:container-context> 3301 </dc:container-context>
3302 </dc:if> 3302 </dc:if>
3303 </dc:macro> 3303 </dc:macro>
3304 3304
3305 <!-- sediment loads --> 3305 <!-- sediment loads -->
3306 <dc:macro name="sedimentload_off_epoch_filter"> 3306 <dc:macro name="sedimentload_off_epoch_filter">
3307 <dc:if test="dc:has-result()"> 3307 <dc:if test="dc:has-result()">
3308 <dc:variable name="sq_time_id" type="number" expr="number($sq_ti_id)"/> 3308 <dc:variable name="sq_time_id" type="number" expr="number($sq_ti_id)" />
3309 <dc:if test="string-length(dc:get('epochs')) &gt; 0"> 3309 <dc:if test="string-length(dc:get('epochs')) &gt; 0">
3310 <dc:variable name="start" type="number" expr="dc:min-number(dc:find-all('\d{4}', $epochs))"/> 3310 <dc:variable name="start" type="number" expr="dc:min-number(dc:find-all('\d{4}', $epochs))" />
3311 <dc:variable name="end" type="number" expr="dc:max-number(dc:find-all('\d{4}', $epochs))"/> 3311 <dc:variable name="end" type="number" expr="dc:max-number(dc:find-all('\d{4}', $epochs))" />
3312 </dc:if> 3312 </dc:if>
3313 <dc:if test="string-length(dc:get('years')) &gt; 0"> 3313 <dc:if test="string-length(dc:get('years')) &gt; 0">
3314 <dc:variable name="start" type="number" expr="dc:min-number(dc:find-all('\d{4}', $years))"/> 3314 <dc:variable name="start" type="number" expr="dc:min-number(dc:find-all('\d{4}', $years))" />
3315 <dc:variable name="end" type="number" expr="dc:max-number(dc:find-all('\d{4}', $years))"/> 3315 <dc:variable name="end" type="number" expr="dc:max-number(dc:find-all('\d{4}', $years))" />
3316 </dc:if> 3316 </dc:if>
3317 <dc:filter expr="$kind = 'official' and 3317 <dc:filter expr="$kind = 'official' and
3318 $sqid = $sq_time_id and 3318 $sqid = $sq_time_id and
3319 not(number($end) &lt; 3319 not(number($end) &lt;
3320 number(dc:date-format('yyyy', $startyear)) 3320 number(dc:date-format('yyyy', $startyear))
3321 or number($start) &gt; 3321 or number($start) &gt;
3322 number(dc:date-format('yyyy', $endyear)))"> 3322 number(dc:date-format('yyyy', $endyear)))">
3323 <dc:macro-body/> 3323 <dc:macro-body />
3324 </dc:filter> 3324 </dc:filter>
3325 </dc:if> 3325 </dc:if>
3326 </dc:macro> 3326 </dc:macro>
3327 3327
3328 <dc:macro name="sedimentload_off_epochs"> 3328 <dc:macro name="sedimentload_off_epochs">
3329 <dc:context> 3329 <dc:context>
3330 <dc:call-macro name="sedimentload_stations_statement"/> 3330 <dc:call-macro name="sedimentload_stations_statement" />
3331 <dc:call-macro name="sedimentload_off_epoch_filter"> 3331 <dc:call-macro name="sedimentload_off_epoch_filter">
3332 <dc:call-macro name="loads"> 3332 <dc:call-macro name="loads">
3333 <dc:call-macro name="load"/> 3333 <dc:call-macro name="load" />
3334 </dc:call-macro> 3334 </dc:call-macro>
3335 </dc:call-macro> 3335 </dc:call-macro>
3336 </dc:context> 3336 </dc:context>
3337 <dc:context> 3337 <dc:context>
3338 <dc:call-macro name="sedimentload_ls_statement"/> 3338 <dc:call-macro name="sedimentload_ls_statement" />
3339 <dc:call-macro name="sedimentload_off_epoch_filter"> 3339 <dc:call-macro name="sedimentload_off_epoch_filter">
3340 <dc:call-macro name="loads"> 3340 <dc:call-macro name="loads">
3341 <dc:call-macro name="load_ls"/> 3341 <dc:call-macro name="load_ls" />
3342 </dc:call-macro> 3342 </dc:call-macro>
3343 </dc:call-macro> 3343 </dc:call-macro>
3344 </dc:context> 3344 </dc:context>
3345 </dc:macro> 3345 </dc:macro>
3346 3346
3369 WHERE w.river_id = ${river_id} 3369 WHERE w.river_id = ${river_id}
3370 AND 3370 AND
3371 NOT((${tokm} &lt; wr.a) or (${fromkm} &gt; wr.b)) 3371 NOT((${tokm} &lt; wr.a) or (${fromkm} &gt; wr.b))
3372 ORDER BY wst_column_position 3372 ORDER BY wst_column_position
3373 </dc:statement> 3373 </dc:statement>
3374 <dc:macro-body/> 3374 <dc:macro-body />
3375 </dc:context> 3375 </dc:context>
3376 </dc:macro> 3376 </dc:macro>
3377 3377
3378 <dc:macro name="all-user-artifacts"> 3378 <dc:macro name="all-user-artifacts">
3379 <dc:context connection="user"> 3379 <dc:context connection="user">
3406 JOIN master_artifacts_range ma ON ma.collection_id = c.id 3406 JOIN master_artifacts_range ma ON ma.collection_id = c.id
3407 JOIN outs o ON o.artifact_id = ma.id 3407 JOIN outs o ON o.artifact_id = ma.id
3408 JOIN facets f ON f.out_id = o.id 3408 JOIN facets f ON f.out_id = o.id
3409 WHERE u.gid = CAST(${user-id} AS UUID) 3409 WHERE u.gid = CAST(${user-id} AS UUID)
3410 AND ma.gid &lt;&gt; CAST(${artifact-id} AS uuid) 3410 AND ma.gid &lt;&gt; CAST(${artifact-id} AS uuid)
3411 AND f.name NOT LIKE '%empty.facet%' 3411 AND f.name NOT LIKE
3412 '%empty.facet%'
3412 AND EXISTS ( 3413 AND EXISTS (
3413 SELECT 3414 SELECT
3414 id 3415 id
3415 FROM artifact_data ad 3416 FROM artifact_data ad
3416 WHERE ad.artifact_id = ma.id 3417 WHERE ad.artifact_id = ma.id
3417 AND k = 'river' 3418 AND k = 'river'
3418 AND v = ${river}) 3419 AND v = ${river})
3419 </dc:statement> 3420 </dc:statement>
3420 <dc:virtual-column name="deffrom" type="number" expr="dc:fromValue($ld_m, $ld_l, $ld_f)"> 3421 <dc:virtual-column name="deffrom" type="number" expr="dc:fromValue($ld_m, $ld_l, $ld_f)">
3421 <dc:virtual-column name="defto" type="number" expr="dc:toValue($ld_m, $ld_l, $ld_t)"> 3422 <dc:virtual-column name="defto" type="number" expr="dc:toValue($ld_m, $ld_l, $ld_t)">
3422 <dc:macro-body/> 3423 <dc:macro-body />
3423 </dc:virtual-column> 3424 </dc:virtual-column>
3424 </dc:virtual-column> 3425 </dc:virtual-column>
3425 </dc:context> 3426 </dc:context>
3426 </dc:macro> 3427 </dc:macro>
3427 3428
3430 Apply KM Filtering but pass 3431 Apply KM Filtering but pass
3431 sq_ facets with no regard about their location. 3432 sq_ facets with no regard about their location.
3432 </dc:comment> 3433 </dc:comment>
3433 <dc:filter expr="not($deffrom &gt; $tokm or $defto &lt; $fromkm) or 3434 <dc:filter expr="not($deffrom &gt; $tokm or $defto &lt; $fromkm) or
3434 starts-with($facet_name, 'sq_')"> 3435 starts-with($facet_name, 'sq_')">
3435 <dc:macro-body/> 3436 <dc:macro-body />
3436 </dc:filter> 3437 </dc:filter>
3437 </dc:macro> 3438 </dc:macro>
3438 3439
3439 <dc:macro name="artifact-range"> 3440 <dc:macro name="artifact-range">
3440 <dc:choose> 3441 <dc:choose>
3441 <dc:when test="dc:coalesce(dc:get('ld_locations'), ' ') != ' '"> 3442 <dc:when test="dc:coalesce(dc:get('ld_locations'), ' ') != ' '">
3442 <dc:variable name="fromkm" type="number" expr="dc:min-number(dc:find-all('\d*\.?\d*', 3443 <dc:variable name="fromkm" type="number" expr="dc:min-number(dc:find-all('\d*\.?\d*',
3443 dc:get('ld_locations')))"/> 3444 dc:get('ld_locations')))" />
3444 <dc:variable name="tokm" type="number" expr="dc:max-number(dc:find-all('\d*\.?\d*', 3445 <dc:variable name="tokm" type="number" expr="dc:max-number(dc:find-all('\d*\.?\d*',
3445 dc:get('ld_locations')))"/> 3446 dc:get('ld_locations')))" />
3446 </dc:when> 3447 </dc:when>
3447 <dc:otherwise> 3448 <dc:otherwise>
3448 <dc:variable name="fromkm" type="number" expr="dc:fromValue(dc:get('ld_mode'), 3449 <dc:variable name="fromkm" type="number" expr="dc:fromValue(dc:get('ld_mode'),
3449 dc:get('ld_locations'), dc:get('ld_from'))"/> 3450 dc:get('ld_locations'), dc:get('ld_from'))" />
3450 <dc:variable name="tokm" type="number" expr="dc:toValue(dc:get('ld_mode'), 3451 <dc:variable name="tokm" type="number" expr="dc:toValue(dc:get('ld_mode'),
3451 dc:get('ld_locations'), dc:get('ld_to'))"/> 3452 dc:get('ld_locations'), dc:get('ld_to'))" />
3452 <dc:if test="$fromkm > $tokm"> 3453 <dc:if test="$fromkm > $tokm">
3453 <dc:message>Inverting KM filter.</dc:message> 3454 <dc:message>Inverting KM filter.</dc:message>
3454 <dc:variable name="fromkm" type="number" expr="dc:toValue(dc:get('ld_mode'), 3455 <dc:variable name="fromkm" type="number" expr="dc:toValue(dc:get('ld_mode'),
3455 dc:get('ld_locations'), dc:get('ld_to'))"/> 3456 dc:get('ld_locations'), dc:get('ld_to'))" />
3456 <dc:variable name="tokm" type="number" expr="dc:fromValue(dc:get('ld_mode'), 3457 <dc:variable name="tokm" type="number" expr="dc:fromValue(dc:get('ld_mode'),
3457 dc:get('ld_locations'), dc:get('ld_from'))"/> 3458 dc:get('ld_locations'), dc:get('ld_from'))" />
3458 </dc:if> 3459 </dc:if>
3459 </dc:otherwise> 3460 </dc:otherwise>
3460 </dc:choose> 3461 </dc:choose>
3461 <dc:macro-body/> 3462 <dc:macro-body />
3462 </dc:macro> 3463 </dc:macro>
3463 3464
3464 <!-- S-INFO --> 3465 <!-- S-INFO -->
3465 <dc:macro name="sinfo_flowdepths"> 3466 <dc:macro name="sinfo_flowdepths">
3466 <dc:filter expr="$a_state = 'state.sinfo.flow_depth' and 3467 <dc:filter
3467 ( $facet_name = 'sinfo_facet_flow_depth' or $facet_name = 'sinfo_facet_flow_depth.filtered' or 3468 expr="$a_state = 'state.sinfo.flow_depth' and
3468 $facet_name = 'sinfo_facet_flow_depth_with_tkh' or $facet_name = 'sinfo_facet_flow_depth_with_tkh.filtered' or 3469 ( $facet_name = 'sinfo_facet_flow_depth' or
3470 $facet_name = 'sinfo_facet_flow_depth.filtered' or
3471 $facet_name = 'sinfo_facet_flow_depth_waterlevel' or
3472 $facet_name = 'sinfo_facet_flow_depth_bedheight' or
3473 $facet_name = 'sinfo_facet_flow_depth_bedheight_min' or
3474 $facet_name = 'sinfo_facet_flow_depth_bedheight_max' or
3475 $facet_name = 'sinfo_facet_flow_depth_discharge' or
3476 $facet_name = 'sinfo_facet_flow_depth_with_tkh' or
3477 $facet_name = 'sinfo_facet_flow_depth_with_tkh.filtered' or
3469 $facet_name = 'sinfo_facet_tkh' )"> 3478 $facet_name = 'sinfo_facet_tkh' )">
3470 <dc:if test="dc:has-result()"> 3479 <dc:if test="dc:has-result()">
3471 <sinfo_flow_depths> 3480 <sinfo_flow_depths>
3472 <dc:call-macro name="collection-group"> 3481 <dc:call-macro name="collection-group">
3473 <sinfo_flow_depth description="{dc:group-key()}"> 3482 <sinfo_flow_depth description="{dc:group-key()}">
3474 <dc:for-each> 3483 <dc:for-each>
3475 <dc:element name="${facet_name}"> 3484 <dc:element name="${facet_name}">
3476 <dc:attribute name="factory" value="sinfo"/> 3485 <dc:attribute name="factory" value="sinfo" />
3477 <dc:attribute name="target_out" value="${out}"/> 3486 <dc:attribute name="target_out" value="${out}" />
3478 <dc:attribute name="description" value="${facet_description}"/> 3487 <dc:attribute name="description" value="${facet_description}" />
3479 <dc:attribute name="ids" value="${facet_num}"/> 3488 <dc:attribute name="ids" value="${facet_num}" />
3480 <dc:attribute name="artifact-id" value="${a_gid}"/> 3489 <dc:attribute name="artifact-id" value="${a_gid}" />
3481 <dc:attribute name="out" value="${out_name}"/> 3490 <dc:attribute name="out" value="${out_name}" />
3482 </dc:element> 3491 </dc:element>
3483 </dc:for-each> 3492 </dc:for-each>
3484 </sinfo_flow_depth> 3493 </sinfo_flow_depth>
3485 </dc:call-macro> 3494 </dc:call-macro>
3486 </sinfo_flow_depths> 3495 </sinfo_flow_depths>
3488 </dc:filter> 3497 </dc:filter>
3489 </dc:macro> 3498 </dc:macro>
3490 3499
3491 <dc:macro name="sinfo_flowdepths_minmax"> 3500 <dc:macro name="sinfo_flowdepths_minmax">
3492 <dc:filter expr="$a_state = 'state.sinfo.flow_depth_minmax' and 3501 <dc:filter expr="$a_state = 'state.sinfo.flow_depth_minmax' and
3493 ( $facet_name = 'sinfo_facet_flow_depth_min' or $facet_name = 'sinfo_facet_flow_depth_min.filtered' or 3502 ( $facet_name = 'sinfo_facet_flow_depth_min' or
3494 $facet_name = 'sinfo_facet_flow_depth_max' or $facet_name = 'sinfo_facet_flow_depth_max.filtered' )"> 3503 $facet_name = 'sinfo_facet_flow_depth_bedheight_min' or
3504 $facet_name = 'sinfo_facet_flow_depth_bedheight_max' or
3505 $facet_name = 'sinfo_facet_flow_depth_waterlevel' or
3506 $facet_name = 'sinfo_facet_flow_depth_discharge' or
3507 $facet_name = 'sinfo_facet_flow_depth_min.filtered' or
3508 $facet_name = 'sinfo_facet_flow_depth_max' or
3509 $facet_name = 'sinfo_facet_flow_depth_max.filtered' )">
3495 <dc:if test="dc:has-result()"> 3510 <dc:if test="dc:has-result()">
3496 <sinfo_flow_depths_minmax> 3511 <sinfo_flow_depths_minmax>
3497 <dc:call-macro name="collection-group"> 3512 <dc:call-macro name="collection-group">
3498 <sinfo_flow_depth_minmax description="{dc:group-key()}"> 3513 <sinfo_flow_depth_minmax description="{dc:group-key()}">
3499 <dc:for-each> 3514 <dc:for-each>
3500 <dc:element name="${facet_name}"> 3515 <dc:element name="${facet_name}">
3501 <dc:attribute name="factory" value="sinfo"/> 3516 <dc:attribute name="factory" value="sinfo" />
3502 <dc:attribute name="target_out" value="${out}"/> 3517 <dc:attribute name="target_out" value="${out}" />
3503 <dc:attribute name="description" value="${facet_description}"/> 3518 <dc:attribute name="description" value="${facet_description}" />
3504 <dc:attribute name="ids" value="${facet_num}"/> 3519 <dc:attribute name="ids" value="${facet_num}" />
3505 <dc:attribute name="artifact-id" value="${a_gid}"/> 3520 <dc:attribute name="artifact-id" value="${a_gid}" />
3506 <dc:attribute name="out" value="${out_name}"/> 3521 <dc:attribute name="out" value="${out_name}" />
3507 </dc:element> 3522 </dc:element>
3508 </dc:for-each> 3523 </dc:for-each>
3509 </sinfo_flow_depth_minmax> 3524 </sinfo_flow_depth_minmax>
3510 </dc:call-macro> 3525 </dc:call-macro>
3511 </sinfo_flow_depths_minmax> 3526 </sinfo_flow_depths_minmax>
3526 <sinfo_flow_depth_developments> 3541 <sinfo_flow_depth_developments>
3527 <dc:call-macro name="collection-group"> 3542 <dc:call-macro name="collection-group">
3528 <sinfo_flow_depth_development description="{dc:group-key()}"> 3543 <sinfo_flow_depth_development description="{dc:group-key()}">
3529 <dc:for-each> 3544 <dc:for-each>
3530 <dc:element name="${facet_name}"> 3545 <dc:element name="${facet_name}">
3531 <dc:attribute name="factory" value="sinfo"/> 3546 <dc:attribute name="factory" value="sinfo" />
3532 <dc:attribute name="target_out" value="${out}"/> 3547 <dc:attribute name="target_out" value="${out}" />
3533 <dc:attribute name="description" value="${facet_description}"/> 3548 <dc:attribute name="description" value="${facet_description}" />
3534 <dc:attribute name="ids" value="${facet_num}"/> 3549 <dc:attribute name="ids" value="${facet_num}" />
3535 <dc:attribute name="artifact-id" value="${a_gid}"/> 3550 <dc:attribute name="artifact-id" value="${a_gid}" />
3536 <dc:attribute name="out" value="${out_name}"/> 3551 <dc:attribute name="out" value="${out_name}" />
3537 </dc:element> 3552 </dc:element>
3538 </dc:for-each> 3553 </dc:for-each>
3539 </sinfo_flow_depth_development> 3554 </sinfo_flow_depth_development>
3540 </dc:call-macro> 3555 </dc:call-macro>
3541 </sinfo_flow_depth_developments> 3556 </sinfo_flow_depth_developments>
3546 <dc:macro name="sinfo_tkh"> 3561 <dc:macro name="sinfo_tkh">
3547 <dc:filter 3562 <dc:filter
3548 expr="$a_state = 'state.sinfo.transport_bodies_heights' and 3563 expr="$a_state = 'state.sinfo.transport_bodies_heights' and
3549 ( $facet_name = 'sinfo_facet_tkh' or 3564 ( $facet_name = 'sinfo_facet_tkh' or
3550 $facet_name = 'sinfo_facet_flow_depth' or $facet_name = 'sinfo_facet_flow_depth.filtered' or 3565 $facet_name = 'sinfo_facet_flow_depth' or $facet_name = 'sinfo_facet_flow_depth.filtered' or
3566 $facet_name = 'sinfo_facet_flow_depth_discharge' or
3567 $facet_name = 'sinfo_facet_flow_depth_waterlevel' or
3568 $facet_name = 'sinfo_facet_flow_depth_bedheight' or
3569 $facet_name = 'sinfo_facet_flow_depth_bedheight_min' or
3570 $facet_name = 'sinfo_facet_flow_depth_bedheight_max' or
3551 $facet_name = 'sinfo_facet_velocity' or $facet_name = 'sinfo_facet_velocity.filtered' or 3571 $facet_name = 'sinfo_facet_velocity' or $facet_name = 'sinfo_facet_velocity.filtered' or
3552 $facet_name = 'sinfo_facet_tau' or $facet_name = 'sinfo_facet_tau.filtered' or 3572 $facet_name = 'sinfo_facet_tau' or $facet_name = 'sinfo_facet_tau.filtered' or
3553 $facet_name = 'sinfo_facet_d50' or $facet_name = 'sinfo_facet_d50.filtered' )"> 3573 $facet_name = 'sinfo_facet_d50' or $facet_name = 'sinfo_facet_d50.filtered' )">
3554 <dc:if test="dc:has-result()"> 3574 <dc:if test="dc:has-result()">
3555 <sinfo_tkhs> 3575 <sinfo_tkhs>
3556 <dc:call-macro name="collection-group"> 3576 <dc:call-macro name="collection-group">
3557 <sinfo_tkh description="{dc:group-key()}"> 3577 <sinfo_tkh description="{dc:group-key()}">
3558 <dc:for-each> 3578 <dc:for-each>
3559 <dc:element name="${facet_name}"> 3579 <dc:element name="${facet_name}">
3560 <dc:attribute name="factory" value="sinfo"/> 3580 <dc:attribute name="factory" value="sinfo" />
3561 <dc:attribute name="target_out" value="${out}"/> 3581 <dc:attribute name="target_out" value="${out}" />
3562 <dc:attribute name="description" value="${facet_description}"/> 3582 <dc:attribute name="description" value="${facet_description}" />
3563 <dc:attribute name="ids" value="${facet_num}"/> 3583 <dc:attribute name="ids" value="${facet_num}" />
3564 <dc:attribute name="artifact-id" value="${a_gid}"/> 3584 <dc:attribute name="artifact-id" value="${a_gid}" />
3565 <dc:attribute name="out" value="${out_name}"/> 3585 <dc:attribute name="out" value="${out_name}" />
3566 </dc:element> 3586 </dc:element>
3567 </dc:for-each> 3587 </dc:for-each>
3568 </sinfo_tkh> 3588 </sinfo_tkh>
3569 </dc:call-macro> 3589 </dc:call-macro>
3570 </sinfo_tkhs> 3590 </sinfo_tkhs>
3579 <sinfo_collisions> 3599 <sinfo_collisions>
3580 <dc:call-macro name="collection-group"> 3600 <dc:call-macro name="collection-group">
3581 <sinfo_collision description="{dc:group-key()}"> 3601 <sinfo_collision description="{dc:group-key()}">
3582 <dc:for-each> 3602 <dc:for-each>
3583 <dc:element name="${facet_name}"> 3603 <dc:element name="${facet_name}">
3584 <dc:attribute name="factory" value="sinfo"/> 3604 <dc:attribute name="factory" value="sinfo" />
3585 <dc:attribute name="target_out" value="${out}"/> 3605 <dc:attribute name="target_out" value="${out}" />
3586 <dc:attribute name="description" value="${facet_description}"/> 3606 <dc:attribute name="description" value="${facet_description}" />
3587 <dc:attribute name="ids" value="${facet_num}"/> 3607 <dc:attribute name="ids" value="${facet_num}" />
3588 <dc:attribute name="artifact-id" value="${a_gid}"/> 3608 <dc:attribute name="artifact-id" value="${a_gid}" />
3589 <dc:attribute name="out" value="${out_name}"/> 3609 <dc:attribute name="out" value="${out_name}" />
3590 </dc:element> 3610 </dc:element>
3591 </dc:for-each> 3611 </dc:for-each>
3592 </sinfo_collision> 3612 </sinfo_collision>
3593 </dc:call-macro> 3613 </dc:call-macro>
3594 </sinfo_collisions> 3614 </sinfo_collisions>
3605 <sinfo_flood_durations> 3625 <sinfo_flood_durations>
3606 <dc:call-macro name="collection-group"> 3626 <dc:call-macro name="collection-group">
3607 <sinfo_flood_duration description="{dc:group-key()}"> 3627 <sinfo_flood_duration description="{dc:group-key()}">
3608 <dc:for-each> 3628 <dc:for-each>
3609 <dc:element name="${facet_name}"> 3629 <dc:element name="${facet_name}">
3610 <dc:attribute name="factory" value="sinfo"/> 3630 <dc:attribute name="factory" value="sinfo" />
3611 <dc:attribute name="target_out" value="${out}"/> 3631 <dc:attribute name="target_out" value="${out}" />
3612 <dc:attribute name="description" value="${facet_description}"/> 3632 <dc:attribute name="description" value="${facet_description}" />
3613 <dc:attribute name="ids" value="${facet_num}"/> 3633 <dc:attribute name="ids" value="${facet_num}" />
3614 <dc:attribute name="artifact-id" value="${a_gid}"/> 3634 <dc:attribute name="artifact-id" value="${a_gid}" />
3615 <dc:attribute name="out" value="${out_name}"/> 3635 <dc:attribute name="out" value="${out_name}" />
3616 </dc:element> 3636 </dc:element>
3617 </dc:for-each> 3637 </dc:for-each>
3618 </sinfo_flood_duration> 3638 </sinfo_flood_duration>
3619 </dc:call-macro> 3639 </dc:call-macro>
3620 </sinfo_flood_durations> 3640 </sinfo_flood_durations>
3638 GROUP BY s.id 3658 GROUP BY s.id
3639 ORDER BY MIN(s.year_to) DESC 3659 ORDER BY MIN(s.year_to) DESC
3640 </dc:statement> 3660 </dc:statement>
3641 <dc:if test="dc:has-result()"> 3661 <dc:if test="dc:has-result()">
3642 <dc:for-each> 3662 <dc:for-each>
3643 <channelseries name="{$seriesname}" description="{$seriesname}" ids="channelx-{$id}-{$seriesname}" factory="channelf" target_out="{$out}" info="{$info}"/> 3663 <channelseries name="{$seriesname}" description="{$seriesname}" ids="channelx-{$id}-{$seriesname}" factory="channelf" target_out="{$out}" info="{$info}" />
3644 </dc:for-each> 3664 </dc:for-each>
3645 </dc:if> 3665 </dc:if>
3646 </dc:context> 3666 </dc:context>
3647 </dc:macro> 3667 </dc:macro>
3648 3668
3649 <!-- tkh imported from CSV-files for S-INFO --> 3669 <!-- tkh imported from CSV-files for S-INFO -->
3650 <dc:macro name="sinfo_predefined_tkh-berechnung"> 3670 <dc:macro name="sinfo_predefined_tkh-berechnung">
3651 <predefined_tkh_berechnung> 3671 <predefined_tkh_berechnung>
3652 <dc:variable name="tkh_groupname" expr="'berechnung'"/> 3672 <dc:variable name="tkh_groupname" expr="'berechnung'" />
3653 <dc:call-macro name="sinfo_predefined_tkh"/> 3673 <dc:call-macro name="sinfo_predefined_tkh" />
3654 </predefined_tkh_berechnung> 3674 </predefined_tkh_berechnung>
3655 </dc:macro> 3675 </dc:macro>
3656 3676
3657 <dc:macro name="sinfo_predefined_tkh-messung"> 3677 <dc:macro name="sinfo_predefined_tkh-messung">
3658 <predefined_tkh_messung> 3678 <predefined_tkh_messung>
3659 <dc:variable name="tkh_groupname" expr="'messung'"/> 3679 <dc:variable name="tkh_groupname" expr="'messung'" />
3660 <dc:call-macro name="sinfo_predefined_tkh"/> 3680 <dc:call-macro name="sinfo_predefined_tkh" />
3661 </predefined_tkh_messung> 3681 </predefined_tkh_messung>
3662 </dc:macro> 3682 </dc:macro>
3663 3683
3664 <dc:macro name="sinfo_predefined_tkh"> 3684 <dc:macro name="sinfo_predefined_tkh">
3665 <dc:context> 3685 <dc:context>
3683 </dc:statement> 3703 </dc:statement>
3684 <dc:if test="dc:has-result()"> 3704 <dc:if test="dc:has-result()">
3685 <dc:group expr="$tkh_name"> 3705 <dc:group expr="$tkh_name">
3686 <tkhx name="{dc:group-key()}" description="{dc:group-key()}"> 3706 <tkhx name="{dc:group-key()}" description="{dc:group-key()}">
3687 <dc:for-each> 3707 <dc:for-each>
3688 <tkhcolumn name="{$tkh_col_name}" description="{$tkh_col_name}" ids="tkhx-{$tkh_col_id}-{$tkh_id}" factory="tkhxf" target_out="{$out}" info="{$info}"/> 3708 <tkhcolumn name="{$tkh_col_name}" description="{$tkh_col_name}" ids="tkhx-{$tkh_col_id}-{$tkh_id}" factory="tkhxf" target_out="{$out}" info="{$info}" />
3689 </dc:for-each> 3709 </dc:for-each>
3690 </tkhx> 3710 </tkhx>
3691 </dc:group> 3711 </dc:group>
3692 </dc:if> 3712 </dc:if>
3693 </dc:context> 3713 </dc:context>
3694 </dc:macro> 3714 </dc:macro>
3695 3715
3696 <!-- depth_evolution imported from CSV-files for S-INFO --> 3716 <!-- depth_evolution imported from CSV-files for S-INFO -->
3697 <dc:macro name="sinfo_predefined_depthevol-aktuell"> 3717 <dc:macro name="sinfo_predefined_depthevol-aktuell">
3698 <predefined_depthevol_aktuell> 3718 <predefined_depthevol_aktuell>
3699 <dc:variable name="depthevol_groupname" expr="'aktuell'"/> 3719 <dc:variable name="depthevol_groupname" expr="'aktuell'" />
3700 <dc:call-macro name="sinfo_predefined_depthevol"/> 3720 <dc:call-macro name="sinfo_predefined_depthevol" />
3701 </predefined_depthevol_aktuell> 3721 </predefined_depthevol_aktuell>
3702 </dc:macro> 3722 </dc:macro>
3703 3723
3704 <dc:macro name="sinfo_predefined_depthevol-etappe"> 3724 <dc:macro name="sinfo_predefined_depthevol-etappe">
3705 <predefined_depthevol_etappe> 3725 <predefined_depthevol_etappe>
3706 <dc:variable name="depthevol_groupname" expr="'etappe'"/> 3726 <dc:variable name="depthevol_groupname" expr="'etappe'" />
3707 <dc:call-macro name="sinfo_predefined_depthevol"/> 3727 <dc:call-macro name="sinfo_predefined_depthevol" />
3708 </predefined_depthevol_etappe> 3728 </predefined_depthevol_etappe>
3709 </dc:macro> 3729 </dc:macro>
3710 3730
3711 <dc:macro name="sinfo_predefined_depthevol"> 3731 <dc:macro name="sinfo_predefined_depthevol">
3712 <dc:context> 3732 <dc:context>
3726 AND (v.station BETWEEN ${fromkm}-0.0001 AND ${tokm}+0.0001) 3746 AND (v.station BETWEEN ${fromkm}-0.0001 AND ${tokm}+0.0001)
3727 GROUP BY s.id 3747 GROUP BY s.id
3728 ORDER BY s.id 3748 ORDER BY s.id
3729 </dc:statement> 3749 </dc:statement>
3730 <dc:for-each> 3750 <dc:for-each>
3731 <depth_evol name="{$depthevol_name}" description="{$depthevol_name}" ids="depthevolx-{$depthevol_id}-{$depthevol_name}" factory="depthevolxf" target_out="{$out}" info="{$info}"/> 3751 <depth_evol name="{$depthevol_name}" description="{$depthevol_name}" ids="depthevolx-{$depthevol_id}-{$depthevol_name}" factory="depthevolxf" target_out="{$out}" info="{$info}" />
3732 </dc:for-each> 3752 </dc:for-each>
3733 </dc:context> 3753 </dc:context>
3734 </dc:macro> 3754 </dc:macro>
3735 3755
3736 <!-- flow depth imported from CSV-files for S-INFO --> 3756 <!-- flow depth imported from CSV-files for S-INFO -->
3737 <dc:macro name="sinfo_predefined_flowdepth-m"> 3757 <dc:macro name="sinfo_predefined_flowdepth-m">
3738 <dc:call-macro name="sinfo_predefined_flowdepth-m1"/> 3758 <dc:call-macro name="sinfo_predefined_flowdepth-m1" />
3739 </dc:macro> 3759 </dc:macro>
3740 3760
3741 <dc:macro name="sinfo_predefined_flowdepth-m1"> 3761 <dc:macro name="sinfo_predefined_flowdepth-m1">
3742 <dc:context> 3762 <dc:context>
3743 <dc:statement> 3763 <dc:statement>
3759 </dc:statement> 3779 </dc:statement>
3760 <dc:if test="dc:has-result()"> 3780 <dc:if test="dc:has-result()">
3761 <dc:group expr="$flowdepth_name"> 3781 <dc:group expr="$flowdepth_name">
3762 <sinfo_predefined_flowdepth> 3782 <sinfo_predefined_flowdepth>
3763 <dc:for-each> 3783 <dc:for-each>
3764 <flowdepthcolumn name="{$flowdepth_col_name}" description="{$flowdepth_col_name}" ids="flowdepthx-{$flowdepth_col_id}-{$flowdepth_id}" factory="flowdepthxf" target_out="{$out}" info="{$info}"/> 3784 <flowdepthcolumn name="{$flowdepth_col_name}" description="{$flowdepth_col_name}" ids="flowdepthx-{$flowdepth_col_id}-{$flowdepth_id}" factory="flowdepthxf" target_out="{$out}" info="{$info}" />
3765 </dc:for-each> 3785 </dc:for-each>
3766 </sinfo_predefined_flowdepth> 3786 </sinfo_predefined_flowdepth>
3767 </dc:group> 3787 </dc:group>
3768 </dc:if> 3788 </dc:if>
3769 </dc:context> 3789 </dc:context>
3788 s.id 3808 s.id
3789 ORDER BY MIN(s.filename) DESC 3809 ORDER BY MIN(s.filename) DESC
3790 </dc:statement> 3810 </dc:statement>
3791 <dc:if test="dc:has-result()"> 3811 <dc:if test="dc:has-result()">
3792 <dc:for-each> 3812 <dc:for-each>
3793 <infrastructureseries name="{$seriesname}" description="{$seriesname}" ids="infrastructurex-{$id}-{$seriesname}" factory="infrastructuref" target_out="{$out}" info="{$info}"/> 3813 <infrastructureseries name="{$seriesname}" description="{$seriesname}" ids="infrastructurex-{$id}-{$seriesname}" factory="infrastructuref" target_out="{$out}" info="{$info}" />
3794 </dc:for-each> 3814 </dc:for-each>
3795 </dc:if> 3815 </dc:if>
3796 </dc:context> 3816 </dc:context>
3797 </dc:macro> 3817 </dc:macro>
3798 3818
3812 GROUP BY s.id 3832 GROUP BY s.id
3813 ORDER BY MIN(s.year) 3833 ORDER BY MIN(s.year)
3814 </dc:statement> 3834 </dc:statement>
3815 <dc:if test="dc:has-result()"> 3835 <dc:if test="dc:has-result()">
3816 <dc:for-each> 3836 <dc:for-each>
3817 <collisionseries name="{$seriesname}" description="{$seriesname}" ids="collisionx-{$id}-{$year}-{$seriesname}" factory="collisionf" target_out="{$out}" info="{$info}"/> 3837 <collisionseries name="{$seriesname}" description="{$seriesname}" ids="collisionx-{$id}-{$year}-{$seriesname}" factory="collisionf" target_out="{$out}" info="{$info}" />
3818 </dc:for-each> 3838 </dc:for-each>
3819 </dc:if> 3839 </dc:if>
3820 </dc:context> 3840 </dc:context>
3821 </dc:macro> 3841 </dc:macro>
3822 3842
3830 <uinfo_salix_lines> 3850 <uinfo_salix_lines>
3831 <dc:call-macro name="collection-group"> 3851 <dc:call-macro name="collection-group">
3832 <uinfo_salix_line description="{dc:group-key()}"> 3852 <uinfo_salix_line description="{dc:group-key()}">
3833 <dc:for-each> 3853 <dc:for-each>
3834 <dc:element name="${facet_name}"> 3854 <dc:element name="${facet_name}">
3835 <dc:attribute name="factory" value="uinfo"/> 3855 <dc:attribute name="factory" value="uinfo" />
3836 <dc:attribute name="target_out" value="${out}"/> 3856 <dc:attribute name="target_out" value="${out}" />
3837 <dc:attribute name="description" value="${facet_description}"/> 3857 <dc:attribute name="description" value="${facet_description}" />
3838 <dc:attribute name="ids" value="${facet_num}"/> 3858 <dc:attribute name="ids" value="${facet_num}" />
3839 <dc:attribute name="artifact-id" value="${a_gid}"/> 3859 <dc:attribute name="artifact-id" value="${a_gid}" />
3840 <dc:attribute name="out" value="${out_name}"/> 3860 <dc:attribute name="out" value="${out_name}" />
3841 </dc:element> 3861 </dc:element>
3842 </dc:for-each> 3862 </dc:for-each>
3843 </uinfo_salix_line> 3863 </uinfo_salix_line>
3844 </dc:call-macro> 3864 </dc:call-macro>
3845 </uinfo_salix_lines> 3865 </uinfo_salix_lines>
3851 <dc:macro name="vegetationzones"> 3871 <dc:macro name="vegetationzones">
3852 <dc:filter expr="$a_state = 'state.uinfo.vegetation_zones' and $facet_name = 'uinfo_facet_vegetation_zones_cross_section'"> 3872 <dc:filter expr="$a_state = 'state.uinfo.vegetation_zones' and $facet_name = 'uinfo_facet_vegetation_zones_cross_section'">
3853 <dc:if test="dc:has-result()"> 3873 <dc:if test="dc:has-result()">
3854 <vegetation_zones> 3874 <vegetation_zones>
3855 <dc:for-each> 3875 <dc:for-each>
3856 <dc:variable name="vegzonedata" expr="dc:data_from_artifact($a_gid,'vegzones')"/> 3876 <dc:variable name="vegzonedata" expr="dc:data_from_artifact($a_gid,'vegzones')" />
3857 <dc:variable name="label_temp" type="string" expr="concat(dc:get('ld_f'), ' km - ', dc:get('ld_t'), ' km')"/> 3877 <dc:variable name="label_temp" type="string" expr="concat(dc:get('ld_f'), ' km - ', dc:get('ld_t'), ' km')" />
3858 3878
3859 <dc:element name="${facet_name}"> 3879 <dc:element name="${facet_name}">
3860 <dc:attribute name="factory" value="uinfo"/> 3880 <dc:attribute name="factory" value="uinfo" />
3861 <dc:attribute name="target_out" value="${out}"/> 3881 <dc:attribute name="target_out" value="${out}" />
3862 <dc:attribute name="description" value="${label_temp}"/> 3882 <dc:attribute name="description" value="${label_temp}" />
3863 <dc:attribute name="artifact-id" value="${a_gid}"/> 3883 <dc:attribute name="artifact-id" value="${a_gid}" />
3864 <dc:attribute name="out" value="${out_name}"/> 3884 <dc:attribute name="out" value="${out_name}" />
3865 <dc:attribute name="ids" value="${facet_num}"/> 3885 <dc:attribute name="ids" value="${facet_num}" />
3866 <!-- veg zones string as attribute --> 3886 <!-- veg zones string as attribute -->
3867 <dc:attribute name="data" value="${vegzonedata}"/> 3887 <dc:attribute name="data" value="${vegzonedata}" />
3868 </dc:element> 3888 </dc:element>
3869 </dc:for-each> 3889 </dc:for-each>
3870 </vegetation_zones> 3890 </vegetation_zones>
3871 </dc:if> 3891 </dc:if>
3872 </dc:filter> 3892 </dc:filter>
3915 <bundu_bezugswsts> 3935 <bundu_bezugswsts>
3916 <dc:call-macro name="collection-group"> 3936 <dc:call-macro name="collection-group">
3917 <bundu_bezugswst description="{dc:group-key()}"> 3937 <bundu_bezugswst description="{dc:group-key()}">
3918 <dc:for-each> 3938 <dc:for-each>
3919 <dc:element name="${facet_name}"> 3939 <dc:element name="${facet_name}">
3920 <dc:attribute name="factory" value="bundu"/> 3940 <dc:attribute name="factory" value="bundu" />
3921 <dc:attribute name="target_out" value="${out}"/> 3941 <dc:attribute name="target_out" value="${out}" />
3922 <dc:attribute name="description" value="${facet_description}"/> 3942 <dc:attribute name="description" value="${facet_description}" />
3923 <dc:attribute name="ids" value="${facet_num}"/> 3943 <dc:attribute name="ids" value="${facet_num}" />
3924 <dc:attribute name="artifact-id" value="${a_gid}"/> 3944 <dc:attribute name="artifact-id" value="${a_gid}" />
3925 <dc:attribute name="out" value="${out_name}"/> 3945 <dc:attribute name="out" value="${out_name}" />
3926 </dc:element> 3946 </dc:element>
3927 </dc:for-each> 3947 </dc:for-each>
3928 </bundu_bezugswst> 3948 </bundu_bezugswst>
3929 </dc:call-macro> 3949 </dc:call-macro>
3930 </bundu_bezugswsts> 3950 </bundu_bezugswsts>

http://dive4elements.wald.intevation.org