Mercurial > dive4elements > river
comparison artifacts/doc/conf/meta-data.xml @ 7236:a9bd4a23a852
(issue1474) Add datacage loading for SQ Relations
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Wed, 02 Oct 2013 17:04:23 +0200 |
parents | ff7ab6b390a9 |
children | 36fa4c752009 |
comparison
equal
deleted
inserted
replaced
7235:03201eaf594f | 7236:a9bd4a23a852 |
---|---|
293 <dc:call-macro name="basedata_1_additionals"/> | 293 <dc:call-macro name="basedata_1_additionals"/> |
294 <dc:call-macro name="basedata_2_fixations"/> | 294 <dc:call-macro name="basedata_2_fixations"/> |
295 <dc:call-macro name="basedata_4_heightmarks-points"/> | 295 <dc:call-macro name="basedata_4_heightmarks-points"/> |
296 <dc:call-macro name="basedata_5_flood-protections"/> | 296 <dc:call-macro name="basedata_5_flood-protections"/> |
297 </dc:if> | 297 </dc:if> |
298 </dc:when> | |
299 <dc:when test="starts-with($out, 'sq_relation')"> | |
300 <dc:call-macro name="sqrelations"/> | |
298 </dc:when> | 301 </dc:when> |
299 </dc:choose> | 302 </dc:choose> |
300 </dc:iterate> | 303 </dc:iterate> |
301 </dc:otherwise> | 304 </dc:otherwise> |
302 </dc:choose> | 305 </dc:choose> |
1616 </soundings_width> | 1619 </soundings_width> |
1617 </dc:if> | 1620 </dc:if> |
1618 </dc:context> | 1621 </dc:context> |
1619 </dc:macro> | 1622 </dc:macro> |
1620 | 1623 |
1624 <dc:macro name="sqrelations"> | |
1625 <dc:context> | |
1626 <dc:statement> | |
1627 SELECT sq.description AS description, | |
1628 ti.start_time AS start_time, | |
1629 ti.stop_time AS stop_time, | |
1630 ms.name AS station_name, | |
1631 lower(sqv.parameter) AS parameter, | |
1632 sqv.id AS sqvid | |
1633 FROM sq_relation sq | |
1634 JOIN time_intervals ti ON ti.id = sq.time_interval_id | |
1635 JOIN rivers r ON r.id = sq.river_id | |
1636 JOIN sq_relation_value sqv ON sqv.sq_relation_id = sq.id | |
1637 JOIN measurement_station ms ON sqv.measurement_station_id = ms.id | |
1638 WHERE r.id = ${river_id} | |
1639 </dc:statement> | |
1640 <dc:if test="dc:has-result()"> | |
1641 <sq_relations> | |
1642 <dc:filter expr="$out = concat('sq_relation_', $parameter)"> | |
1643 <dc:group expr="$station_name"> | |
1644 <station description="{dc:group-key()}"> | |
1645 <dc:for-each> | |
1646 <dc:variable name="combined_desc" expr="concat(dc:date-format('yyyy', $start_time), ' bis ', dc:date-format('yyyy', $stop_time))"/> | |
1647 <sqvalue factory="staticsqrelation" target_out="{$out}" | |
1648 ids="{$sqvid};{$station_name}: {$combined_desc}" description="{$combined_desc}"/> | |
1649 </dc:for-each> | |
1650 </station> | |
1651 </dc:group> | |
1652 </dc:filter> | |
1653 </sq_relations> | |
1654 </dc:if> | |
1655 </dc:context> | |
1656 </dc:macro> | |
1657 | |
1621 <dc:macro name="basedata_0_macro"> | 1658 <dc:macro name="basedata_0_macro"> |
1622 <dc:filter expr="$kind = 0"> | 1659 <dc:filter expr="$kind = 0"> |
1623 <dc:if test="dc:has-result()"> | 1660 <dc:if test="dc:has-result()"> |
1624 <basedata> | 1661 <basedata> |
1625 <dc:group expr="$wst_description"> | 1662 <dc:group expr="$wst_description"> |