Mercurial > dive4elements > river
comparison artifacts/doc/conf/meta-data.xml @ 7340:2ce7bacc940f double-precision
Merged changes from default into double precision branch.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Tue, 15 Oct 2013 18:41:55 +0200 |
parents | 7389fef8905c |
children | 93a1e63f5644 |
comparison
equal
deleted
inserted
replaced
7334:f7d3fc619976 | 7340:2ce7bacc940f |
---|---|
71 </dc:when> | 71 </dc:when> |
72 <dc:when test="$out = 'duration_curve'"> | 72 <dc:when test="$out = 'duration_curve'"> |
73 <dc:call-macro name="mainvalues"/> | 73 <dc:call-macro name="mainvalues"/> |
74 </dc:when> | 74 </dc:when> |
75 <dc:when test="$out = 'reference_curve'"> | 75 <dc:when test="$out = 'reference_curve'"> |
76 <dc:call-macro name="annotations"/> | |
77 <dc:call-macro name="mainvalues"/> | 76 <dc:call-macro name="mainvalues"/> |
78 </dc:when> | 77 </dc:when> |
79 <dc:when test="$out = 'fix_wq_curve'"> | 78 <dc:when test="$out = 'fix_wq_curve'"> |
80 <dc:call-macro name="mainvalues"/> | 79 <dc:call-macro name="mainvalues"/> |
81 <dc:call-macro name="qsectors"/> | 80 <dc:call-macro name="qsectors"/> |
122 </dc:choose> | 121 </dc:choose> |
123 </dc:iterate> | 122 </dc:iterate> |
124 </dc:when> | 123 </dc:when> |
125 <dc:otherwise> | 124 <dc:otherwise> |
126 <dc:comment> | 125 <dc:comment> |
127 Non - Recommendations. | 126 Non - Recommendations (offered to user to choose additional data from). |
128 </dc:comment> | 127 </dc:comment> |
129 <dc:iterate var="out" container="artifact-outs"> | 128 <dc:iterate var="out" container="artifact-outs"> |
130 <dc:message>Non Rec out iteration for: {$out}</dc:message> | 129 <dc:message>Non Rec out iteration for: {$out}</dc:message> |
131 <dc:choose> | 130 <dc:choose> |
132 <dc:when test="$out = 'cross_section'"> | 131 <dc:when test="$out = 'cross_section'"> |
139 <dc:call-macro name="basedata_5_flood-protections"/> | 138 <dc:call-macro name="basedata_5_flood-protections"/> |
140 <dc:call-macro name="hyks"/> | 139 <dc:call-macro name="hyks"/> |
141 </dc:when> | 140 </dc:when> |
142 <dc:when test="$out = 'longitudinal_section'"> | 141 <dc:when test="$out = 'longitudinal_section'"> |
143 <dc:call-macro name="longitudinal-section-prototype"/> | 142 <dc:call-macro name="longitudinal-section-prototype"/> |
144 <dc:call-macro name="bedheight_differences"/> | |
145 </dc:when> | 143 </dc:when> |
146 <dc:when test="$out = 'w_differences'"> | 144 <dc:when test="$out = 'w_differences'"> |
147 <dc:call-macro name="longitudinal-section-prototype"/> | 145 <dc:call-macro name="longitudinal-section-prototype"/> |
148 <dc:call-macro name="bedheight_differences"/> | |
149 </dc:when> | 146 </dc:when> |
150 <dc:when test="$out = 'discharge_longitudinal_section'"> | 147 <dc:when test="$out = 'discharge_longitudinal_section'"> |
151 <dc:call-macro name="longitudinal-section-prototype"/> | 148 <dc:call-macro name="longitudinal-section-prototype"/> |
152 </dc:when> | 149 </dc:when> |
153 <dc:when test="$out = 'historical_discharge_wq'"> | 150 <dc:when test="$out = 'historical_discharge_wq'"> |
154 <dc:call-macro name="historical_discharge_curve"/> | 151 <dc:call-macro name="discharge-curve-prototype"/> |
155 <dc:call-macro name="discharge_table_gauge"/> | |
156 <dc:call-macro name="basedata_2_fixations_wqkms"/> | |
157 <dc:call-macro name="basedata_5_flood-protections"/> | 152 <dc:call-macro name="basedata_5_flood-protections"/> |
158 <dc:call-macro name="basedata_0"/> | 153 <dc:call-macro name="basedata_0"/> |
159 <dc:call-macro name="basedata_1_additionals"/> | 154 <dc:call-macro name="basedata_1_additionals"/> |
160 <dc:call-macro name="basedata_4_heightmarks-points"/> | 155 <dc:call-macro name="basedata_4_heightmarks-points"/> |
161 <computed_discharge_curve> | 156 <computed_discharge_curve> |
162 <dc:call-macro name="mainvalues"/> | 157 <dc:call-macro name="mainvalues"/> |
163 </computed_discharge_curve> | 158 </computed_discharge_curve> |
164 </dc:when> | 159 </dc:when> |
165 <dc:when test="$out = 'discharge_curve'"> | 160 <dc:when test="$out = 'discharge_curve'"> |
166 <dc:call-macro name="historical_discharge_curve"/> | 161 <dc:call-macro name="discharge-curve-prototype"/> |
167 <dc:call-macro name="discharge_table_gauge"/> | 162 <dc:call-macro name="basedata_1_additionals_wq"/> |
168 <dc:call-macro name="basedata_2_fixations_wqkms"/> | |
169 <dc:call-macro name="basedata_5_flood-protections"/> | 163 <dc:call-macro name="basedata_5_flood-protections"/> |
170 <dc:call-macro name="basedata_0_wq"/> | |
171 <dc:call-macro name="basedata_1_additionals"/> | |
172 <dc:call-macro name="basedata_4_heightmarks-points"/> | |
173 <computed_discharge_curve> | 164 <computed_discharge_curve> |
174 <dc:call-macro name="mainvalues"/> | 165 <dc:call-macro name="mainvalues"/> |
175 </computed_discharge_curve> | 166 </computed_discharge_curve> |
176 </dc:when> | 167 </dc:when> |
177 <dc:when test="$out = 'duration_curve'"> | 168 <dc:when test="$out = 'duration_curve'"> |
187 <dc:call-macro name="basedata_2_fixations_relative_point"/> | 178 <dc:call-macro name="basedata_2_fixations_relative_point"/> |
188 <dc:call-macro name="basedata_4_heightmarks-points-relative_points"/> | 179 <dc:call-macro name="basedata_4_heightmarks-points-relative_points"/> |
189 <dc:call-macro name="basedata_5_flood-protections_relative_points"/> | 180 <dc:call-macro name="basedata_5_flood-protections_relative_points"/> |
190 </dc:when> | 181 </dc:when> |
191 <dc:when test="$out = 'fix_wq_curve'"> | 182 <dc:when test="$out = 'fix_wq_curve'"> |
192 <dc:call-macro name="historical_discharge_curve"/> | 183 <dc:call-macro name="discharge-curve-prototype"/> |
193 <dc:call-macro name="discharge_table_gauge"/> | |
194 <dc:call-macro name="basedata_0_wq"/> | |
195 <dc:call-macro name="basedata_1_additionals_marks"/> | 184 <dc:call-macro name="basedata_1_additionals_marks"/> |
196 <dc:call-macro name="basedata_2_fixations_wqkms"/> | 185 <dc:call-macro name="basedata_2_fixations_wqkms"/> |
197 <dc:call-macro name="basedata_3_officials"/> | 186 <dc:call-macro name="basedata_3_officials"/> |
198 <dc:call-macro name="basedata_4_heightmarks-points"/> | |
199 <dc:call-macro name="basedata_5_flood-protections_relative_points"/> | 187 <dc:call-macro name="basedata_5_flood-protections_relative_points"/> |
200 </dc:when> | 188 </dc:when> |
201 <dc:when test="$out = 'fix_longitudinal_section_curve'"> | 189 <dc:when test="$out = 'fix_longitudinal_section_curve'"> |
202 <dc:call-macro name="longitudinal-section-prototype"/> | 190 <dc:call-macro name="longitudinal-section-prototype"/> |
203 </dc:when> | 191 </dc:when> |
204 <dc:when test="$out = 'map'"> | 192 <dc:when test="$out = 'map'"> |
205 <dc:call-macro name="flood-map-complete"/> | 193 <dc:call-macro name="flood-map-complete"/> |
206 </dc:when> | 194 </dc:when> |
207 <dc:when test="$out = 'flow_velocity'"> | 195 <dc:when test="$out = 'flow_velocity'"> |
208 <dc:call-macro name="annotations_per_type"/> | 196 <dc:call-macro name="longitudinal-section-prototype"/> |
209 <dc:call-macro name="flow_velocity_measurements"/> | |
210 </dc:when> | 197 </dc:when> |
211 <dc:when test="$out = 'bed_longitudinal_section'"> | 198 <dc:when test="$out = 'bed_longitudinal_section'"> |
212 <dc:call-macro name="annotations_per_type"/> | 199 <dc:call-macro name="longitudinal-section-prototype"/> |
213 </dc:when> | 200 </dc:when> |
214 <dc:when test="$out = 'sedimentload_ls'"> | 201 <dc:when test="$out = 'sedimentload_ls'"> |
215 <dc:call-macro name="annotations_per_type"/> | 202 <dc:call-macro name="longitudinal-section-prototype"/> |
216 <dc:call-macro name="morph_width"/> | |
217 </dc:when> | 203 </dc:when> |
218 <dc:when test="$out = 'bedheight_middle'"> | 204 <dc:when test="$out = 'bedheight_middle'"> |
219 <dc:call-macro name="sounding-width"/> | 205 <dc:call-macro name="longitudinal-section-prototype"/> |
220 <dc:call-macro name="basedata_0"/> | |
221 <dc:call-macro name="basedata_1_additionals"/> | |
222 <dc:call-macro name="basedata_2_fixations"/> | |
223 <dc:call-macro name="basedata_3_officials"/> | |
224 <dc:call-macro name="annotations_per_type"/> | |
225 </dc:when> | 206 </dc:when> |
226 <dc:when test="$out = 'bed_difference_height_year'"> | 207 <dc:when test="$out = 'bed_difference_height_year'"> |
227 <dc:call-macro name="basedata_0"/> | 208 <dc:call-macro name="longitudinal-section-prototype"/> |
228 <dc:call-macro name="basedata_1_additionals"/> | |
229 <dc:call-macro name="basedata_2_fixations"/> | |
230 <dc:call-macro name="basedata_3_officials"/> | |
231 <dc:call-macro name="basedata_6_delta_w"/> | |
232 <dc:call-macro name="annotations_per_type"/> | |
233 <dc:call-macro name="morph_width"/> | |
234 </dc:when> | 209 </dc:when> |
235 <dc:when test="$out = 'bed_difference_year'"> | 210 <dc:when test="$out = 'bed_difference_year'"> |
236 <dc:call-macro name="basedata_0"/> | 211 <dc:call-macro name="longitudinal-section-prototype"/> |
237 <dc:call-macro name="basedata_1_additionals"/> | |
238 <dc:call-macro name="basedata_2_fixations"/> | |
239 <dc:call-macro name="basedata_3_officials"/> | |
240 <dc:call-macro name="basedata_6_delta_w"/> | |
241 <dc:call-macro name="annotations_per_type"/> | |
242 <dc:call-macro name="morph_width"/> | |
243 </dc:when> | 212 </dc:when> |
244 <dc:when test="$out = 'bed_difference_epoch'"> | 213 <dc:when test="$out = 'bed_difference_epoch'"> |
245 <dc:call-macro name="basedata_0"/> | 214 <dc:call-macro name="longitudinal-section-prototype"/> |
246 <dc:call-macro name="basedata_1_additionals"/> | |
247 <dc:call-macro name="basedata_2_fixations"/> | |
248 <dc:call-macro name="basedata_3_officials"/> | |
249 <dc:call-macro name="annotations_per_type"/> | |
250 <dc:call-macro name="morph_width"/> | |
251 </dc:when> | 215 </dc:when> |
252 <dc:when test="$out = 'floodmap'"> | 216 <dc:when test="$out = 'floodmap'"> |
253 <dc:choose> | 217 <dc:choose> |
254 <dc:when test="dc:contains($parameters, 'dem')"> | 218 <dc:when test="dc:contains($parameters, 'dem')"> |
255 <dc:call-macro name="flood-map-dem"/> | 219 <dc:call-macro name="flood-map-dem"/> |
280 <dc:call-macro name="flood-map-complete"/> | 244 <dc:call-macro name="flood-map-complete"/> |
281 </dc:otherwise> | 245 </dc:otherwise> |
282 </dc:choose> | 246 </dc:choose> |
283 </dc:when> | 247 </dc:when> |
284 <dc:when test="$out = 'computed_discharge_curve'"> | 248 <dc:when test="$out = 'computed_discharge_curve'"> |
285 <dc:call-macro name="historical_discharge_curve"/> | 249 <dc:call-macro name="discharge-curve-prototype"/> |
286 <dc:call-macro name="discharge_table_gauge"/> | |
287 <dc:call-macro name="basedata_2_fixations_wqkms"/> | |
288 <dc:call-macro name="basedata_5_flood-protections"/> | |
289 <dc:call-macro name="basedata_0_wq"/> | 250 <dc:call-macro name="basedata_0_wq"/> |
290 <dc:call-macro name="basedata_1_additionals_wq"/> | 251 <dc:call-macro name="basedata_1_additionals_wq"/> |
291 <dc:call-macro name="basedata_4_heightmarks-points"/> | 252 <dc:call-macro name="basedata_5_flood-protections"/> |
292 <computed_discharge_curve> | 253 <computed_discharge_curve> |
293 <dc:call-macro name="mainvalues"/> | 254 <dc:call-macro name="mainvalues"/> |
294 </computed_discharge_curve> | 255 </computed_discharge_curve> |
295 </dc:when> | 256 </dc:when> |
296 <dc:when test="$out = 'minfo-heights'"> | 257 <dc:when test="$out = 'minfo-heights'"> |
317 <dc:call-macro name="basedata_1_additionals"/> | 278 <dc:call-macro name="basedata_1_additionals"/> |
318 <dc:call-macro name="basedata_2_fixations"/> | 279 <dc:call-macro name="basedata_2_fixations"/> |
319 <dc:call-macro name="basedata_4_heightmarks-points"/> | 280 <dc:call-macro name="basedata_4_heightmarks-points"/> |
320 <dc:call-macro name="basedata_5_flood-protections"/> | 281 <dc:call-macro name="basedata_5_flood-protections"/> |
321 </dc:if> | 282 </dc:if> |
283 </dc:when> | |
284 <dc:when test="starts-with($out, 'sq_relation')"> | |
285 <dc:call-macro name="sqrelations"/> | |
322 </dc:when> | 286 </dc:when> |
323 </dc:choose> | 287 </dc:choose> |
324 </dc:iterate> | 288 </dc:iterate> |
325 </dc:otherwise> | 289 </dc:otherwise> |
326 </dc:choose> | 290 </dc:choose> |
345 </dc:choose> | 309 </dc:choose> |
346 </dc:iterate> | 310 </dc:iterate> |
347 </dc:when> | 311 </dc:when> |
348 <dc:otherwise> | 312 <dc:otherwise> |
349 <dc:comment> | 313 <dc:comment> |
350 Non Recommendations (user) | 314 Non Recommendations (user) - offer to load other projects |
351 </dc:comment> | 315 </dc:comment> |
352 <dc:iterate var="out" container="artifact-outs"> | 316 <dc:iterate var="out" container="artifact-outs"> |
353 <dc:choose> | 317 <dc:choose> |
354 <dc:when test="$out = 'longitudinal_section'"> | 318 <dc:when test="$out = 'longitudinal_section'"> |
355 <dc:call-macro name="longitudinal"/> | 319 <dc:call-macro name="longitudinal-section-user-prototype"/> |
356 <dc:call-macro name="differences"/> | |
357 <dc:call-macro name="bedheight_differences"/> | |
358 <dc:call-macro name="bedquality-bed"/> | |
359 <dc:call-macro name="bedquality-load"/> | |
360 <dc:call-macro name="flow-velocity"/> | |
361 <dc:call-macro name="sediment-load"/> | |
362 <dc:call-macro name="bedquality-density"/> | |
363 <dc:call-macro name="bedquality-porosity"/> | |
364 <dc:call-macro name="waterlevels-discharge"/> | |
365 <dc:call-macro name="differenceable-fix"/> | |
366 <dc:call-macro name="delta-wt-ls"/> | |
367 <dc:call-macro name="longitudinal-section"/> | |
368 </dc:when> | 320 </dc:when> |
369 <dc:when test="$out = 'discharge_longitudinal_section'"> | 321 <dc:when test="$out = 'discharge_longitudinal_section'"> |
370 <dc:call-macro name="longitudinal"/> | 322 <dc:call-macro name="longitudinal"/> |
371 <dc:call-macro name="differences"/> | 323 <dc:call-macro name="differences"/> |
372 </dc:when> | 324 </dc:when> |
373 <dc:when test="$out = 'w_differences'"> | 325 <dc:when test="$out = 'w_differences'"> |
374 <dc:call-macro name="longitudinal"/> | 326 <dc:call-macro name="longitudinal"/> |
375 <dc:call-macro name="differences"/> | 327 <dc:call-macro name="differences"/> |
376 <dc:call-macro name="bedheight_differences"/> | 328 <dc:call-macro name="bedheight_differences"/> |
329 </dc:when> | |
330 <dc:when test="$out = 'computed_discharge_curve'"> | |
331 <dc:call-macro name="computed-discharge-curve"/> | |
332 <dc:call-macro name="fix-wq-curve"/> | |
333 <dc:call-macro name="discharge-curve"/> | |
334 <dc:call-macro name="extreme-wq-curve"/> | |
377 </dc:when> | 335 </dc:when> |
378 <dc:when test="$out = 'fix_deltawt_curve'"> | 336 <dc:when test="$out = 'fix_deltawt_curve'"> |
379 <dc:call-macro name="delta-wt"/> | 337 <dc:call-macro name="delta-wt"/> |
380 </dc:when> | 338 </dc:when> |
381 <dc:when test="$out = 'reference_curve'"> | 339 <dc:when test="$out = 'reference_curve'"> |
578 </dc:macro> | 536 </dc:macro> |
579 | 537 |
580 <dc:macro name="longitudinal"> | 538 <dc:macro name="longitudinal"> |
581 <dc:filter expr="$out_name = 'longitudinal_section'"> | 539 <dc:filter expr="$out_name = 'longitudinal_section'"> |
582 <dc:if test="dc:has-result()"> | 540 <dc:if test="dc:has-result()"> |
583 <waterlevels> | 541 <waterlevels_ls> |
584 <dc:group expr="concat($river, ' ', dc:date-format('dd.MM.yyyy - H:mm:ss', $a_creation))"> | 542 <dc:group expr="concat($river, ' ', dc:date-format('dd.MM.yyyy - H:mm:ss', $a_creation), ' ', $collection_name)"> |
585 <dc:comment>Aheinecke: Why is this grouping different from the rest?</dc:comment> | 543 <dc:comment>Aheinecke: Why is this grouping different from the rest?</dc:comment> |
586 <longitudinal_section_columns description="{dc:group-key()}"> | 544 <longitudinal_section_columns description="{dc:group-key()}"> |
587 <dc:for-each> | 545 <dc:for-each> |
588 <dc:element name="${facet_name}"> | 546 <dc:element name="${facet_name}"> |
589 <dc:attribute name="description" value="${facet_description}"/> | 547 <dc:attribute name="description" value="${facet_description}"/> |
594 <dc:attribute name="out" value="longitudinal_section"/> | 552 <dc:attribute name="out" value="longitudinal_section"/> |
595 </dc:element> | 553 </dc:element> |
596 </dc:for-each> | 554 </dc:for-each> |
597 </longitudinal_section_columns> | 555 </longitudinal_section_columns> |
598 </dc:group> | 556 </dc:group> |
599 </waterlevels> | 557 </waterlevels_ls> |
600 </dc:if> | 558 </dc:if> |
601 </dc:filter> | 559 </dc:filter> |
602 </dc:macro> | 560 </dc:macro> |
603 | 561 |
604 <dc:macro name="longitudinal-section"> | 562 <dc:macro name="longitudinal-section-fix"> |
605 <dc:filter expr="$out_name = 'fix_longitudinal_section_curve' and | 563 <dc:filter expr="$out_name = 'fix_longitudinal_section_curve' and |
606 (starts-with($facet_name, 'fix_deviation_ls') or | 564 (starts-with($facet_name, 'fix_deviation_ls') or |
607 starts-with($facet_name, 'fix_sector_average_ls') or | 565 starts-with($facet_name, 'fix_sector_average_ls') or |
608 starts-with($facet_name, 'fix_analysis_events_ls') or | 566 starts-with($facet_name, 'fix_analysis_events_ls') or |
609 starts-with($facet_name, 'fix_reference_events_ls'))"> | 567 starts-with($facet_name, 'fix_reference_events_ls'))"> |
610 <dc:if test="dc:has-result()"> | 568 <dc:if test="dc:has-result()"> |
611 <waterlevels> | 569 <waterlevels_fix> |
612 <dc:group expr="concat($river, ' ', dc:date-format('dd.MM.yyyy - H:mm:ss', $a_creation), ' ', $collection_name)"> | 570 <dc:group expr="concat($river, ' ', dc:date-format('dd.MM.yyyy - H:mm:ss', $a_creation), ' ', $collection_name)"> |
613 <waterlevels description="{dc:group-key()}"> | 571 <waterlevels description="{dc:group-key()}"> |
614 <dc:for-each> | 572 <dc:for-each> |
615 <dc:element name="${facet_name}"> | 573 <dc:element name="${facet_name}"> |
616 <dc:attribute name="description" value="${facet_description}"/> | 574 <dc:attribute name="description" value="${facet_description}"/> |
621 <dc:attribute name="out" value="fix_longitudinal_section_curve"/> | 579 <dc:attribute name="out" value="fix_longitudinal_section_curve"/> |
622 </dc:element> | 580 </dc:element> |
623 </dc:for-each> | 581 </dc:for-each> |
624 </waterlevels> | 582 </waterlevels> |
625 </dc:group> | 583 </dc:group> |
626 </waterlevels> | 584 </waterlevels_fix> |
627 </dc:if> | 585 </dc:if> |
628 </dc:filter> | 586 </dc:filter> |
629 </dc:macro> | 587 </dc:macro> |
630 | 588 |
631 <dc:macro name="delta-wt"> | 589 <dc:macro name="delta-wt"> |
725 </dc:element> | 683 </dc:element> |
726 </dc:for-each> | 684 </dc:for-each> |
727 </waterlevels> | 685 </waterlevels> |
728 </dc:group> | 686 </dc:group> |
729 </waterlevels> | 687 </waterlevels> |
688 </dc:if> | |
689 </dc:filter> | |
690 </dc:macro> | |
691 | |
692 | |
693 <dc:macro name="discharge-curve"> | |
694 <dc:filter expr="$facet_name = 'discharge_curve.curve'"> | |
695 <dc:if test="dc:has-result()"> | |
696 <discharge_curves> | |
697 <dc:for-each> | |
698 <dc:element name="${facet_name}"> | |
699 <dc:attribute name="description" value="${facet_description}"/> | |
700 <dc:attribute name="factory" value="winfo"/> | |
701 <dc:attribute name="target_out" value="${out}"/> | |
702 <dc:attribute name="artifact-id" value="${a_gid}"/> | |
703 <dc:attribute name="ids" value="${a_gid}"/> | |
704 <dc:attribute name="out" value="discharge_curve"/> | |
705 </dc:element> | |
706 </dc:for-each> | |
707 </discharge_curves> | |
708 </dc:if> | |
709 </dc:filter> | |
710 </dc:macro> | |
711 | |
712 <dc:macro name="extreme-wq-curve"> | |
713 <dc:filter expr="$facet_name = 'extreme_wq_curve'"> | |
714 <dc:if test="dc:has-result()"> | |
715 <computed_discharge_curves> | |
716 <dc:for-each> | |
717 <dc:element name="${facet_name}"> | |
718 <dc:attribute name="description" value="${facet_description}"/> | |
719 <dc:attribute name="factory" value="fixanalysis"/> | |
720 <dc:attribute name="target_out" value="${out}"/> | |
721 <dc:attribute name="artifact-id" value="${a_gid}"/> | |
722 <dc:attribute name="ids" value="${a_gid}"/> | |
723 <dc:attribute name="out" value="computed_discharge_curve"/> | |
724 </dc:element> | |
725 </dc:for-each> | |
726 </computed_discharge_curves> | |
727 </dc:if> | |
728 </dc:filter> | |
729 </dc:macro> | |
730 | |
731 <dc:macro name="computed-discharge-curve"> | |
732 <dc:filter expr="$facet_name = 'computed_discharge_curve.q'"> | |
733 <dc:if test="dc:has-result()"> | |
734 <computed_discharge_curves> | |
735 <dc:for-each> | |
736 <dc:element name="${facet_name}"> | |
737 <dc:attribute name="description" value="${facet_description}"/> | |
738 <dc:attribute name="factory" value="winfo"/> | |
739 <dc:attribute name="target_out" value="${out}"/> | |
740 <dc:attribute name="artifact-id" value="${a_gid}"/> | |
741 <dc:attribute name="ids" value="${a_gid}"/> | |
742 <dc:attribute name="out" value="computed_discharge_curve"/> | |
743 </dc:element> | |
744 </dc:for-each> | |
745 </computed_discharge_curves> | |
730 </dc:if> | 746 </dc:if> |
731 </dc:filter> | 747 </dc:filter> |
732 </dc:macro> | 748 </dc:macro> |
733 | 749 |
734 <dc:macro name="duration-curve"> | 750 <dc:macro name="duration-curve"> |
1047 </dc:macro> | 1063 </dc:macro> |
1048 | 1064 |
1049 <dc:macro name="waterlevels-discharge"> | 1065 <dc:macro name="waterlevels-discharge"> |
1050 <dc:filter expr="$out_name = 'discharge_longitudinal_section' and $facet_name = 'discharge_longitudinal_section.w'"> | 1066 <dc:filter expr="$out_name = 'discharge_longitudinal_section' and $facet_name = 'discharge_longitudinal_section.w'"> |
1051 <dc:if test="dc:has-result()"> | 1067 <dc:if test="dc:has-result()"> |
1052 <waterlevels-discharge> | 1068 <waterlevels_discharge> |
1053 <dc:group expr="concat($oid, ' ', $river, ' ', $a_gid, ' ', dc:date-format('dd.MM.yyyy - H:mm:ss', $a_creation), ' ', $collection_name)"> | 1069 <dc:group expr="concat($river, ' ', dc:date-format('dd.MM.yyyy - H:mm:ss', $a_creation), ' ', $collection_name)"> |
1054 <discharge description="{dc:group-key()}"> | 1070 <discharge description="{dc:group-key()}"> |
1055 <dc:for-each> | 1071 <dc:for-each> |
1056 <dc:element name="${facet_name}"> | 1072 <dc:element name="${facet_name}"> |
1057 <dc:attribute name="factory" value="winfo"/> | 1073 <dc:attribute name="factory" value="winfo"/> |
1058 <dc:attribute name="target_out" value="${out}"/> | 1074 <dc:attribute name="target_out" value="${out}"/> |
1062 <dc:attribute name="out" value="longitudinal_section"/> | 1078 <dc:attribute name="out" value="longitudinal_section"/> |
1063 </dc:element> | 1079 </dc:element> |
1064 </dc:for-each> | 1080 </dc:for-each> |
1065 </discharge> | 1081 </discharge> |
1066 </dc:group> | 1082 </dc:group> |
1067 </waterlevels-discharge> | 1083 </waterlevels_discharge> |
1068 </dc:if> | 1084 </dc:if> |
1069 </dc:filter> | 1085 </dc:filter> |
1070 </dc:macro> | 1086 </dc:macro> |
1071 <!-- Macros to load system data --> | 1087 <!-- Macros to load system data --> |
1072 | 1088 |
1210 </heightmarks> | 1226 </heightmarks> |
1211 </dc:if> | 1227 </dc:if> |
1212 </dc:filter> | 1228 </dc:filter> |
1213 </dc:macro> | 1229 </dc:macro> |
1214 | 1230 |
1231 <dc:macro name="discharge-curve-prototype"> | |
1232 <dc:call-macro name="discharge_table_gauge"/> | |
1233 <dc:call-macro name="historical_discharge_curve"/> | |
1234 <dc:call-macro name="basedata_0_wq"/> | |
1235 <dc:call-macro name="basedata_2_fixations_wqkms"/> | |
1236 <dc:call-macro name="basedata_4_heightmarks-points"/> | |
1237 </dc:macro> | |
1238 | |
1215 <dc:macro name="longitudinal-section-prototype"> | 1239 <dc:macro name="longitudinal-section-prototype"> |
1216 <dc:call-macro name="basedata_0"/> | 1240 <dc:call-macro name="basedata_0"/> |
1217 <dc:call-macro name="basedata_1_additionals"/> | 1241 <dc:call-macro name="basedata_1_additionals"/> |
1218 <dc:call-macro name="basedata_2_fixations"/> | 1242 <dc:call-macro name="basedata_2_fixations"/> |
1219 <dc:call-macro name="basedata_4_heightmarks-points"/> | 1243 <dc:call-macro name="basedata_4_heightmarks-points"/> |
1220 <dc:call-macro name="basedata_3_officials"/> | 1244 <dc:call-macro name="basedata_3_officials"/> |
1221 <dc:call-macro name="basedata_5_flood-protections"/> | 1245 <dc:call-macro name="basedata_5_flood-protections"/> |
1222 <dc:call-macro name="annotations_per_type"/> | 1246 <dc:call-macro name="annotations_per_type"/> |
1223 <minfo> | 1247 <minfo> |
1224 <dc:call-macro name="basedata_6_delta_w"/> | 1248 <fixanalysis> |
1225 <dc:call-macro name="basedata_7_waterlevels"/> | 1249 <dc:call-macro name="basedata_6_delta_w"/> |
1250 <dc:call-macro name="basedata_7_waterlevels"/> | |
1251 </fixanalysis> | |
1252 <dc:call-macro name="yields"/> | |
1253 <dc:call-macro name="densities"/> | |
1226 <dc:call-macro name="minfo-heights"/> | 1254 <dc:call-macro name="minfo-heights"/> |
1227 <dc:call-macro name="sounding-width"/> | 1255 <dc:call-macro name="sounding-width"/> |
1228 <dc:call-macro name="yields"/> | 1256 <dc:call-macro name="morph_width"/> |
1257 <dc:call-macro name="flow_velocity_measurements"/> | |
1258 <dc:call-macro name="flow_velocity_models"/> | |
1229 </minfo> | 1259 </minfo> |
1230 </dc:macro> | 1260 </dc:macro> |
1231 | 1261 |
1262 <dc:macro name="longitudinal-section-user-prototype"> | |
1263 <dc:call-macro name="longitudinal"/> | |
1264 <dc:call-macro name="differences"/> | |
1265 <dc:call-macro name="bedheight_differences"/> | |
1266 <dc:call-macro name="bedquality-bed"/> | |
1267 <dc:call-macro name="bedquality-load"/> | |
1268 <dc:call-macro name="flow-velocity"/> | |
1269 <dc:call-macro name="sediment-load"/> | |
1270 <dc:call-macro name="bedquality-density"/> | |
1271 <dc:call-macro name="bedquality-porosity"/> | |
1272 <dc:call-macro name="waterlevels-discharge"/> | |
1273 <dc:call-macro name="differenceable-fix"/><!-- TODO double entries? --> | |
1274 <dc:call-macro name="delta-wt-ls"/> | |
1275 <dc:call-macro name="longitudinal-section-fix"/> | |
1276 <dc:call-macro name="discharge-curve"/> | |
1277 </dc:macro> | |
1278 | |
1279 | |
1280 <dc:macro name="densities"> | |
1281 <densities> | |
1282 <dc:context> | |
1283 <dc:statement> | |
1284 SELECT DISTINCT | |
1285 sd.id AS sdid, | |
1286 sd.description AS description, | |
1287 d.lower AS depth_lower, | |
1288 d.upper AS depth_upper | |
1289 FROM sediment_density sd | |
1290 JOIN rivers r ON sd.river_id = r.id | |
1291 JOIN depths d ON sd.depth_id = d.id | |
1292 WHERE r.id = ${river_id} | |
1293 </dc:statement> | |
1294 <dc:if test="dc:has-result()"> | |
1295 <dc:for-each> | |
1296 <density description="{$description}" | |
1297 factory="sedimentdensity" | |
1298 target_out="{$out}" | |
1299 info="infome" | |
1300 ids="{$sdid}" /> | |
1301 </dc:for-each> | |
1302 </dc:if> | |
1303 </dc:context> | |
1304 </densities> | |
1305 </dc:macro> | |
1306 | |
1307 <dc:macro name="one-load"> | |
1308 <dc:for-each> | |
1309 <dc:variable name="syear" type="string" expr="dc:date-format('yyyy', $year)"/> | |
1310 <year description="{$syear}" | |
1311 factory="sedimentyield" | |
1312 target_out="{$out}" | |
1313 info="{$description}" | |
1314 ids="{$syid}" /> | |
1315 </dc:for-each> | |
1316 </dc:macro> | |
1317 | |
1318 <dc:macro name="epoch-load"> | |
1319 <dc:for-each> | |
1320 <dc:variable name="syear" type="string" expr="dc:date-format('yyyy', $startyear)"/> | |
1321 <dc:variable name="eyear" type="string" expr="dc:date-format('yyyy', $endyear)"/> | |
1322 <year description="{$syear}-{$eyear}" | |
1323 factory="sedimentyield" | |
1324 target_out="{$out}" | |
1325 info="{$description}" | |
1326 ids="{$syid}" /> | |
1327 </dc:for-each> | |
1328 </dc:macro> | |
1329 | |
1330 <dc:macro name="loads"> | |
1331 <dc:if test="dc:has-result()"> | |
1332 <dc:filter expr="$fraction='sand'"> | |
1333 <dc:if test="dc:has-result()"> | |
1334 <sand> | |
1335 <dc:macro-body/> | |
1336 </sand> | |
1337 </dc:if> | |
1338 </dc:filter> | |
1339 <dc:filter expr="$fraction='fine_middle'"> | |
1340 <dc:if test="dc:has-result()"> | |
1341 <fine_middle> | |
1342 <dc:macro-body/> | |
1343 </fine_middle> | |
1344 </dc:if> | |
1345 </dc:filter> | |
1346 <dc:filter expr="$fraction='coarse'"> | |
1347 <dc:if test="dc:has-result()"> | |
1348 <coarse> | |
1349 <dc:macro-body/> | |
1350 </coarse> | |
1351 </dc:if> | |
1352 </dc:filter> | |
1353 <dc:filter expr="$fraction='suspended_sediment'"> | |
1354 <dc:if test="dc:has-result()"> | |
1355 <susp_sediment> | |
1356 <dc:macro-body/> | |
1357 </susp_sediment> | |
1358 </dc:if> | |
1359 </dc:filter> | |
1360 <dc:filter expr="$fraction='susp_sand'"> | |
1361 <dc:if test="dc:has-result()"> | |
1362 <susp_sand> | |
1363 <dc:macro-body/> | |
1364 </susp_sand> | |
1365 </dc:if> | |
1366 </dc:filter> | |
1367 <dc:filter expr="$fraction='susp_sand_bed'"> | |
1368 <dc:if test="dc:has-result()"> | |
1369 <susp_sand_bed> | |
1370 <dc:macro-body/> | |
1371 </susp_sand_bed> | |
1372 </dc:if> | |
1373 </dc:filter> | |
1374 </dc:if> | |
1375 </dc:macro> | |
1376 | |
1232 <dc:macro name="yields"> | 1377 <dc:macro name="yields"> |
1233 <yields> | 1378 <yields> |
1234 <years> | 1379 <years> |
1235 <dc:context> | 1380 <dc:context> |
1236 <dc:statement> | 1381 <dc:statement> |
1237 SELECT DISTINCT | 1382 SELECT DISTINCT |
1238 sy.id AS syid, | 1383 sy.id AS syid, |
1239 sy.description AS description, | 1384 sy.description AS description, |
1240 ti.start_time AS year | 1385 ti.start_time AS year, |
1386 gf.name AS fraction | |
1241 FROM sediment_yield sy | 1387 FROM sediment_yield sy |
1242 JOIN rivers r ON sy.river_id = r.id | 1388 JOIN rivers r ON sy.river_id = r.id |
1243 JOIN sediment_yield_values syv ON sy.id = syv.sediment_yield_id | 1389 JOIN sediment_yield_values syv ON sy.id = syv.sediment_yield_id |
1244 JOIN time_intervals ti ON sy.time_interval_id = ti.id | 1390 JOIN time_intervals ti ON sy.time_interval_id = ti.id |
1245 WHERE r.name = 'Elbe' | 1391 JOIN grain_fraction gf ON gf.id = sy.grain_fraction_id |
1392 WHERE r.id = ${river_id} | |
1246 AND ti.stop_time IS NULL | 1393 AND ti.stop_time IS NULL |
1247 AND syv.station BETWEEN ${fromkm} AND ${tokm} | 1394 AND syv.station BETWEEN ${fromkm} AND ${tokm} |
1395 ORDER BY fraction | |
1248 </dc:statement> | 1396 </dc:statement> |
1249 <dc:if test="dc:has-result()"> | 1397 <dc:call-macro name="loads"> |
1250 <dc:for-each> | 1398 <dc:call-macro name="one-load"/> |
1251 <year description="{$description}" | 1399 </dc:call-macro> |
1252 factory="sedimentyield" | |
1253 target_out="{$out}" | |
1254 info="infome" | |
1255 ids="{$syid}" /> | |
1256 </dc:for-each> | |
1257 </dc:if> | |
1258 </dc:context> | 1400 </dc:context> |
1259 </years> | 1401 </years> |
1260 <epochs> | 1402 <epochs> |
1261 <dc:context> | 1403 <dc:context> |
1262 <dc:statement> | 1404 <dc:statement> |
1263 SELECT DISTINCT | 1405 SELECT DISTINCT |
1264 sy.id AS syid, | 1406 sy.id AS syid, |
1265 sy.description AS description, | 1407 sy.description AS description, |
1266 ti.start_time AS year | 1408 ti.start_time AS startyear, |
1409 ti.stop_time AS endyear, | |
1410 gf.name AS fraction | |
1267 FROM sediment_yield sy | 1411 FROM sediment_yield sy |
1268 JOIN rivers r ON sy.river_id = r.id | 1412 JOIN rivers r ON sy.river_id = r.id |
1269 JOIN sediment_yield_values syv ON sy.id = syv.sediment_yield_id | 1413 JOIN sediment_yield_values syv ON sy.id = syv.sediment_yield_id |
1270 JOIN time_intervals ti ON sy.time_interval_id = ti.id | 1414 JOIN time_intervals ti ON sy.time_interval_id = ti.id |
1271 WHERE r.name = 'Elbe' | 1415 JOIN grain_fraction gf ON gf.id = sy.grain_fraction_id |
1416 WHERE r.id = ${river_id} | |
1272 AND ti.stop_time IS NOT NULL | 1417 AND ti.stop_time IS NOT NULL |
1273 AND syv.station BETWEEN ${fromkm} AND ${tokm} | 1418 AND syv.station BETWEEN ${fromkm} AND ${tokm} |
1419 ORDER BY fraction | |
1274 </dc:statement> | 1420 </dc:statement> |
1275 <dc:if test="dc:has-result()"> | 1421 <dc:call-macro name="loads"> |
1276 <dc:for-each> | 1422 <dc:call-macro name="epoch-load"/> |
1277 <epoch description="{$description}" | 1423 </dc:call-macro> |
1278 factory="sedimentyield" | |
1279 target_out="{$out}" | |
1280 info="infome" | |
1281 ids="{$syid}" /> | |
1282 </dc:for-each> | |
1283 </dc:if> | |
1284 </dc:context> | 1424 </dc:context> |
1285 </epochs> | 1425 </epochs> |
1286 | |
1287 </yields> | 1426 </yields> |
1288 </dc:macro> | 1427 </dc:macro> |
1289 | 1428 |
1290 | 1429 |
1291 <dc:macro name="basedata_5_flood-protections"> | 1430 <dc:macro name="basedata_5_flood-protections"> |
1486 | 1625 |
1487 <dc:macro name="bed-heights-single"> | 1626 <dc:macro name="bed-heights-single"> |
1488 <single> | 1627 <single> |
1489 <dc:context> | 1628 <dc:context> |
1490 <dc:statement> | 1629 <dc:statement> |
1491 SELECT id AS bedh_id, | 1630 SELECT bhs.id AS bedh_id, |
1492 year AS bedh_year, | 1631 bhs.year AS bedh_year, |
1493 description AS bedh_descr | 1632 bhs.description AS bedh_descr, |
1494 FROM bed_height_single | 1633 bht.name AS type_name |
1495 WHERE river_id = ${river_id} | 1634 FROM bed_height_single bhs |
1496 AND lower(description) NOT LIKE '%epoch%' | 1635 JOIN bed_height_type bht ON bht.id = bhs.type_id |
1636 WHERE bhs.river_id = ${river_id} | |
1637 AND lower(bhs.description) NOT LIKE '%epoch%' | |
1497 </dc:statement> | 1638 </dc:statement> |
1498 <dc:for-each> | 1639 <dc:if test="dc:has-result()"> |
1499 <height factory="bedheight" target_out="{$out}" | 1640 <dc:group expr="$bedh_year"> |
1500 ids="bedheight-single-{$bedh_id}-{$bedh_year}" | 1641 <cross-sections name="{dc:group-key()}"> |
1501 description="{$bedh_descr}"/> | 1642 <dc:for-each> |
1502 </dc:for-each> | 1643 <height factory="bedheight" |
1644 target_out="{$out}" | |
1645 ids="bedheight-single-{$bedh_id}-{$bedh_year}" | |
1646 info="{$type_name}" | |
1647 description="{$bedh_descr}"/> | |
1648 </dc:for-each> | |
1649 </cross-sections> | |
1650 </dc:group> | |
1651 </dc:if> | |
1503 </dc:context> | 1652 </dc:context> |
1504 </single> | 1653 </single> |
1505 </dc:macro> | 1654 </dc:macro> |
1506 | 1655 |
1507 <dc:macro name="bed-heights-epoch"> | 1656 <dc:macro name="bed-heights-epoch"> |
1521 description="{$bedh_descr}"/> | 1670 description="{$bedh_descr}"/> |
1522 </dc:for-each> | 1671 </dc:for-each> |
1523 </dc:context> | 1672 </dc:context> |
1524 </epoch> | 1673 </epoch> |
1525 </dc:macro> | 1674 </dc:macro> |
1675 | |
1676 <dc:macro name="flow_velocity_models"> | |
1677 <dc:context> | |
1678 <dc:statement> | |
1679 SELECT fvm.id AS fvmid, | |
1680 fvm.description AS fvmd | |
1681 FROM flow_velocity_model fvm | |
1682 JOIN discharge_zone dz ON dz.id = fvm.discharge_zone_id | |
1683 WHERE dz.river_id = ${river_id} | |
1684 </dc:statement> | |
1685 <dc:if test="dc:has-result()"> | |
1686 <flowvelocitymodel> | |
1687 <dc:for-each> | |
1688 <measurement_value name="{$fvmd}" | |
1689 ids="{$fvmid}" | |
1690 factory="flowvelocitymodel" target_out="{$out}" /> | |
1691 </dc:for-each> | |
1692 </flowvelocitymodel> | |
1693 </dc:if> | |
1694 </dc:context> | |
1695 </dc:macro> | |
1696 | |
1526 | 1697 |
1527 <dc:macro name="flow_velocity_measurements"> | 1698 <dc:macro name="flow_velocity_measurements"> |
1528 <dc:context> | 1699 <dc:context> |
1529 <dc:statement> | 1700 <dc:statement> |
1530 SELECT id AS fvmid, | 1701 SELECT id AS fvmid, |
1605 </soundings_width> | 1776 </soundings_width> |
1606 </dc:if> | 1777 </dc:if> |
1607 </dc:context> | 1778 </dc:context> |
1608 </dc:macro> | 1779 </dc:macro> |
1609 | 1780 |
1781 <dc:macro name="sqrelations"> | |
1782 <dc:context> | |
1783 <dc:statement> | |
1784 SELECT sq.description AS description, | |
1785 ti.start_time AS start_time, | |
1786 ti.stop_time AS stop_time, | |
1787 ms.name AS station_name, | |
1788 lower(sqv.parameter) AS parameter, | |
1789 sqv.id AS sqvid | |
1790 FROM sq_relation sq | |
1791 JOIN time_intervals ti ON ti.id = sq.time_interval_id | |
1792 JOIN rivers r ON r.id = sq.river_id | |
1793 JOIN sq_relation_value sqv ON sqv.sq_relation_id = sq.id | |
1794 JOIN measurement_station ms ON sqv.measurement_station_id = ms.id | |
1795 WHERE r.id = ${river_id} | |
1796 </dc:statement> | |
1797 <dc:if test="dc:has-result()"> | |
1798 <sq_relations> | |
1799 <dc:filter expr="$out = concat('sq_relation_', $parameter)"> | |
1800 <dc:group expr="$station_name"> | |
1801 <station description="{dc:group-key()}"> | |
1802 <dc:for-each> | |
1803 <dc:variable name="combined_desc" expr="concat(dc:date-format('yyyy', $start_time), ' bis ', dc:date-format('yyyy', $stop_time))"/> | |
1804 <sqvalue factory="staticsqrelation" target_out="{$out}" | |
1805 ids="{$sqvid};{$station_name}: {$combined_desc}" description="{$combined_desc}"/> | |
1806 </dc:for-each> | |
1807 </station> | |
1808 </dc:group> | |
1809 </dc:filter> | |
1810 </sq_relations> | |
1811 </dc:if> | |
1812 </dc:context> | |
1813 </dc:macro> | |
1814 | |
1610 <dc:macro name="basedata_0_macro"> | 1815 <dc:macro name="basedata_0_macro"> |
1611 <dc:filter expr="$kind = 0"> | 1816 <dc:filter expr="$kind = 0"> |
1612 <dc:if test="dc:has-result()"> | 1817 <dc:if test="dc:has-result()"> |
1613 <basedata> | 1818 <basedata> |
1614 <dc:group expr="$wst_description"> | 1819 <dc:group expr="$wst_description"> |
1669 <dc:macro name="basedata_1_additionals_marks"> | 1874 <dc:macro name="basedata_1_additionals_marks"> |
1670 <dc:call-macro name="basedata_1_additionals_macro"> | 1875 <dc:call-macro name="basedata_1_additionals_macro"> |
1671 <column name="{$wst_column_name}" | 1876 <column name="{$wst_column_name}" |
1672 ids="additionalsmarks-wstv-{$wst_column_position}-{$wst_id}" | 1877 ids="additionalsmarks-wstv-{$wst_column_position}-{$wst_id}" |
1673 factory="staticwkms" target_out="{$out}" | 1878 factory="staticwkms" target_out="{$out}" |
1879 info="{$info} [km {$deffrom} - {$defto}]"/> | |
1880 </dc:call-macro> | |
1881 </dc:macro> | |
1882 | |
1883 <dc:macro name="basedata_1_additionals_wq"> | |
1884 <dc:call-macro name="basedata_1_additionals_macro"> | |
1885 <column name="{$wst_column_name}" | |
1886 ids="base_data-wstv-{$wst_column_position}-{$wst_id}" | |
1887 factory="wqinterpol" target_out="{$out}" | |
1674 info="{$info} [km {$deffrom} - {$defto}]"/> | 1888 info="{$info} [km {$deffrom} - {$defto}]"/> |
1675 </dc:call-macro> | 1889 </dc:call-macro> |
1676 </dc:macro> | 1890 </dc:macro> |
1677 | 1891 |
1678 <!-- Floodmap part --> | 1892 <!-- Floodmap part --> |
1705 <bfg_model> | 1919 <bfg_model> |
1706 <dc:call-macro name="flood-map-hydr-boundaries-poly"/> | 1920 <dc:call-macro name="flood-map-hydr-boundaries-poly"/> |
1707 <dc:call-macro name="flood-map-hydr-boundaries-lines"/> | 1921 <dc:call-macro name="flood-map-hydr-boundaries-lines"/> |
1708 </bfg_model> | 1922 </bfg_model> |
1709 <dc:call-macro name="flood-map-hydr-boundaries-state"/> | 1923 <dc:call-macro name="flood-map-hydr-boundaries-state"/> |
1710 </dc:macro> | |
1711 | |
1712 <dc:macro name="flood-map-recommended"> | |
1713 <dc:comment> | |
1714 FIXME: Following two macros look identical to me. | |
1715 </dc:comment> | |
1716 <kilometrage> | |
1717 <riveraxis factory="riveraxis" ids="{$river_id}" target_out="{$out}" /> | |
1718 </kilometrage> | |
1719 <rastermap> | |
1720 <background factory="wmsbackground" ids="{$river_id}" target_out="{$out}" /> | |
1721 </rastermap> | |
1722 </dc:macro> | 1924 </dc:macro> |
1723 | 1925 |
1724 <dc:macro name="flood-map-dem"> | 1926 <dc:macro name="flood-map-dem"> |
1725 <dems> | 1927 <dems> |
1726 <dc:context> | 1928 <dc:context> |