Mercurial > dive4elements > river
comparison artifacts/doc/conf/meta-data.xml @ 6791:dd5355775ce1 longitudinal-symmetry
merge changes from default into longitudinal-symmetrie branch and make it build
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Wed, 07 Aug 2013 18:53:15 +0200 |
parents | 1a7f5d09b9d8 0db5f3642335 |
children | 962f6b805b48 |
comparison
equal
deleted
inserted
replaced
6518:1a7f5d09b9d8 | 6791:dd5355775ce1 |
---|---|
34 <dc:call-macro name="generate-user-content"/> | 34 <dc:call-macro name="generate-user-content"/> |
35 </old_calculations> | 35 </old_calculations> |
36 </dc:macro> | 36 </dc:macro> |
37 | 37 |
38 <dc:macro name="generate-system-content"> | 38 <dc:macro name="generate-system-content"> |
39 <dc:message>Generate system content with variables: {dc:dump-variables()}</dc:message> | |
39 <dc:call-macro name="artifact-range"> | 40 <dc:call-macro name="artifact-range"> |
40 <dc:call-macro name="km-filtered-wsts"> | 41 <dc:call-macro name="km-filtered-wsts"> |
41 <dc:choose> | 42 <dc:choose> |
42 <dc:when test="dc:contains($parameters, 'recommended')"> | 43 <dc:when test="dc:contains($parameters, 'recommended')"> |
43 <dc:comment> | 44 <dc:comment> |
44 Recommendations (client shall load immediately). | 45 Recommendations (client shall load immediately). |
45 </dc:comment> | 46 </dc:comment> |
46 <dc:iterate var="out" container="artifact-outs"> | 47 <dc:iterate var="out" container="artifact-outs"> |
48 <dc:message>Rec out iteration for: {$out}</dc:message> | |
47 <dc:choose> | 49 <dc:choose> |
48 <dc:when test="dc:contains($out, 'longitudinal_section')"> | 50 <dc:when test="dc:contains($out, 'longitudinal_section')"> |
49 <dc:call-macro name="annotations"/> | 51 <dc:call-macro name="annotations"/> |
50 <dc:call-macro name="officiallines_user"/> | 52 <dc:call-macro name="officiallines_user"/> |
51 </dc:when> | 53 </dc:when> |
80 <dc:call-macro name="officiallines_user"/> | 82 <dc:call-macro name="officiallines_user"/> |
81 </dc:when> | 83 </dc:when> |
82 <dc:when test="$out = 'fix_longitudinal_section_curve'"> | 84 <dc:when test="$out = 'fix_longitudinal_section_curve'"> |
83 <dc:call-macro name="annotations"/> | 85 <dc:call-macro name="annotations"/> |
84 </dc:when> | 86 </dc:when> |
87 <dc:when test="$out = 'bedheight_middle'"> | |
88 <dc:call-macro name="annotations"/> | |
89 </dc:when> | |
85 <dc:when test="$out = 'bed_difference_epoch'"> | 90 <dc:when test="$out = 'bed_difference_epoch'"> |
86 <dc:call-macro name="annotations"/> | 91 <dc:call-macro name="annotations"/> |
92 <dc:call-macro name="basedata_6_delta_w"/> | |
87 </dc:when> | 93 </dc:when> |
88 <dc:when test="$out = 'bed_difference_year'"> | 94 <dc:when test="$out = 'bed_difference_year'"> |
89 <dc:call-macro name="annotations"/> | 95 <dc:call-macro name="annotations"/> |
96 <dc:call-macro name="basedata_6_delta_w"/> | |
90 </dc:when> | 97 </dc:when> |
91 <dc:when test="$out = 'bed_difference_height_year'"> | 98 <dc:when test="$out = 'bed_difference_height_year'"> |
92 <dc:call-macro name="annotations"/> | 99 <dc:call-macro name="annotations"/> |
100 <dc:call-macro name="basedata_6_delta_w"/> | |
93 </dc:when> | 101 </dc:when> |
94 <dc:when test="$out = 'floodmap'"> | 102 <dc:when test="$out = 'floodmap'"> |
95 <dc:call-macro name="flood-map-recommended"/> | 103 <dc:call-macro name="flood-map-recommended"/> |
96 </dc:when> | 104 </dc:when> |
97 <dc:when test="$out = 'floodmap-hws'"> | 105 <dc:when test="$out = 'floodmap-hws'"> |
111 <dc:otherwise> | 119 <dc:otherwise> |
112 <dc:comment> | 120 <dc:comment> |
113 Non - Recommendations. | 121 Non - Recommendations. |
114 </dc:comment> | 122 </dc:comment> |
115 <dc:iterate var="out" container="artifact-outs"> | 123 <dc:iterate var="out" container="artifact-outs"> |
124 <dc:message>Non Rec out iteration for: {$out}</dc:message> | |
116 <dc:choose> | 125 <dc:choose> |
117 <dc:when test="$out = 'cross_section'"> | 126 <dc:when test="$out = 'cross_section'"> |
118 <dc:call-macro name="basedata_0"/> | 127 <dc:call-macro name="basedata_0"/> |
119 <dc:call-macro name="basedata_1_additionals"/> | 128 <dc:call-macro name="basedata_1_additionals"/> |
120 <dc:call-macro name="basedata_2_fixations"/> | 129 <dc:call-macro name="basedata_2_fixations"/> |
127 <dc:when test="$out = 'longitudinal_section'"> | 136 <dc:when test="$out = 'longitudinal_section'"> |
128 <dc:call-macro name="longitudinal-section-prototype"/> | 137 <dc:call-macro name="longitudinal-section-prototype"/> |
129 </dc:when> | 138 </dc:when> |
130 <dc:when test="$out = 'w_differences_longitudinal_section'"> | 139 <dc:when test="$out = 'w_differences_longitudinal_section'"> |
131 <dc:call-macro name="longitudinal-section-prototype"/> | 140 <dc:call-macro name="longitudinal-section-prototype"/> |
141 <dc:call-macro name="bedheight_differences"/> | |
132 </dc:when> | 142 </dc:when> |
133 <dc:when test="$out = 'discharge_longitudinal_section'"> | 143 <dc:when test="$out = 'discharge_longitudinal_section'"> |
134 <dc:call-macro name="longitudinal-section-prototype"/> | 144 <dc:call-macro name="longitudinal-section-prototype"/> |
135 </dc:when> | 145 </dc:when> |
146 <dc:when test="$out = 'historical_discharge_wq'"> | |
147 <dc:call-macro name="historical_discharge_curve"/> | |
148 <dc:call-macro name="discharge_table_gauge"/> | |
149 <dc:call-macro name="basedata_2_fixations_wqkms"/> | |
150 <dc:call-macro name="basedata_5_flood-protections"/> | |
151 <dc:call-macro name="basedata_0"/> | |
152 <dc:call-macro name="basedata_1_additionals"/> | |
153 <dc:call-macro name="basedata_4_heightmarks-points"/> | |
154 <computed_discharge_curve> | |
155 <dc:call-macro name="mainvalues"/> | |
156 </computed_discharge_curve> | |
157 </dc:when> | |
136 <dc:when test="$out = 'discharge_curve'"> | 158 <dc:when test="$out = 'discharge_curve'"> |
137 <dc:call-macro name="mainvalues"/> | 159 <dc:call-macro name="historical_discharge_curve"/> |
160 <dc:call-macro name="discharge_table_gauge"/> | |
161 <dc:call-macro name="basedata_2_fixations_wqkms"/> | |
162 <dc:call-macro name="basedata_5_flood-protections"/> | |
163 <dc:call-macro name="basedata_0"/> | |
164 <dc:call-macro name="basedata_1_additionals"/> | |
165 <dc:call-macro name="basedata_4_heightmarks-points"/> | |
166 <computed_discharge_curve> | |
167 <dc:call-macro name="mainvalues"/> | |
168 </computed_discharge_curve> | |
138 </dc:when> | 169 </dc:when> |
139 <dc:when test="$out = 'duration_curve'"> | 170 <dc:when test="$out = 'duration_curve'"> |
140 <dc:call-macro name="mainvalues"/> | 171 <dc:call-macro name="mainvalues"/> |
141 <dc:call-macro name="basedata_2_fixations_relative_point"/> | 172 <dc:call-macro name="basedata_2_fixations_relative_point"/> |
142 <dc:call-macro name="basedata_4_heightmarks-points-relative_points"/> | 173 <dc:call-macro name="basedata_4_heightmarks-points-relative_points"/> |
149 <dc:call-macro name="basedata_2_fixations_relative_point"/> | 180 <dc:call-macro name="basedata_2_fixations_relative_point"/> |
150 <dc:call-macro name="basedata_4_heightmarks-points-relative_points"/> | 181 <dc:call-macro name="basedata_4_heightmarks-points-relative_points"/> |
151 <dc:call-macro name="basedata_5_flood-protections_relative_points"/> | 182 <dc:call-macro name="basedata_5_flood-protections_relative_points"/> |
152 </dc:when> | 183 </dc:when> |
153 <dc:when test="$out = 'fix_wq_curve'"> | 184 <dc:when test="$out = 'fix_wq_curve'"> |
185 <dc:call-macro name="historical_discharge_curve"/> | |
186 <dc:call-macro name="discharge_table_gauge"/> | |
154 <dc:call-macro name="basedata_0_wq"/> | 187 <dc:call-macro name="basedata_0_wq"/> |
155 <dc:call-macro name="basedata_1_additionals_marks"/> | 188 <dc:call-macro name="basedata_1_additionals_marks"/> |
156 <dc:call-macro name="basedata_2_fixations_wqkms"/> | 189 <dc:call-macro name="basedata_2_fixations_wqkms"/> |
157 <dc:call-macro name="basedata_3_officials"/> | 190 <dc:call-macro name="basedata_3_officials"/> |
158 <dc:call-macro name="basedata_4_heightmarks-points"/> | 191 <dc:call-macro name="basedata_4_heightmarks-points"/> |
159 <dc:call-macro name="basedata_5_flood-protections_relative_points"/> | 192 <dc:call-macro name="basedata_5_flood-protections_relative_points"/> |
160 <dc:call-macro name="discharge_table_gauge"/> | |
161 <dc:call-macro name="discharge_fix_wq"/> | |
162 </dc:when> | 193 </dc:when> |
163 <dc:when test="$out = 'fix_longitudinal_section_curve'"> | 194 <dc:when test="$out = 'fix_longitudinal_section_curve'"> |
164 <dc:call-macro name="longitudinal-section-prototype"/> | 195 <dc:call-macro name="longitudinal-section-prototype"/> |
165 </dc:when> | 196 </dc:when> |
166 <dc:when test="$out = 'map'"> | 197 <dc:when test="$out = 'map'"> |
242 <dc:call-macro name="flood-map-complete"/> | 273 <dc:call-macro name="flood-map-complete"/> |
243 </dc:otherwise> | 274 </dc:otherwise> |
244 </dc:choose> | 275 </dc:choose> |
245 </dc:when> | 276 </dc:when> |
246 <dc:when test="$out = 'computed_discharge_curve'"> | 277 <dc:when test="$out = 'computed_discharge_curve'"> |
247 <dc:call-macro name="discharge_computed"/> | 278 <dc:call-macro name="historical_discharge_curve"/> |
279 <dc:call-macro name="discharge_table_gauge"/> | |
248 <dc:call-macro name="basedata_2_fixations_wqkms"/> | 280 <dc:call-macro name="basedata_2_fixations_wqkms"/> |
249 <dc:call-macro name="basedata_5_flood-protections"/> | 281 <dc:call-macro name="basedata_5_flood-protections"/> |
250 <dc:call-macro name="basedata_0"/> | 282 <dc:call-macro name="basedata_0"/> |
251 <dc:call-macro name="basedata_1_additionals"/> | 283 <dc:call-macro name="basedata_1_additionals"/> |
252 <dc:call-macro name="basedata_4_heightmarks-points"/> | 284 <dc:call-macro name="basedata_4_heightmarks-points"/> |
259 </dc:when> | 291 </dc:when> |
260 <dc:when test="$out = 'minfo-heights-epoch'"> | 292 <dc:when test="$out = 'minfo-heights-epoch'"> |
261 <bedheights> | 293 <bedheights> |
262 <dc:call-macro name="bed-heights-epoch"/> | 294 <dc:call-macro name="bed-heights-epoch"/> |
263 </bedheights> | 295 </bedheights> |
296 </dc:when> | |
297 <dc:when test="$out = 'differenceable'"> | |
298 <dc:if test="$current-state-id != 'state.winfo.uesk.wsp'"> | |
299 <dc:call-macro name="basedata_0"/> | |
300 <dc:call-macro name="basedata_1_additionals"/> | |
301 <dc:call-macro name="basedata_2_fixations"/> | |
302 <dc:call-macro name="basedata_4_heightmarks-points"/> | |
303 <dc:call-macro name="basedata_5_flood-protections"/> | |
304 <dc:call-macro name="minfo-heights"/> | |
305 </dc:if> | |
264 </dc:when> | 306 </dc:when> |
265 <dc:when test="$out = 'waterlevels'"> | 307 <dc:when test="$out = 'waterlevels'"> |
266 <dc:if test="$current-state-id != 'state.winfo.uesk.wsp'"> | 308 <dc:if test="$current-state-id != 'state.winfo.uesk.wsp'"> |
267 <dc:call-macro name="basedata_0"/> | 309 <dc:call-macro name="basedata_0"/> |
268 <dc:call-macro name="basedata_1_additionals"/> | 310 <dc:call-macro name="basedata_1_additionals"/> |
311 <dc:call-macro name="differences"/> | 353 <dc:call-macro name="differences"/> |
312 </dc:when> | 354 </dc:when> |
313 <dc:when test="$out = 'w_differences_longitudinal_section'"> | 355 <dc:when test="$out = 'w_differences_longitudinal_section'"> |
314 <dc:call-macro name="longitudinal"/> | 356 <dc:call-macro name="longitudinal"/> |
315 <dc:call-macro name="differences"/> | 357 <dc:call-macro name="differences"/> |
358 <dc:call-macro name="bedheight_differences"/> | |
316 </dc:when> | 359 </dc:when> |
317 <dc:when test="$out = 'fix_deltawt_curve'"> | 360 <dc:when test="$out = 'fix_deltawt_curve'"> |
318 <dc:call-macro name="delta-wt"/> | 361 <dc:call-macro name="delta-wt"/> |
319 </dc:when> | 362 </dc:when> |
320 <dc:when test="$out = 'reference_curve'"> | 363 <dc:when test="$out = 'reference_curve'"> |
321 <dc:call-macro name="reference-curves"/> | 364 <dc:call-macro name="reference-curves"/> |
322 </dc:when> | |
323 <dc:when test="$out = 'computed_discharge_curve'"> | |
324 <dc:call-macro name="computed-discharge-curve"/> | |
325 </dc:when> | 365 </dc:when> |
326 <dc:when test="$out = 'cross_section'"> | 366 <dc:when test="$out = 'cross_section'"> |
327 <dc:call-macro name="waterlevels"/> | 367 <dc:call-macro name="waterlevels"/> |
328 </dc:when> | 368 </dc:when> |
329 <dc:when test="$out = 'fix_longitudinal_section_curve'"> | 369 <dc:when test="$out = 'fix_longitudinal_section_curve'"> |
332 <dc:when test="$out = 'fix_derivate_curve'"> | 372 <dc:when test="$out = 'fix_derivate_curve'"> |
333 <dc:call-macro name="fix-derivate-curve"/> | 373 <dc:call-macro name="fix-derivate-curve"/> |
334 </dc:when> | 374 </dc:when> |
335 <dc:when test="$out = 'fix_wq_curve'"> | 375 <dc:when test="$out = 'fix_wq_curve'"> |
336 <dc:call-macro name="fix-wq-curve"/> | 376 <dc:call-macro name="fix-wq-curve"/> |
377 <dc:call-macro name="waterlevels-fix"/> | |
337 </dc:when> | 378 </dc:when> |
338 <dc:when test="$out = 'duration_curve'"> | 379 <dc:when test="$out = 'duration_curve'"> |
339 <dc:call-macro name="duration-curve"/> | 380 <dc:call-macro name="duration-curve"/> |
340 </dc:when> | 381 </dc:when> |
382 <dc:when test="$out = 'differenceable'"> | |
383 <dc:call-macro name="differenceable-fix"/> | |
384 <dc:call-macro name="differences"/> | |
385 </dc:when> | |
341 <dc:when test="$out = 'waterlevels'"> | 386 <dc:when test="$out = 'waterlevels'"> |
342 <dc:call-macro name="waterlevels-fix"/> | |
343 </dc:when> | |
344 <dc:when test="$out = 'fix_wq_curve'"> | |
345 <dc:call-macro name="waterlevels-fix"/> | 387 <dc:call-macro name="waterlevels-fix"/> |
346 </dc:when> | 388 </dc:when> |
347 <dc:when test="$out = 'floodmap'"> | 389 <dc:when test="$out = 'floodmap'"> |
348 <dc:call-macro name="flood-map"/> | 390 <dc:call-macro name="flood-map"/> |
349 </dc:when> | 391 </dc:when> |
350 <dc:when test="$out = 'map'"> | 392 <dc:when test="$out = 'map'"> |
351 <dc:call-macro name="flood-map"/> | 393 <dc:call-macro name="flood-map"/> |
352 </dc:when> | 394 </dc:when> |
353 <dc:when test="$out = 'bedheight_middle_longitudinal_section'"> | 395 <dc:when test="$out = 'bedheight_middle_longitudinal_section'"> |
354 <dc:call-macro name="waterlevels-discharge"/> | 396 <dc:call-macro name="waterlevels-discharge"/> |
355 <dc:call-macro name="waterlevels-fix"/> | 397 <dc:call-macro name="differenceable-fix"/> |
356 </dc:when> | 398 </dc:when> |
357 <dc:when test="$out = 'floodmap-hws'"> | 399 <dc:when test="$out = 'floodmap-hws'"> |
358 <dc:call-macro name="floodmap-hws-user"/> | 400 <dc:call-macro name="floodmap-hws-user"/> |
359 </dc:when> | 401 </dc:when> |
360 <dc:when test="$out = 'flow_velocity_longitudinal_section'"> | 402 <dc:when test="$out = 'flow_velocity_longitudinal_section'"> |
367 <dc:call-macro name="bedquality-density"/> | 409 <dc:call-macro name="bedquality-density"/> |
368 <dc:call-macro name="bedquality-porosity"/> | 410 <dc:call-macro name="bedquality-porosity"/> |
369 </dc:when> | 411 </dc:when> |
370 <dc:when test="$out = 'sedimentload_longitudinal_section'"> | 412 <dc:when test="$out = 'sedimentload_longitudinal_section'"> |
371 <dc:call-macro name="differences"/> | 413 <dc:call-macro name="differences"/> |
372 <dc:call-macro name="bedheight-differences"/> | 414 <dc:call-macro name="bedheight_differences"/> |
373 <dc:call-macro name="flow-velocity"/> | 415 <dc:call-macro name="flow-velocity"/> |
374 <dc:call-macro name="sediment-load"/> | 416 <dc:call-macro name="sediment-load"/> |
375 </dc:when> | 417 </dc:when> |
376 <dc:when test="$out = 'bed_difference_year_longitudinal_section'"> | 418 <dc:when test="$out = 'bed_difference_year_longitudinal_section'"> |
377 <dc:call-macro name="waterlevels-discharge"/> | 419 <dc:call-macro name="waterlevels-discharge"/> |
378 <dc:call-macro name="bedheight-differences"/> | 420 <dc:call-macro name="bedheight_differences"/> |
379 <dc:call-macro name="differences"/> | 421 <dc:call-macro name="differences"/> |
380 <dc:call-macro name="waterlevels-fix"/> | 422 <dc:call-macro name="waterlevels-fix"/> |
381 <dc:call-macro name="delta-wt-ls"/> | 423 <dc:call-macro name="delta-wt-ls"/> |
382 </dc:when> | 424 </dc:when> |
383 <dc:when test="$out = 'bed_difference_epoch_longitudinal_section'"> | 425 <dc:when test="$out = 'bed_difference_epoch_longitudinal_section'"> |
384 <dc:call-macro name="waterlevels-discharge"/> | 426 <dc:call-macro name="waterlevels-discharge"/> |
385 <dc:call-macro name="bedheight-differences"/> | 427 <dc:call-macro name="bedheight_differences"/> |
386 <dc:call-macro name="differences"/> | 428 <dc:call-macro name="differences"/> |
387 <dc:call-macro name="waterlevels-fix"/> | 429 <dc:call-macro name="waterlevels-fix"/> |
388 <dc:call-macro name="delta-wt-ls"/> | 430 <dc:call-macro name="delta-wt-ls"/> |
389 </dc:when> | 431 </dc:when> |
390 </dc:choose> | 432 </dc:choose> |
403 <dc:if test="dc:has-result()"> | 445 <dc:if test="dc:has-result()"> |
404 <differences> | 446 <differences> |
405 <dc:for-each> | 447 <dc:for-each> |
406 <w_differences | 448 <w_differences |
407 description="{$facet_description}" | 449 description="{$facet_description}" |
408 factory="winfo" target_out="{$out}" | 450 factory="winfo" |
409 artifact-id="{$aid}" | 451 target_out="{$out}" |
410 ids="{$aid}" | 452 artifact-id="{$a_gid}" |
453 ids="{$facet_num}" | |
411 out="w_differences_longitudinal_section"/> | 454 out="w_differences_longitudinal_section"/> |
412 </dc:for-each> | 455 </dc:for-each> |
413 </differences> | 456 </differences> |
414 </dc:if> | 457 </dc:if> |
415 </dc:filter> | 458 </dc:filter> |
432 </reference_curves> | 475 </reference_curves> |
433 </dc:if> | 476 </dc:if> |
434 </dc:filter> | 477 </dc:filter> |
435 </dc:macro> | 478 </dc:macro> |
436 | 479 |
437 <dc:macro name="computed-discharge-curve"> | 480 |
438 <dc:filter expr="$facet_name = 'computed_discharge_curve.q'"> | 481 <dc:macro name="historical_discharge_curve"> |
439 <dc:if test="dc:has-result()"> | 482 <dc:context> |
440 <computed_discharge_curves> | 483 <dc:statement> |
441 <dc:for-each> | 484 SELECT g.id AS gauge_id, |
442 <dc:element name="${facet_name}"> | 485 g.name AS gauge_name, |
443 <dc:attribute name="description" value="${facet_description}"/> | 486 dt.id AS dt_id, |
444 <dc:attribute name="factory" value="winfo"/> | 487 t.start_time AS start_time, |
445 <dc:attribute name="target_out" value="${out}"/> | 488 t.stop_time AS stop_time, |
446 <dc:attribute name="artifact-id" value="${a_id}"/> | 489 dt.description AS desc, |
447 <dc:attribute name="ids" value="${a_id}"/> | 490 dt.bfg_id AS bfg_id |
448 <dc:attribute name="out" value="computed_discharge_curve"/> | 491 FROM gauges g |
449 </dc:element> | 492 JOIN discharge_tables dt ON g.id = dt.gauge_id |
450 </dc:for-each> | 493 LEFT JOIN time_intervals t ON dt.time_interval_id = t.id |
451 </computed_discharge_curves> | 494 WHERE g.river_id = ${river_id} |
452 </dc:if> | 495 AND dt.kind <> 0 |
453 </dc:filter> | 496 AND g.station = ${fromkm} |
454 </dc:macro> | 497 AND g.station = ${tokm} |
498 ORDER BY start_time | |
499 </dc:statement> | |
500 <dc:if test="dc:has-result()"> | |
501 <historical_discharge_curves> | |
502 <dc:group expr="$gauge_name"> | |
503 <dc:for-each> | |
504 <dc:variable name="combined_desc" expr="concat($bfg_id, ' ', dc:date-format('dd.MM.yyyy', $start_time), ' - ', dc:date-format('dd.MM.yyyy', $stop_time))"/> | |
505 <dc:message> | |
506 Hallo ANDRE23 {dc:dump-variables()} | |
507 </dc:message> | |
508 <histdis name="{$combined_desc}" | |
509 description="{$combined_desc}" | |
510 factory="gaugedischarge" target_out="{$out}" | |
511 ids="{$gauge_name};{$dt_id};{$combined_desc}"/> | |
512 </dc:for-each> | |
513 </dc:group> | |
514 </historical_discharge_curves> | |
515 </dc:if> | |
516 </dc:context> | |
517 </dc:macro> | |
518 | |
455 | 519 |
456 <dc:macro name="flood-map"> | 520 <dc:macro name="flood-map"> |
457 <dc:filter expr="$facet_name = 'floodmap.wsplgen'"> | 521 <dc:filter expr="$facet_name = 'floodmap.wsplgen'"> |
458 <dc:if test="dc:has-result()"> | 522 <dc:if test="dc:has-result()"> |
459 <floodmap> | 523 <floodmap> |
460 <dc:for-each> | 524 <dc:for-each> |
461 <dc:variable name="combined_desc" expr="concat($facet_description, ' ', dc:date-format('dd.MM.yyyy - H:m:s', $a_creation), ' ', $collection_name)"/> | 525 <dc:variable name="combined_desc" expr="concat($facet_description, ' ', dc:date-format('dd.MM.yyyy - H:mm:ss', $a_creation), ' ', $collection_name)"/> |
462 <dc:element name="${facet_name}"> | 526 <dc:element name="${facet_name}"> |
463 <dc:attribute name="description" value="${combined_desc}"/> | 527 <dc:attribute name="description" value="${combined_desc}"/> |
464 <dc:attribute name="factory" value="winfo"/> | 528 <dc:attribute name="factory" value="winfo"/> |
465 <dc:attribute name="target_out" value="${out}"/> | 529 <dc:attribute name="target_out" value="${out}"/> |
466 <dc:attribute name="artifact-id" value="${a_id}"/> | 530 <dc:attribute name="artifact-id" value="${a_id}"/> |
475 | 539 |
476 <dc:macro name="waterlevels"> | 540 <dc:macro name="waterlevels"> |
477 <dc:filter expr="$out_name = 'cross_section'"> | 541 <dc:filter expr="$out_name = 'cross_section'"> |
478 <dc:if test="dc:has-result()"> | 542 <dc:if test="dc:has-result()"> |
479 <waterlevels> | 543 <waterlevels> |
480 <dc:group expr="concat($river, ' ', dc:date-format('dd.MM.yyyy - H:m:s', $a_creation))"> | 544 <dc:group expr="concat($river, ' ', dc:date-format('dd.MM.yyyy - H:mm:ss', $a_creation))"> |
481 <dc:comment>Aheinecke: Why is this grouping different from the rest?</dc:comment> | 545 <dc:comment>Aheinecke: Why is this grouping different from the rest?</dc:comment> |
482 <longitudinal_section_columns description="{dc:group-key()}"> | 546 <longitudinal_section_columns description="{dc:group-key()}"> |
483 <dc:for-each> | 547 <dc:for-each> |
484 <dc:element name="${facet_name}"> | 548 <dc:element name="${facet_name}"> |
485 <dc:attribute name="description" value="${facet_description}"/> | 549 <dc:attribute name="description" value="${facet_description}"/> |
499 | 563 |
500 <dc:macro name="longitudinal"> | 564 <dc:macro name="longitudinal"> |
501 <dc:filter expr="$out_name = 'longitudinal_section'"> | 565 <dc:filter expr="$out_name = 'longitudinal_section'"> |
502 <dc:if test="dc:has-result()"> | 566 <dc:if test="dc:has-result()"> |
503 <waterlevels> | 567 <waterlevels> |
504 <dc:group expr="concat($river, ' ', dc:date-format('dd.MM.yyyy - H:m:s', $a_creation))"> | 568 <dc:group expr="concat($river, ' ', dc:date-format('dd.MM.yyyy - H:mm:ss', $a_creation))"> |
505 <dc:comment>Aheinecke: Why is this grouping different from the rest?</dc:comment> | 569 <dc:comment>Aheinecke: Why is this grouping different from the rest?</dc:comment> |
506 <longitudinal_section_columns description="{dc:group-key()}"> | 570 <longitudinal_section_columns description="{dc:group-key()}"> |
507 <dc:for-each> | 571 <dc:for-each> |
508 <dc:element name="${facet_name}"> | 572 <dc:element name="${facet_name}"> |
509 <dc:attribute name="description" value="${facet_description}"/> | 573 <dc:attribute name="description" value="${facet_description}"/> |
527 starts-with($facet_name, 'fix_sector_average_ls') or | 591 starts-with($facet_name, 'fix_sector_average_ls') or |
528 starts-with($facet_name, 'fix_analysis_events_ls') or | 592 starts-with($facet_name, 'fix_analysis_events_ls') or |
529 starts-with($facet_name, 'fix_reference_events_ls'))"> | 593 starts-with($facet_name, 'fix_reference_events_ls'))"> |
530 <dc:if test="dc:has-result()"> | 594 <dc:if test="dc:has-result()"> |
531 <waterlevels> | 595 <waterlevels> |
532 <dc:group expr="concat($river, ' ', dc:date-format('dd.MM.yyyy - H:m:s', $a_creation), ' ', $collection_name)"> | 596 <dc:group expr="concat($river, ' ', dc:date-format('dd.MM.yyyy - H:mm:ss', $a_creation), ' ', $collection_name)"> |
533 <waterlevels description="{dc:group-key()}"> | 597 <waterlevels description="{dc:group-key()}"> |
534 <dc:for-each> | 598 <dc:for-each> |
535 <dc:element name="${facet_name}"> | 599 <dc:element name="${facet_name}"> |
536 <dc:attribute name="description" value="${facet_description}"/> | 600 <dc:attribute name="description" value="${facet_description}"/> |
537 <dc:attribute name="ids" value="${facet_num}"/> | 601 <dc:attribute name="ids" value="${facet_num}"/> |
555 $facet_name = 'fix_reference_events_dwt' or | 619 $facet_name = 'fix_reference_events_dwt' or |
556 starts-with($facet_name, 'fix_deviation_dwt') or | 620 starts-with($facet_name, 'fix_deviation_dwt') or |
557 starts-with($facet_name, 'fix_sector_average_dwt'))"> | 621 starts-with($facet_name, 'fix_sector_average_dwt'))"> |
558 <dc:if test="dc:has-result()"> | 622 <dc:if test="dc:has-result()"> |
559 <waterlevels> | 623 <waterlevels> |
560 <dc:group expr="concat($river, ' ', dc:date-format('dd.MM.yyyy - H:m:s', $a_creation), ' ', $collection_name)"> | 624 <dc:group expr="concat($river, ' ', dc:date-format('dd.MM.yyyy - H:mm:ss', $a_creation), ' ', $collection_name)"> |
561 <waterlevels description="{dc:group-key()}"> | 625 <waterlevels description="{dc:group-key()}"> |
562 <dc:for-each> | 626 <dc:for-each> |
563 <dc:element name="${facet_name}"> | 627 <dc:element name="${facet_name}"> |
564 <dc:attribute name="description" value="${facet_description}"/> | 628 <dc:attribute name="description" value="${facet_description}"/> |
565 <dc:attribute name="ids" value="${facet_num}"/> | 629 <dc:attribute name="ids" value="${facet_num}"/> |
580 <dc:filter expr="$out_name = 'fix_deltawt_curve' and | 644 <dc:filter expr="$out_name = 'fix_deltawt_curve' and |
581 (starts-with($facet_name, 'fix_sector_average_dwt') or | 645 (starts-with($facet_name, 'fix_sector_average_dwt') or |
582 starts-with($facet_name, 'fix_deviation_dwt'))"> | 646 starts-with($facet_name, 'fix_deviation_dwt'))"> |
583 <dc:if test="dc:has-result()"> | 647 <dc:if test="dc:has-result()"> |
584 <waterlevels> | 648 <waterlevels> |
585 <dc:group expr="concat($river, ' ', dc:date-format('dd.MM.yyyy - H:m:s', $a_creation), ' ', $collection_name)"> | 649 <dc:group expr="concat($river, ' ', dc:date-format('dd.MM.yyyy - H:mm:ss', $a_creation), ' ', $collection_name)"> |
586 <waterlevels description="{dc:group-key()}"> | 650 <waterlevels description="{dc:group-key()}"> |
587 <dc:for-each> | 651 <dc:for-each> |
588 <dc:element name="${facet_name}"> | 652 <dc:element name="${facet_name}"> |
589 <dc:attribute name="description" value="${facet_description}"/> | 653 <dc:attribute name="description" value="${facet_description}"/> |
590 <dc:attribute name="ids" value="${facet_num}"/> | 654 <dc:attribute name="ids" value="${facet_num}"/> |
603 | 667 |
604 <dc:macro name="fix-derivate-curve"> | 668 <dc:macro name="fix-derivate-curve"> |
605 <dc:filter expr="$out_name = 'fix_derivate_curve' and $facet_name = 'fix_derivate_curve'"> | 669 <dc:filter expr="$out_name = 'fix_derivate_curve' and $facet_name = 'fix_derivate_curve'"> |
606 <dc:if test="dc:has-result()"> | 670 <dc:if test="dc:has-result()"> |
607 <waterlevels> | 671 <waterlevels> |
608 <dc:group expr="concat($river, ' ', dc:date-format('dd.MM.yyyy - H:m:s', $a_creation), ' ', $collection_name)"> | 672 <dc:group expr="concat($river, ' ', dc:date-format('dd.MM.yyyy - H:mm:ss', $a_creation), ' ', $collection_name)"> |
609 <waterlevels description="{dc:group-key()}"> | 673 <waterlevels description="{dc:group-key()}"> |
610 <dc:for-each> | 674 <dc:for-each> |
611 <dc:element name="${facet_name}"> | 675 <dc:element name="${facet_name}"> |
612 <dc:attribute name="description" value="${facet_description}"/> | 676 <dc:attribute name="description" value="${facet_description}"/> |
613 <dc:attribute name="ids" value="${facet_num}"/> | 677 <dc:attribute name="ids" value="${facet_num}"/> |
630 starts-with($facet_name, 'fix_reference_events_wq') or | 694 starts-with($facet_name, 'fix_reference_events_wq') or |
631 starts-with($facet_name, 'fix_sector_average_wq') or | 695 starts-with($facet_name, 'fix_sector_average_wq') or |
632 $facet_name = 'fix_wq_curve')"> | 696 $facet_name = 'fix_wq_curve')"> |
633 <dc:if test="dc:has-result()"> | 697 <dc:if test="dc:has-result()"> |
634 <waterlevels> | 698 <waterlevels> |
635 <dc:group expr="concat($river, ' ', dc:date-format('dd.MM.yyyy - H:m:s', $a_creation), ' ', $collection_name)"> | 699 <dc:group expr="concat($river, ' ', dc:date-format('dd.MM.yyyy - H:mm:ss', $a_creation), ' ', $collection_name)"> |
636 <waterlevels description="{dc:group-key()}"> | 700 <waterlevels description="{dc:group-key()}"> |
637 <dc:for-each> | 701 <dc:for-each> |
638 <dc:element name="${facet_name}"> | 702 <dc:element name="${facet_name}"> |
639 <dc:attribute name="description" value="${facet_description}"/> | 703 <dc:attribute name="description" value="${facet_description}"/> |
640 <dc:attribute name="ids" value="${facet_num}"/> | 704 <dc:attribute name="ids" value="${facet_num}"/> |
674 <dc:macro name="waterlevels-fix"> | 738 <dc:macro name="waterlevels-fix"> |
675 <dc:filter expr="($out_name = 'longitudinal_section' and $facet_name = 'longitudinal_section.w') and | 739 <dc:filter expr="($out_name = 'longitudinal_section' and $facet_name = 'longitudinal_section.w') and |
676 (not ($current-state-id = 'state.winfo.uesk.wsp' and $ld_m = 'location'))"> | 740 (not ($current-state-id = 'state.winfo.uesk.wsp' and $ld_m = 'location'))"> |
677 <dc:if test="dc:has-result()"> | 741 <dc:if test="dc:has-result()"> |
678 <waterlevels> | 742 <waterlevels> |
679 <dc:group expr="concat($river, ' ', dc:date-format('dd.MM.yyyy - H:m:s', $a_creation), ' ', $collection_name)"> | 743 <dc:group expr="concat($river, ' ', dc:date-format('dd.MM.yyyy - H:mm:ss', $a_creation), ' ', $collection_name)"> |
680 <waterlevels description="{dc:group-key()}"> | 744 <waterlevels description="{dc:group-key()}"> |
681 <dc:for-each> | 745 <dc:for-each> |
682 <dc:choose> | 746 <dc:choose> |
683 <dc:when test="$ld_m = 'location'"> | 747 <dc:when test="$ld_m = 'location'"> |
684 <dc:variable name="combined_desc" expr="concat($facet_description, ' an KM ', $deffrom)"/> | 748 <dc:variable name="combined_desc" expr="concat($facet_description, ' an KM ', $deffrom)"/> |
702 </waterlevels> | 766 </waterlevels> |
703 </dc:if> | 767 </dc:if> |
704 </dc:filter> | 768 </dc:filter> |
705 </dc:macro> | 769 </dc:macro> |
706 | 770 |
771 <dc:comment comment="For building differences." /> | |
772 <dc:macro name="differenceable-fix"> | |
773 <dc:comment> | |
774 No diffs between beddiffs and others, for now. | |
775 <beddifferences> | |
776 <dc:call-macro name="bedheight_differences"/> | |
777 </beddifferences> | |
778 </dc:comment> | |
779 <dc:comment comment="Vollmer curves need own factory"/> | |
780 <dc:filter expr="$a_state = 'state.fix.vollmer.compute' and $facet_name = 'longitudinal_section.w'"> | |
781 <dc:if test="dc:has-result()"> | |
782 <vollmer_waterlevels> | |
783 <dc:group expr="concat($river, ' ', dc:date-format('dd.MM.yyyy - H:mm:ss', $a_creation), ' ', $collection_name)"> | |
784 <waterlevels description="{dc:group-key()}"> | |
785 <dc:for-each> | |
786 <dc:choose> | |
787 <dc:when test="$ld_m = 'location'"> | |
788 <dc:variable name="combined_desc" expr="concat($facet_description, ' an KM ', $deffrom)"/> | |
789 </dc:when> | |
790 <dc:otherwise> | |
791 <dc:variable name="combined_desc" expr="concat($facet_description, ' von KM ', | |
792 $deffrom, ' bis KM ', $defto)"/> | |
793 </dc:otherwise> | |
794 </dc:choose> | |
795 <dc:element name="${facet_name}"> | |
796 <dc:attribute name="description" value="${combined_desc}"/> | |
797 <dc:attribute name="ids" value="${facet_num}"/> | |
798 <dc:attribute name="factory" value="fixanalysis"/> | |
799 <dc:attribute name="target_out" value="${out}"/> | |
800 <dc:attribute name="artifact-id" value="${a_gid}"/> | |
801 <dc:attribute name="out" value="longitudinal_section"/> | |
802 </dc:element> | |
803 </dc:for-each> | |
804 </waterlevels> | |
805 </dc:group> | |
806 </vollmer_waterlevels> | |
807 </dc:if> | |
808 </dc:filter> | |
809 <dc:filter expr="not($a_state = 'state.fix.vollmer.compute') and (($out_name = 'longitudinal_section' and $facet_name = 'longitudinal_section.w') and | |
810 (not ($current-state-id = 'state.winfo.uesk.wsp' and $ld_m = 'location')))"> | |
811 <dc:if test="dc:has-result()"> | |
812 <waterlevels> | |
813 <dc:group expr="concat($river, ' ', dc:date-format('dd.MM.yyyy - H:mm:ss', $a_creation), ' ', $collection_name)"> | |
814 <waterlevels description="{dc:group-key()}"> | |
815 <dc:for-each> | |
816 <dc:choose> | |
817 <dc:when test="$ld_m = 'location'"> | |
818 <dc:variable name="combined_desc" expr="concat($facet_description, ' an KM ', $deffrom)"/> | |
819 </dc:when> | |
820 <dc:otherwise> | |
821 <dc:variable name="combined_desc" expr="concat($facet_description, ' von KM ', | |
822 $deffrom, ' bis KM ', $defto)"/> | |
823 </dc:otherwise> | |
824 </dc:choose> | |
825 <dc:element name="${facet_name}"> | |
826 <dc:attribute name="description" value="${combined_desc}"/> | |
827 <dc:attribute name="ids" value="${facet_num}"/> | |
828 <dc:attribute name="factory" value="winfo"/> | |
829 <dc:attribute name="target_out" value="${out}"/> | |
830 <dc:attribute name="artifact-id" value="${a_gid}"/> | |
831 <dc:attribute name="out" value="longitudinal_section"/> | |
832 </dc:element> | |
833 </dc:for-each> | |
834 </waterlevels> | |
835 </dc:group> | |
836 </waterlevels> | |
837 </dc:if> | |
838 </dc:filter> | |
839 </dc:macro> | |
840 | |
841 | |
707 <dc:macro name="floodmap-hws-user"> | 842 <dc:macro name="floodmap-hws-user"> |
708 <dc:comment>No grouping in this?</dc:comment> | 843 <dc:comment>No grouping in this?</dc:comment> |
709 <dc:filter expr="$out_name = 'floodmap' and $facet_name = 'floodmap.usershape'"> | 844 <dc:filter expr="$out_name = 'floodmap' and $facet_name = 'floodmap.usershape'"> |
710 <own-hws> | 845 <own-hws> |
711 <dc:for-each> | 846 <dc:for-each> |
726 <dc:filter expr="$out_name = 'bed_longitudinal_section' and | 861 <dc:filter expr="$out_name = 'bed_longitudinal_section' and |
727 ($facet_name = 'bed_longitudinal_section.bed_diameter_toplayer' or | 862 ($facet_name = 'bed_longitudinal_section.bed_diameter_toplayer' or |
728 $facet_name = 'bed_longitudinal_section.bed_diameter_sublayer')"> | 863 $facet_name = 'bed_longitudinal_section.bed_diameter_sublayer')"> |
729 <dc:if test="dc:has-result()"> | 864 <dc:if test="dc:has-result()"> |
730 <bed_quality_bed> | 865 <bed_quality_bed> |
731 <dc:group expr="concat($river, ' ', dc:date-format('dd.MM.yyyy - H:m:s', $a_creation), ' ', $collection_name)"> | 866 <dc:group expr="concat($river, ' ', dc:date-format('dd.MM.yyyy - H:mm:ss', $a_creation), ' ', $collection_name)"> |
732 <quality-bed description="{dc:group-key()}"> | 867 <quality-bed description="{dc:group-key()}"> |
733 <dc:for-each> | 868 <dc:for-each> |
734 <dc:element name="${facet_name}"> | 869 <dc:element name="${facet_name}"> |
735 <dc:attribute name="factory" value="minfo"/> | 870 <dc:attribute name="factory" value="minfo"/> |
736 <dc:attribute name="target_out" value="${out}"/> | 871 <dc:attribute name="target_out" value="${out}"/> |
750 <dc:macro name="bedquality-load"> | 885 <dc:macro name="bedquality-load"> |
751 <dc:filter expr="$out_name = 'bed_longitudinal_section' and | 886 <dc:filter expr="$out_name = 'bed_longitudinal_section' and |
752 $facet_name = 'bed_longitudinal_section.bedload_diameter'"> | 887 $facet_name = 'bed_longitudinal_section.bedload_diameter'"> |
753 <dc:if test="dc:has-result()"> | 888 <dc:if test="dc:has-result()"> |
754 <bed_quality_load> | 889 <bed_quality_load> |
755 <dc:group expr="concat($river, ' ', dc:date-format('dd.MM.yyyy - H:m:s', $a_creation), ' ', $collection_name)"> | 890 <dc:group expr="concat($river, ' ', dc:date-format('dd.MM.yyyy - H:mm:ss', $a_creation), ' ', $collection_name)"> |
756 <quality-load description="{dc:group-key()}"> | 891 <quality-load description="{dc:group-key()}"> |
757 <dc:for-each> | 892 <dc:for-each> |
758 <dc:element name="${facet_name}"> | 893 <dc:element name="${facet_name}"> |
759 <dc:attribute name="factory" value="minfo"/> | 894 <dc:attribute name="factory" value="minfo"/> |
760 <dc:attribute name="target_out" value="${out}"/> | 895 <dc:attribute name="target_out" value="${out}"/> |
775 <dc:filter expr="$out_name = 'bed_longitudinal_section' and | 910 <dc:filter expr="$out_name = 'bed_longitudinal_section' and |
776 ($facet_name = 'bed_longitudinal_section.sediment_density_toplayer' or | 911 ($facet_name = 'bed_longitudinal_section.sediment_density_toplayer' or |
777 $facet_name = 'bed_longitudinal_section.sediment_density_sublayer')"> | 912 $facet_name = 'bed_longitudinal_section.sediment_density_sublayer')"> |
778 <dc:if test="dc:has-result()"> | 913 <dc:if test="dc:has-result()"> |
779 <bed_quality_density> | 914 <bed_quality_density> |
780 <dc:group expr="concat($river, ' ', dc:date-format('dd.MM.yyyy - H:m:s', $a_creation), ' ', $collection_name)"> | 915 <dc:group expr="concat($river, ' ', dc:date-format('dd.MM.yyyy - H:mm:ss', $a_creation), ' ', $collection_name)"> |
781 <density description="{dc:group-key()}"> | 916 <density description="{dc:group-key()}"> |
782 <dc:for-each> | 917 <dc:for-each> |
783 <dc:element name="${facet_name}"> | 918 <dc:element name="${facet_name}"> |
784 <dc:attribute name="factory" value="minfo"/> | 919 <dc:attribute name="factory" value="minfo"/> |
785 <dc:attribute name="target_out" value="${out}"/> | 920 <dc:attribute name="target_out" value="${out}"/> |
800 <dc:filter expr="$out_name = 'bed_longitudinal_section' and | 935 <dc:filter expr="$out_name = 'bed_longitudinal_section' and |
801 ($facet_name = 'bed_longitudinal_section.porosity_toplayer' or | 936 ($facet_name = 'bed_longitudinal_section.porosity_toplayer' or |
802 $facet_name = 'bed_longitudinal_section.porosity_sublayer')"> | 937 $facet_name = 'bed_longitudinal_section.porosity_sublayer')"> |
803 <dc:if test="dc:has-result()"> | 938 <dc:if test="dc:has-result()"> |
804 <bed_quality_porosity> | 939 <bed_quality_porosity> |
805 <dc:group expr="concat($river, ' ', dc:date-format('dd.MM.yyyy - H:m:s', $a_creation), ' ', $collection_name)"> | 940 <dc:group expr="concat($river, ' ', dc:date-format('dd.MM.yyyy - H:mm:ss', $a_creation), ' ', $collection_name)"> |
806 <porosity description="{dc:group-key()}"> | 941 <porosity description="{dc:group-key()}"> |
807 <dc:for-each> | 942 <dc:for-each> |
808 <dc:element name="${facet_name}"> | 943 <dc:element name="${facet_name}"> |
809 <dc:attribute name="factory" value="minfo"/> | 944 <dc:attribute name="factory" value="minfo"/> |
810 <dc:attribute name="target_out" value="${out}"/> | 945 <dc:attribute name="target_out" value="${out}"/> |
827 $facet_name = 'flow_velocity.mainchannel' or | 962 $facet_name = 'flow_velocity.mainchannel' or |
828 $facet_name = 'flow_velocity.totalchannel.filtered' or | 963 $facet_name = 'flow_velocity.totalchannel.filtered' or |
829 $facet_name = 'flow_velocity.mainchannel.filtered')"> | 964 $facet_name = 'flow_velocity.mainchannel.filtered')"> |
830 <dc:if test="dc:has-result()"> | 965 <dc:if test="dc:has-result()"> |
831 <flow-velocity> | 966 <flow-velocity> |
832 <dc:group expr="concat($river, ' ', dc:date-format('dd.MM.yyyy - H:m:s', $a_creation), ' ', $collection_name)"> | 967 <dc:group expr="concat($river, ' ', dc:date-format('dd.MM.yyyy - H:mm:ss', $a_creation), ' ', $collection_name)"> |
833 <flow description="{dc:group-key()}"> | 968 <flow description="{dc:group-key()}"> |
834 <dc:for-each> | 969 <dc:for-each> |
835 <dc:element name="${facet_name}"> | 970 <dc:element name="${facet_name}"> |
836 <dc:attribute name="factory" value="minfo"/> | 971 <dc:attribute name="factory" value="minfo"/> |
837 <dc:attribute name="target_out" value="${out}"/> | 972 <dc:attribute name="target_out" value="${out}"/> |
850 | 985 |
851 <dc:macro name="sediment-load"> | 986 <dc:macro name="sediment-load"> |
852 <dc:filter expr="$out_name = 'sedimentload_longitudinal_section' and starts-with($facet_name, 'sedimentload')"> | 987 <dc:filter expr="$out_name = 'sedimentload_longitudinal_section' and starts-with($facet_name, 'sedimentload')"> |
853 <dc:if test="dc:has-result()"> | 988 <dc:if test="dc:has-result()"> |
854 <sediment-load> | 989 <sediment-load> |
855 <dc:group expr="concat($river, ' ', dc:date-format('dd.MM.yyyy - H:m:s', $a_creation), ' ', $collection_name)"> | 990 <dc:group expr="concat($river, ' ', dc:date-format('dd.MM.yyyy - H:mm:ss', $a_creation), ' ', $collection_name)"> |
856 <load description="{dc:group-key()}"> | 991 <load description="{dc:group-key()}"> |
857 <dc:for-each> | 992 <dc:for-each> |
858 <dc:element name="${facet_name}"> | 993 <dc:element name="${facet_name}"> |
859 <dc:attribute name="factory" value="minfo"/> | 994 <dc:attribute name="factory" value="minfo"/> |
860 <dc:attribute name="target_out" value="${out}"/> | 995 <dc:attribute name="target_out" value="${out}"/> |
873 | 1008 |
874 <dc:macro name="bedheight-differences"> | 1009 <dc:macro name="bedheight-differences"> |
875 <dc:filter expr="($out_name = 'bed_difference_year_longitudinal_section' or $out_name = 'bed_difference_epoch_longitudinal_section') and | 1010 <dc:filter expr="($out_name = 'bed_difference_year_longitudinal_section' or $out_name = 'bed_difference_epoch_longitudinal_section') and |
876 (starts-with($facet_name, 'bedheight_difference.year') or starts-with($facet_name, 'bedheight_difference.epoch'))"> | 1011 (starts-with($facet_name, 'bedheight_difference.year') or starts-with($facet_name, 'bedheight_difference.epoch'))"> |
877 <dc:if test="dc:has-result()"> | 1012 <dc:if test="dc:has-result()"> |
878 <bedheight-differences> | 1013 <bedheight_differences> |
879 <dc:group expr="concat($river, ' ', dc:date-format('dd.MM.yyyy - H:m:s', $a_creation), ' ', $collection_name)"> | 1014 <dc:group expr="concat($river, ' ', dc:date-format('dd.MM.yyyy - H:mm:ss', $a_creation), ' ', $collection_name)"> |
880 <difference description="{dc:group-key()}"> | 1015 <difference description="{dc:group-key()}"> |
881 <dc:for-each> | 1016 <dc:for-each> |
882 <dc:element name="${facet_name}"> | 1017 <dc:element name="${facet_name}"> |
883 <dc:attribute name="factory" value="minfo"/> | 1018 <dc:attribute name="factory" value="minfo"/> |
884 <dc:attribute name="target_out" value="${out}"/> | 1019 <dc:attribute name="target_out" value="${out}"/> |
885 <dc:attribute name="description" value="${facet_description}"/> | 1020 <dc:attribute name="description" value="${facet_description}"/> |
886 <dc:attribute name="ids" value="${facet_num}-${facet_name}"/> | 1021 <dc:attribute name="ids" value="${facet_num}"/> |
887 <dc:attribute name="artifact-id" value="${a_id}"/> | 1022 <dc:attribute name="artifact-id" value="${a_gid}"/> |
888 <dc:attribute name="out" value="${out}"/> | 1023 <dc:attribute name="out" value="${out_name}"/> |
889 </dc:element> | 1024 </dc:element> |
890 </dc:for-each> | 1025 </dc:for-each> |
891 </difference> | 1026 </difference> |
892 </dc:group> | 1027 </dc:group> |
893 </bedheight-differences> | 1028 </bedheight_differences> |
894 </dc:if> | 1029 </dc:if> |
895 </dc:filter> | 1030 </dc:filter> |
896 </dc:macro> | 1031 </dc:macro> |
897 | 1032 |
898 <dc:macro name="waterlevels-discharge"> | 1033 <dc:macro name="waterlevels-discharge"> |
899 <dc:filter expr="$out_name = 'discharge_longitudinal_section' and $facet_name = 'discharge_longitudinal_section.w"> | 1034 <dc:filter expr="$out_name = 'discharge_longitudinal_section' and $facet_name = 'discharge_longitudinal_section.w'"> |
900 <dc:if test="dc:has-result()"> | 1035 <dc:if test="dc:has-result()"> |
901 <waterlevels-discharge> | 1036 <waterlevels-discharge> |
902 <dc:group expr="concat($oid, ' ', $river, ' ', $a_id, ' ', dc:date-format('dd.MM.yyyy - H:m:s', $a_creation), ' ', $collection_name)"> | 1037 <dc:group expr="concat($oid, ' ', $river, ' ', $a_id, ' ', dc:date-format('dd.MM.yyyy - H:mm:ss', $a_creation), ' ', $collection_name)"> |
903 <discharge description="{dc:group-key()}"> | 1038 <discharge description="{dc:group-key()}"> |
904 <dc:for-each> | 1039 <dc:for-each> |
905 <dc:element name="${facet_name}"> | 1040 <dc:element name="${facet_name}"> |
906 <dc:attribute name="factory" value="winfo"/> | 1041 <dc:attribute name="factory" value="winfo"/> |
907 <dc:attribute name="target_out" value="${out}"/> | 1042 <dc:attribute name="target_out" value="${out}"/> |
1185 </dc:macro> | 1320 </dc:macro> |
1186 | 1321 |
1187 <dc:macro name="discharge_table_gauge"> | 1322 <dc:macro name="discharge_table_gauge"> |
1188 <dc:context> | 1323 <dc:context> |
1189 <dc:statement> | 1324 <dc:statement> |
1190 SELECT id AS gauge_id, | 1325 SELECT g.id AS gauge_id, |
1191 name AS gauge_name | 1326 g.name AS gauge_name, |
1192 FROM gauges WHERE river_id = ${river_id} | 1327 t.start_time AS start_time, |
1328 t.stop_time AS stop_time | |
1329 FROM gauges g | |
1330 JOIN discharge_tables dt ON g.id = dt.gauge_id | |
1331 LEFT JOIN time_intervals t ON dt.time_interval_id = t.id | |
1332 WHERE g.river_id = ${river_id} | |
1333 AND dt.kind = 0 | |
1334 AND g.station = ${fromkm} | |
1335 AND g.station = ${tokm} | |
1193 </dc:statement> | 1336 </dc:statement> |
1194 <dc:if test="dc:has-result()"> | 1337 <dc:if test="dc:has-result()"> |
1195 <discharge_table_nn> | 1338 <current_gauge> |
1196 <discharge_table_gauge> | 1339 <dc:for-each> |
1197 <dc:for-each> | 1340 <gauge name="{$gauge_name} ({dc:date-format('dd.MM.yyyy', $start_time)})" |
1198 <gauge name="{$gauge_name}" | 1341 factory="gaugedischarge" target_out="{$out}" |
1199 factory="gaugedischarge" target_out="{$out}" | 1342 ids="{$gauge_name}"/> |
1200 from="{$g_start}" | 1343 </dc:for-each> |
1201 to="{$g_stop}" | 1344 </current_gauge> |
1202 ids="{$gauge_name}"/> | |
1203 </dc:for-each> | |
1204 </discharge_table_gauge> | |
1205 </discharge_table_nn> | |
1206 </dc:if> | 1345 </dc:if> |
1207 </dc:context> | 1346 </dc:context> |
1208 </dc:macro> | |
1209 | |
1210 <dc:comment>TODO: Why is this just a copy of the discharge_table_gauge?</dc:comment> | |
1211 <dc:macro name="discharge_computed"> | |
1212 <dc:call-macro name="discharge_table_gauge"/> | |
1213 </dc:macro> | |
1214 | |
1215 <dc:comment>TODO: Why is this just a copy of the discharge_table_gauge?</dc:comment> | |
1216 <dc:macro name="discharge_fix_wq"> | |
1217 <dc:call-macro name="discharge_table_gauge"/> | |
1218 </dc:macro> | 1347 </dc:macro> |
1219 | 1348 |
1220 <dc:macro name="qsectors"> | 1349 <dc:macro name="qsectors"> |
1221 <qsector factory="qsectors" ids="{$river_id}" target_out="{$out}" /> | 1350 <qsector factory="qsectors" ids="{$river_id}" target_out="{$out}" /> |
1222 </dc:macro> | 1351 </dc:macro> |
1837 fp.kind_id AS kind_id, | 1966 fp.kind_id AS kind_id, |
1838 flk.name AS kind_name | 1967 flk.name AS kind_name |
1839 FROM floodplain fp | 1968 FROM floodplain fp |
1840 JOIN floodplain_kinds flk on fp.kind_id = flk.id | 1969 JOIN floodplain_kinds flk on fp.kind_id = flk.id |
1841 WHERE river_id = ${river_id} | 1970 WHERE river_id = ${river_id} |
1842 AND kind_id=1 | |
1843 </dc:statement> | 1971 </dc:statement> |
1844 <dc:if test="dc:has-result()"> | 1972 <dc:if test="dc:has-result()"> |
1845 <floodplain> | 1973 <floodplain> |
1846 <dc:filter expr="$kind_id=1"> | 1974 <dc:filter expr="$kind_id=1"> |
1847 <dc:for-each> | 1975 <dc:for-each> |
2324 </dc:properties> | 2452 </dc:properties> |
2325 <dc:if test="dc:has-result()"> | 2453 <dc:if test="dc:has-result()"> |
2326 <officiallines> | 2454 <officiallines> |
2327 <dc:for-each> | 2455 <dc:for-each> |
2328 <column name="{$olname}" | 2456 <column name="{$olname}" |
2329 ids="additionals-wstv-{$wstcolpos}-{$wstid}" | 2457 ids="official-wstv-{$wstcolpos}-{$wstid}" |
2330 factory="staticwqkms" target_out="{$out}"/> | 2458 factory="staticwqkms" target_out="{$out}"/> |
2331 </dc:for-each> | 2459 </dc:for-each> |
2332 </officiallines> | 2460 </officiallines> |
2333 </dc:if> | 2461 </dc:if> |
2334 </dc:container-context> | 2462 </dc:container-context> |
2335 </dc:if> | 2463 </dc:if> |
2359 </dc:context> | 2487 </dc:context> |
2360 </dc:macro> | 2488 </dc:macro> |
2361 | 2489 |
2362 <dc:macro name="all-user-artifacts"> | 2490 <dc:macro name="all-user-artifacts"> |
2363 <dc:context connection="user"> | 2491 <dc:context connection="user"> |
2364 <dc:comment>Select collections and masterartifacts.</dc:comment> | 2492 <dc:comment>Select collections and masterartifacts. |
2493 XXX: The cast is a quick hack because the ld_* values are | |
2494 now TEXT fields. To properly fix / asses the problems here | |
2495 an SLT evaluation is needed. | |
2496 </dc:comment> | |
2365 <dc:statement> | 2497 <dc:statement> |
2366 SELECT c.name AS collection_name, | 2498 SELECT c.name AS collection_name, |
2367 ma.id AS a_id, | 2499 ma.id AS a_id, |
2368 ma.state AS a_state, | 2500 ma.state AS a_state, |
2369 ma.gid AS a_gid, | 2501 ma.gid AS a_gid, |
2370 ma.creation AS a_creation, | 2502 ma.creation AS a_creation, |
2371 COALESCE(ma.ld_mode, '') AS ld_m, | 2503 CAST(COALESCE(ma.ld_mode, '') AS VARCHAR(255)) AS ld_m, |
2372 COALESCE(ma.ld_locations, '') AS ld_l, | 2504 CAST(COALESCE(ma.ld_locations, '') AS VARCHAR(255)) AS ld_l, |
2373 COALESCE(ma.ld_from, '') AS ld_f, | 2505 CAST(COALESCE(ma.ld_from, '') AS VARCHAR(255)) AS ld_f, |
2374 COALESCE(ma.ld_to, '') AS ld_t, | 2506 CAST(COALESCE(ma.ld_to, '') AS VARCHAR(255)) AS ld_t, |
2375 o.name AS out_name, | 2507 o.name AS out_name, |
2376 o.id AS out_id, | 2508 o.id AS out_id, |
2377 f.name AS facet_name, | 2509 f.name AS facet_name, |
2378 f.num AS facet_num, | 2510 f.num AS facet_num, |
2379 f.description AS facet_description, | 2511 f.description AS facet_description, |