Mercurial > dive4elements > river
comparison artifacts/doc/conf/meta-data.xml @ 9299:4a6cc7c6716a
uinfo.inundation_duration veg'zone select
author | gernotbelger |
---|---|
date | Wed, 25 Jul 2018 14:42:44 +0200 |
parents | 77f24792d75f |
children | 517b93254995 |
comparison
equal
deleted
inserted
replaced
9298:0b1a51b0c42e | 9299:4a6cc7c6716a |
---|---|
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 | 145 |
146 <dc:when test="$out = 'uinfo_salix_line'"> | 146 <dc:when test="$out = 'uinfo_salix_line'"> |
147 <dc:call-macro name="annotations" /> | 147 <dc:call-macro name="annotations" /> |
148 </dc:when> | 148 </dc:when> |
149 </dc:choose> | 149 </dc:choose> |
150 </dc:iterate> | 150 </dc:iterate> |
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_curve'"> | 322 <dc:when test="$out = 'sinfo_flood_duration_curve'"> |
323 <dc:call-macro name="longitudinal-section-prototype" /> | 323 <dc:call-macro name="longitudinal-section-prototype" /> |
324 </dc:when> | 324 </dc:when> |
325 | 325 |
326 <dc:when test="$out = 'uinfo_salix_line'"> | 326 <dc:when test="$out = 'uinfo_salix_line'"> |
327 <dc:call-macro name="longitudinal-section-prototype" /> | 327 <dc:call-macro name="longitudinal-section-prototype" /> |
328 </dc:when> | |
329 <dc:when test="$out = 'uinfo.inundation_duration.vegzoneselect'"> | |
330 <dc:variable name="vegzonedata" expr="dc:defaultvegetationzone()"></dc:variable> | |
331 <defaultVegetationZone factory="dummy" target_out="{$out}" data="{$vegzonedata}"></defaultVegetationZone> | |
328 </dc:when> | 332 </dc:when> |
329 </dc:choose> | 333 </dc:choose> |
330 </dc:iterate> | 334 </dc:iterate> |
331 </dc:otherwise> | 335 </dc:otherwise> |
332 </dc:choose> | 336 </dc:choose> |
418 <dc:when test="$out = 'sinfo_flow_depth_development_peryear'"> | 422 <dc:when test="$out = 'sinfo_flow_depth_development_peryear'"> |
419 <dc:call-macro name="longitudinal-section-user-prototype" /> | 423 <dc:call-macro name="longitudinal-section-user-prototype" /> |
420 </dc:when> | 424 </dc:when> |
421 <dc:when test="$out = 'sinfo_tkk'"> | 425 <dc:when test="$out = 'sinfo_tkk'"> |
422 <dc:call-macro name="longitudinal-section-user-prototype" /> | 426 <dc:call-macro name="longitudinal-section-user-prototype" /> |
427 </dc:when> | |
428 <dc:when test="$out = 'uinfo.inundation_duration.vegzoneselect'"> | |
429 <dc:call-macro name="vegetationzones" /> | |
423 </dc:when> | 430 </dc:when> |
424 <dc:comment> Discharge curves </dc:comment> | 431 <dc:comment> Discharge curves </dc:comment> |
425 <dc:when test="$out = 'computed_discharge_curve'"> | 432 <dc:when test="$out = 'computed_discharge_curve'"> |
426 <dc:call-macro name="discharge-curve-user-prototype" /> | 433 <dc:call-macro name="discharge-curve-user-prototype" /> |
427 </dc:when> | 434 </dc:when> |
1443 </dc:filter> | 1450 </dc:filter> |
1444 </dc:macro> | 1451 </dc:macro> |
1445 | 1452 |
1446 <dc:macro name="basedata_3_officials"> | 1453 <dc:macro name="basedata_3_officials"> |
1447 <dc:call-macro name="basedata_3_macro"> | 1454 <dc:call-macro name="basedata_3_macro"> |
1448 <dc:variable name="start_year" expr="dc:date-format('yyyy', $start_time)" /> | 1455 <dc:variable name="start_year" expr="dc:date-format('yyyy', $start_time)" /> |
1449 <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)}" /> | 1456 <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)}" /> |
1450 </dc:call-macro> | 1457 </dc:call-macro> |
1451 </dc:macro> | 1458 </dc:macro> |
1452 | 1459 |
1453 <dc:macro name="basedata_3_officials_wq"> | 1460 <dc:macro name="basedata_3_officials_wq"> |
1575 </dc:filter> | 1582 </dc:filter> |
1576 </dc:macro> | 1583 </dc:macro> |
1577 | 1584 |
1578 <dc:macro name="basedata_7_waterlevels"> | 1585 <dc:macro name="basedata_7_waterlevels"> |
1579 <dc:call-macro name="basedata_7_macro"> | 1586 <dc:call-macro name="basedata_7_macro"> |
1580 <dc:variable name="start_year" expr="dc:date-format('yyyy', $start_time)" /> | 1587 <dc:variable name="start_year" expr="dc:date-format('yyyy', $start_time)" /> |
1581 <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)}" /> | 1588 <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)}" /> |
1582 </dc:call-macro> | 1589 </dc:call-macro> |
1583 </dc:macro> | 1590 </dc:macro> |
1584 | 1591 |
1585 <dc:macro name="basedata_7_waterlevels_wq"> | 1592 <dc:macro name="basedata_7_waterlevels_wq"> |
2073 </dc:macro> | 2080 </dc:macro> |
2074 | 2081 |
2075 <dc:macro name="bed-heights-single"> | 2082 <dc:macro name="bed-heights-single"> |
2076 <single> | 2083 <single> |
2077 <dc:context> | 2084 <dc:context> |
2078 <dc:call-macro name="bed-heights-statement" /> | 2085 <dc:call-macro name="bed-heights-statement" /> |
2079 <dc:if test="dc:has-result()"> | 2086 <dc:if test="dc:has-result()"> |
2080 <dc:group expr="dc:coalesce($bedh_year, 'sonstige')"> | 2087 <dc:group expr="dc:coalesce($bedh_year, 'sonstige')"> |
2081 <heights name="{dc:group-key()}" description="{dc:group-key()}"> | 2088 <heights name="{dc:group-key()}" description="{dc:group-key()}"> |
2082 <dc:call-macro name="bed-heights-factory_MW_TW_KL" /> | 2089 <dc:call-macro name="bed-heights-factory_MW_TW_KL" /> |
2083 </heights> | 2090 </heights> |
3222 wr.a AS deffrom, | 3229 wr.a AS deffrom, |
3223 wr.b AS defto, | 3230 wr.b AS defto, |
3224 w.sinfo_selection | 3231 w.sinfo_selection |
3225 FROM wst_columns wc | 3232 FROM wst_columns wc |
3226 JOIN wsts w ON wc.wst_id = w.id | 3233 JOIN wsts w ON wc.wst_id = w.id |
3227 JOIN wst_ranges wr ON wc.id = wr.wst_column_id | 3234 JOIN wst_ranges wr ON wc.id = |
3228 LEFT JOIN time_intervals ti ON wc.time_interval_id = ti.id | 3235 wr.wst_column_id |
3236 LEFT JOIN time_intervals ti ON wc.time_interval_id = ti.id | |
3229 WHERE w.river_id = ${river_id} AND | 3237 WHERE w.river_id = ${river_id} AND |
3230 NOT((${tokm} < wr.a) or (${fromkm} > wr.b)) | 3238 NOT((${tokm} < wr.a) or (${fromkm} > wr.b)) |
3231 ORDER BY wst_column_position | 3239 ORDER BY wst_column_position |
3232 </dc:statement> | 3240 </dc:statement> |
3233 <dc:macro-body /> | 3241 <dc:macro-body /> |
3475 || MIN(s.kmrange_info) || ']<br />' | 3483 || MIN(s.kmrange_info) || ']<br />' |
3476 || MIN(s.year_from) || ' - ' || MIN(s.year_to) || '<br />' AS info | 3484 || MIN(s.year_from) || ' - ' || MIN(s.year_to) || '<br />' AS info |
3477 FROM channel s | 3485 FROM channel s |
3478 INNER JOIN channel_values v ON s.id=v.channel_id | 3486 INNER JOIN channel_values v ON s.id=v.channel_id |
3479 WHERE (s.river_id=${river_id}) | 3487 WHERE (s.river_id=${river_id}) |
3480 AND (v.station BETWEEN ${fromkm}-0.0001 AND ${tokm}+0.0001) | 3488 AND (v.station BETWEEN ${fromkm}-0.0001 |
3489 AND ${tokm}+0.0001) | |
3481 GROUP BY s.id | 3490 GROUP BY s.id |
3482 ORDER BY MIN(s.year_to) DESC | 3491 ORDER BY MIN(s.year_to) DESC |
3483 </dc:statement> | 3492 </dc:statement> |
3484 <dc:if test="dc:has-result()"> | 3493 <dc:if test="dc:has-result()"> |
3485 <dc:for-each> | 3494 <dc:for-each> |
3513 || MIN(s.kmrange_info) || ']<br />' | 3522 || MIN(s.kmrange_info) || ']<br />' |
3514 || MIN(s.sounding_info) || '<br />' | 3523 || MIN(s.sounding_info) || '<br />' |
3515 || MIN(s.evaluation_by) AS info | 3524 || MIN(s.evaluation_by) AS info |
3516 FROM tkh_column sc | 3525 FROM tkh_column sc |
3517 INNER JOIN tkh s ON sc.tkh_id=s.id | 3526 INNER JOIN tkh s ON sc.tkh_id=s.id |
3518 INNER JOIN tkh_values v ON sc.id=v.tkh_column_id | 3527 INNER JOIN tkh_values |
3528 v ON sc.id=v.tkh_column_id | |
3519 WHERE (s.river_id=${river_id}) | 3529 WHERE (s.river_id=${river_id}) |
3520 AND (lower(s.groupname)=${tkh_groupname}) | 3530 AND (lower(s.groupname)=${tkh_groupname}) |
3521 AND (v.station BETWEEN ${fromkm}-0.0001 AND ${tokm}+0.0001) | 3531 AND (v.station BETWEEN ${fromkm}-0.0001 AND ${tokm}+0.0001) |
3522 GROUP BY sc.tkh_id, sc.id | 3532 GROUP BY sc.tkh_id, sc.id |
3523 ORDER BY sc.id | 3533 ORDER BY sc.id |
3586 MIN(s.filename) || '<br />' | 3596 MIN(s.filename) || '<br />' |
3587 || MIN(s.kmrange_info) || ']<br />' | 3597 || MIN(s.kmrange_info) || ']<br />' |
3588 || MIN(s.sounding_info) || '<br />' | 3598 || MIN(s.sounding_info) || '<br />' |
3589 || MIN(s.evaluation_by) AS info | 3599 || MIN(s.evaluation_by) AS info |
3590 FROM flow_depth_column sc | 3600 FROM flow_depth_column sc |
3591 INNER JOIN flow_depth s ON sc.flow_depth_id=s.id | 3601 INNER JOIN |
3602 flow_depth s ON sc.flow_depth_id=s.id | |
3592 INNER JOIN flow_depth_values v ON sc.id=v.flow_depth_column_id | 3603 INNER JOIN flow_depth_values v ON sc.id=v.flow_depth_column_id |
3593 WHERE (s.river_id=${river_id}) | 3604 WHERE (s.river_id=${river_id}) |
3594 AND (v.station BETWEEN ${fromkm}-0.0001 AND ${tokm}+0.0001) | 3605 AND (v.station BETWEEN ${fromkm}-0.0001 AND ${tokm}+0.0001) |
3595 GROUP BY sc.flow_depth_id, sc.id | 3606 GROUP BY sc.flow_depth_id, sc.id |
3596 ORDER BY sc.id | 3607 ORDER BY sc.id |
3642 || MIN(s.kmrange_info) || '<br />' | 3653 || MIN(s.kmrange_info) || '<br />' |
3643 || MIN(s.year) || '<br />' AS info | 3654 || MIN(s.year) || '<br />' AS info |
3644 FROM collision s | 3655 FROM collision s |
3645 INNER JOIN collision_values v ON s.id=v.collision_id | 3656 INNER JOIN collision_values v ON s.id=v.collision_id |
3646 WHERE (s.river_id=${river_id}) | 3657 WHERE (s.river_id=${river_id}) |
3647 AND (v.station BETWEEN ${fromkm}-0.0001 AND ${tokm}+0.0001) | 3658 AND (v.station BETWEEN ${fromkm}-0.0001 AND |
3659 ${tokm}+0.0001) | |
3648 GROUP BY s.id | 3660 GROUP BY s.id |
3649 ORDER BY MIN(s.year) | 3661 ORDER BY MIN(s.year) |
3650 </dc:statement> | 3662 </dc:statement> |
3651 <dc:if test="dc:has-result()"> | 3663 <dc:if test="dc:has-result()"> |
3652 <dc:for-each> | 3664 <dc:for-each> |
3654 </dc:for-each> | 3666 </dc:for-each> |
3655 </dc:if> | 3667 </dc:if> |
3656 </dc:context> | 3668 </dc:context> |
3657 </dc:macro> | 3669 </dc:macro> |
3658 | 3670 |
3671 <!-- Vegetation zones, edited by the user --> | |
3672 <dc:macro name="vegetationzones"> | |
3673 <dc:filter expr="$a_state = 'state.uinfo.vegetation_zones' and $facet_name = 'csv'"> <!-- we misuse the csv-facet --> | |
3674 <dc:if test="dc:has-result()"> | |
3675 <dc:for-each> | |
3676 <dc:variable name="vegzonedata" expr="dc:data_from_artifact($a_gid,'vegzones')" /> | |
3677 <dc:variable name="vegzonedatalabel" expr="dc:get('ld_from'))" /> | |
3678 <dc:variable name="label_temp" type="string" expr="dc:coalesce($collection_name, dc:toString($a_gid))" /> | |
3679 | |
3680 <dc:element name="${facet_name}"> | |
3681 <dc:attribute name="factory" value="dummy" /> | |
3682 <dc:attribute name="target_out" value="${out}" /> | |
3683 <dc:attribute name="description" value="${label_temp}" /> | |
3684 <!-- | |
3685 | |
3686 <dc:attribute name="ids" value="${facet_num}" /> | |
3687 <dc:attribute name="artifact-id" value="${a_gid}" /> | |
3688 <dc:attribute name="out" value="${out_name}" /> | |
3689 --> | |
3690 | |
3691 <!-- veg zones string as attribute --> | |
3692 <dc:attribute name="data" value="${vegzonedata}" /> | |
3693 </dc:element> | |
3694 </dc:for-each> | |
3695 </dc:if> | |
3696 </dc:filter> | |
3697 </dc:macro> | |
3698 | |
3659 </datacage> | 3699 </datacage> |
3660 </dc:template> | 3700 </dc:template> |