Mercurial > dive4elements > river
comparison artifacts/doc/conf/meta-data.xml @ 7327:55d9c184f58c
issue1345: DC: group bed heights of single years by year.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Tue, 15 Oct 2013 07:06:19 +0200 |
parents | cb3238edf0ee |
children | f044fe2fa258 |
comparison
equal
deleted
inserted
replaced
7324:24023630f693 | 7327:55d9c184f58c |
---|---|
1617 | 1617 |
1618 <dc:macro name="bed-heights-single"> | 1618 <dc:macro name="bed-heights-single"> |
1619 <single> | 1619 <single> |
1620 <dc:context> | 1620 <dc:context> |
1621 <dc:statement> | 1621 <dc:statement> |
1622 SELECT id AS bedh_id, | 1622 SELECT bhs.id AS bedh_id, |
1623 year AS bedh_year, | 1623 bhs.year AS bedh_year, |
1624 description AS bedh_descr | 1624 bhs.description AS bedh_descr, |
1625 FROM bed_height_single | 1625 bht.id AS type_id |
1626 WHERE river_id = ${river_id} | 1626 FROM bed_height_single bhs |
1627 AND lower(description) NOT LIKE '%epoch%' | 1627 JOIN bed_height_type bht ON bht.id = bhs.type_id |
1628 WHERE bhs.river_id = ${river_id} | |
1629 AND lower(bhs.description) NOT LIKE '%epoch%' | |
1628 </dc:statement> | 1630 </dc:statement> |
1629 <dc:for-each> | 1631 <dc:if test="dc:has-result()"> |
1630 <height factory="bedheight" target_out="{$out}" | 1632 <dc:group expr="$bedh_year"> |
1631 ids="bedheight-single-{$bedh_id}-{$bedh_year}" | 1633 <cross-sections name="{dc:group-key()}"> |
1632 description="{$bedh_descr}"/> | 1634 <dc:for-each> |
1633 </dc:for-each> | 1635 <height factory="bedheight" target_out="{$out}" |
1636 ids="bedheight-single-{$bedh_id}-{$bedh_year}" | |
1637 description="{$type} {$bedh_descr}"/> | |
1638 </dc:for-each> | |
1639 </cross-sections> | |
1640 </dc:group> | |
1641 <dc:if> | |
1634 </dc:context> | 1642 </dc:context> |
1635 </single> | 1643 </single> |
1636 </dc:macro> | 1644 </dc:macro> |
1637 | 1645 |
1638 <dc:macro name="bed-heights-epoch"> | 1646 <dc:macro name="bed-heights-epoch"> |