Mercurial > dive4elements > river
comparison artifacts/doc/conf/meta-data.xml @ 9116:edc3958b3ed2
Conf files for the infrastructure datacage extension
author | mschaefer |
---|---|
date | Mon, 04 Jun 2018 12:50:39 +0200 |
parents | bfc0da2aa3aa |
children | 623b51bf03d7 |
comparison
equal
deleted
inserted
replaced
9115:a165cd63099f | 9116:edc3958b3ed2 |
---|---|
1615 </sinfo_predefined_flowdepths> | 1615 </sinfo_predefined_flowdepths> |
1616 | 1616 |
1617 <sinfo_predefined_channel> | 1617 <sinfo_predefined_channel> |
1618 <dc:call-macro name="sinfo_predefined_channel"/> | 1618 <dc:call-macro name="sinfo_predefined_channel"/> |
1619 </sinfo_predefined_channel> | 1619 </sinfo_predefined_channel> |
1620 | |
1621 <sinfo_infrastructure> | |
1622 <dc:call-macro name="sinfo_infrastructure"/> | |
1623 </sinfo_infrastructure> | |
1620 | 1624 |
1621 <sinfo_predefined_tkh> | 1625 <sinfo_predefined_tkh> |
1622 <dc:call-macro name="sinfo_predefined_tkh-berechnung"/> | 1626 <dc:call-macro name="sinfo_predefined_tkh-berechnung"/> |
1623 <dc:call-macro name="sinfo_predefined_tkh-messung"/> | 1627 <dc:call-macro name="sinfo_predefined_tkh-messung"/> |
1624 </sinfo_predefined_tkh> | 1628 </sinfo_predefined_tkh> |
3419 <dc:macro name="sinfo_predefined_channel"> | 3423 <dc:macro name="sinfo_predefined_channel"> |
3420 <dc:context> | 3424 <dc:context> |
3421 <dc:statement> | 3425 <dc:statement> |
3422 SELECT s.id AS id, MIN(s.filename) AS seriesname, MIN(v.station) AS km_min, MAX(v.station) AS km_max, | 3426 SELECT s.id AS id, MIN(s.filename) AS seriesname, MIN(v.station) AS km_min, MAX(v.station) AS km_max, |
3423 MIN(s.filename) || '<br />' | 3427 MIN(s.filename) || '<br />' |
3424 || '[km ' || MIN(v.station) || ' - ' || MAX(v.station) || ']<br />' | 3428 || MIN(s.kmrange_info) || ']<br />' |
3425 || MIN(s.year_from) || ' - ' || MIN(s.year_to) || '<br />' AS info | 3429 || MIN(s.year_from) || ' - ' || MIN(s.year_to) || '<br />' AS info |
3426 FROM channel s INNER JOIN channel_values v ON s.id=v.channel_id | 3430 FROM channel s INNER JOIN channel_values v ON s.id=v.channel_id |
3427 WHERE (s.river_id=${river_id}) | 3431 WHERE (s.river_id=${river_id}) |
3428 AND (v.station BETWEEN ${fromkm}-0.0001 AND ${tokm}+0.0001) | 3432 AND (v.station BETWEEN ${fromkm}-0.0001 AND ${tokm}+0.0001) |
3429 GROUP BY s.id | 3433 GROUP BY s.id |
3456 <dc:context> | 3460 <dc:context> |
3457 <dc:statement> | 3461 <dc:statement> |
3458 SELECT sc.tkh_id AS tkh_id, sc.id AS tkh_col_id, MIN(sc.name) AS tkh_col_name, | 3462 SELECT sc.tkh_id AS tkh_id, sc.id AS tkh_col_id, MIN(sc.name) AS tkh_col_name, |
3459 MIN(s.filename) AS tkh_name, MIN(v.station) AS km_min, MAX(v.station) AS km_max, | 3463 MIN(s.filename) AS tkh_name, MIN(v.station) AS km_min, MAX(v.station) AS km_max, |
3460 MIN(s.filename) || '<br />' | 3464 MIN(s.filename) || '<br />' |
3461 || '[km ' || MIN(v.station) || ' - ' || MAX(v.station) || ']<br />' | 3465 || MIN(s.kmrange_info) || ']<br />' |
3462 || MIN(s.sounding_info) || '<br />' | 3466 || MIN(s.sounding_info) || '<br />' |
3463 || MIN(s.evaluation_by) AS info | 3467 || MIN(s.evaluation_by) AS info |
3464 FROM tkh_column sc INNER JOIN tkh s ON sc.tkh_id=s.id | 3468 FROM tkh_column sc INNER JOIN tkh s ON sc.tkh_id=s.id |
3465 INNER JOIN tkh_values v ON sc.id=v.tkh_column_id | 3469 INNER JOIN tkh_values v ON sc.id=v.tkh_column_id |
3466 WHERE (s.river_id=${river_id}) | 3470 WHERE (s.river_id=${river_id}) |
3499 <dc:macro name="sinfo_predefined_depthevol"> | 3503 <dc:macro name="sinfo_predefined_depthevol"> |
3500 <dc:context> | 3504 <dc:context> |
3501 <dc:statement> | 3505 <dc:statement> |
3502 SELECT s.id AS depthevol_id, MIN(s.filename) AS depthevol_name, MIN(v.station) AS km_min, MAX(v.station) AS km_max, | 3506 SELECT s.id AS depthevol_id, MIN(s.filename) AS depthevol_name, MIN(v.station) AS km_min, MAX(v.station) AS km_max, |
3503 MIN(s.filename) || '<br />' | 3507 MIN(s.filename) || '<br />' |
3504 || '[km ' || MIN(v.station) || ' - ' || MAX(v.station) || ']<br />' | 3508 || MIN(s.kmrange_info) || ']<br />' |
3505 || MIN(s.start_year) || ' - ' || MIN(s.reference_year) || '<br />' | 3509 || MIN(s.start_year) || ' - ' || MIN(s.reference_year) || '<br />' |
3506 || MIN(s.old_sounding) || ' - ' || MIN(s.curr_sounding) || '<br />' | 3510 || MIN(s.old_sounding) || ' - ' || MIN(s.curr_sounding) || '<br />' |
3507 || MIN(s.old_glw) || ' - ' || MIN(s.curr_glw) AS info | 3511 || MIN(s.old_glw) || ' - ' || MIN(s.curr_glw) AS info |
3508 FROM depth_evolution s INNER JOIN depth_evolution_values v ON s.id=v.depth_evolution_id | 3512 FROM depth_evolution s INNER JOIN depth_evolution_values v ON s.id=v.depth_evolution_id |
3509 WHERE (s.river_id=${river_id}) | 3513 WHERE (s.river_id=${river_id}) |
3527 <dc:context> | 3531 <dc:context> |
3528 <dc:statement> | 3532 <dc:statement> |
3529 SELECT sc.flow_depth_id AS flowdepth_id, sc.id AS flowdepth_col_id, MIN(sc.name) AS flowdepth_col_name, | 3533 SELECT sc.flow_depth_id AS flowdepth_id, sc.id AS flowdepth_col_id, MIN(sc.name) AS flowdepth_col_name, |
3530 MIN(s.filename) AS flowdepth_name, MIN(v.station) AS km_min, MAX(v.station) AS km_max, | 3534 MIN(s.filename) AS flowdepth_name, MIN(v.station) AS km_min, MAX(v.station) AS km_max, |
3531 MIN(s.filename) || '<br />' | 3535 MIN(s.filename) || '<br />' |
3532 || '[km ' || MIN(v.station) || ' - ' || MAX(v.station) || ']<br />' | 3536 || MIN(s.kmrange_info) || ']<br />' |
3533 || MIN(s.sounding_info) || '<br />' | 3537 || MIN(s.sounding_info) || '<br />' |
3534 || MIN(s.evaluation_by) AS info | 3538 || MIN(s.evaluation_by) AS info |
3535 FROM flow_depth_column sc INNER JOIN flow_depth s ON sc.flow_depth_id=s.id | 3539 FROM flow_depth_column sc INNER JOIN flow_depth s ON sc.flow_depth_id=s.id |
3536 INNER JOIN flow_depth_values v ON sc.id=v.flow_depth_column_id | 3540 INNER JOIN flow_depth_values v ON sc.id=v.flow_depth_column_id |
3537 WHERE (s.river_id=${river_id}) | 3541 WHERE (s.river_id=${river_id}) |
3549 </dc:group> | 3553 </dc:group> |
3550 </dc:if> | 3554 </dc:if> |
3551 </dc:context> | 3555 </dc:context> |
3552 </dc:macro> | 3556 </dc:macro> |
3553 | 3557 |
3558 <!-- infrastructure height imported from CSV-files for S-INFO --> | |
3559 <dc:macro name="sinfo_infrastructure"> | |
3560 <dc:context> | |
3561 <dc:statement> | |
3562 SELECT s.id AS id, MIN(s.filename) AS seriesname, MIN(v.station) AS km_min, MAX(v.station) AS km_max, | |
3563 MIN(x.name) AS typename, | |
3564 MIN(s.filename) || '<br />' | |
3565 || MIN(s.kmrange_info) || '<br />' | |
3566 || MIN(s.year) || '<br />' AS info | |
3567 FROM infrastructure s INNER JOIN infrastructure_values v ON s.id=v.infrastructure_id | |
3568 INNER JOIN annotation_types x ON s.annotation_type_id=x.id | |
3569 WHERE (s.river_id=${river_id}) | |
3570 AND (v.station BETWEEN ${fromkm}-0.0001 AND ${tokm}+0.0001) | |
3571 GROUP BY s.id | |
3572 ORDER BY MIN(s.filename) DESC; | |
3573 </dc:statement> | |
3574 <dc:if test="dc:has-result()"> | |
3575 <dc:for-each> | |
3576 <infrastructureseries name="{$seriesname}" ids="infrastructurex-{$id}-{$seriesname}" factory="infrastructuref" target_out="{$out}" info="{$info}"/> | |
3577 </dc:for-each> | |
3578 </dc:if> | |
3579 </dc:context> | |
3580 </dc:macro> | |
3581 | |
3554 </datacage> | 3582 </datacage> |
3555 </dc:template> | 3583 </dc:template> |