comparison flys-artifacts/doc/conf/meta-data.xml @ 3589:ab447cd29b73

More former calculations in FixA DC. flys-artifacts/trunk@5205 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Wed, 15 Aug 2012 07:41:11 +0000
parents 76571c601d06
children 4f2470cbf72c
comparison
equal deleted inserted replaced
3588:76571c601d06 3589:ab447cd29b73
1520 <dc:context> 1520 <dc:context>
1521 <!-- average und deviation ls_0 . ls_1 ...--> 1521 <!-- average und deviation ls_0 . ls_1 ...-->
1522 <dc:statement> 1522 <dc:statement>
1523 SELECT name AS facet_name, num as facet_num, description AS facet_description 1523 SELECT name AS facet_name, num as facet_num, description AS facet_description
1524 FROM facets 1524 FROM facets
1525 WHERE out_id = ${out_id} AND ( name LIKE 'fix_deviation_ls%' OR name LIKE 'fix_sector_average_ls%' ) 1525 WHERE out_id = ${out_id} AND ( name LIKE 'fix_deviation_ls%' OR name LIKE 'fix_sector_average_ls%' OR name LIKE 'fix_analysis_events_ls%' OR name LIKE 'fix_reference_events_ls%' )
1526 ORDER BY num ASC, name DESC 1526 ORDER BY num ASC, name DESC
1527 </dc:statement> 1527 </dc:statement>
1528 <waterlevels> 1528 <waterlevels>
1529 <dc:attribute name="description" value="${river} ${a_creation} ${collection_name}"/> 1529 <dc:attribute name="description" value="${river} ${a_creation} ${collection_name}"/>
1530 <dc:elements> 1530 <dc:elements>
1592 </dc:context> 1592 </dc:context>
1593 </dc:elements> 1593 </dc:elements>
1594 </waterlevels> 1594 </waterlevels>
1595 </dc:if> 1595 </dc:if>
1596 1596
1597 <dc:if test="dc:contains($artifact-outs, 'fix_derivate_curve')">
1598 <waterlevels>
1599 <dc:elements>
1600 <dc:context>
1601 <dc:statement>
1602 SELECT m.id AS a_id, m.state AS a_state, m.gid AS a_gid, m.creation AS a_creation
1603 FROM master_artifacts m
1604 WHERE m.collection_id = ${collection_id} AND m.gid &lt;&gt; CAST(${artifact-id} AS uuid)
1605 AND EXISTS (
1606 SELECT id FROM artifact_data ad WHERE ad.artifact_id = m.id AND k = 'river' AND v = ${river})
1607 </dc:statement>
1608 <dc:elements>
1609
1610 <dc:context>
1611 <dc:statement>
1612 SELECT id AS out_id
1613 FROM outs
1614 WHERE artifact_id = ${a_id} AND name = 'fix_derivate_curve'
1615 </dc:statement>
1616 <dc:elements>
1617 <dc:context>
1618 <dc:statement>
1619 SELECT name AS facet_name, num as facet_num, description AS facet_description
1620 FROM facets
1621 WHERE out_id = ${out_id} and name = 'fix_derivate'
1622 ORDER BY num ASC, name DESC
1623 </dc:statement>
1624 <waterlevels>
1625 <dc:attribute name="description" value="${river} ${a_creation} ${collection_name}"/>
1626 <dc:elements>
1627 <dc:element name="${facet_name}">
1628 <dc:attribute name="description" value="${facet_description}"/>
1629 <dc:attribute name="ids" value="${facet_num}"/>
1630 <dc:attribute name="factory" value="fixanalysis"/>
1631 <dc:attribute name="artifact-id" value="${a_gid}"/>
1632 <dc:attribute name="out" value="fix_derivate_curve"/>
1633 </dc:element>
1634 </dc:elements>
1635 </waterlevels>
1636 </dc:context>
1637 </dc:elements>
1638 </dc:context>
1639 </dc:elements>
1640 </dc:context>
1641 </dc:elements>
1642 </waterlevels>
1643 </dc:if>
1644
1597 <dc:if test="dc:contains($artifact-outs, 'fix_wq_curve')"> 1645 <dc:if test="dc:contains($artifact-outs, 'fix_wq_curve')">
1598 <waterlevels> 1646 <waterlevels>
1599 <dc:elements> 1647 <dc:elements>
1600 <dc:context> 1648 <dc:context>
1601 <dc:statement> 1649 <dc:statement>
1677 </dc:if> 1725 </dc:if>
1678 <dc:comment> 1726 <dc:comment>
1679 WATERLEVELS - ONLY SHOW Ws 1727 WATERLEVELS - ONLY SHOW Ws
1680 </dc:comment> 1728 </dc:comment>
1681 1729
1682 <dc:if test="dc:contains($artifact-outs, 'waterlevels')"> 1730 <!-- TODO doesnt work nicely for fix/wq-diags. -->
1731 <dc:if test="dc:contains($artifact-outs, 'waterlevels') or (dc:contains($artifact-outs, 'fix_wq_curve'))">
1683 <waterlevels> 1732 <waterlevels>
1684 <dc:elements> 1733 <dc:elements>
1685 <dc:context> 1734 <dc:context>
1686 <dc:statement> 1735 <dc:statement>
1687 SELECT m.id AS a_id, m.state AS a_state, m.gid AS a_gid, m.creation AS a_creation 1736 SELECT m.id AS a_id, m.state AS a_state, m.gid AS a_gid, m.creation AS a_creation

http://dive4elements.wald.intevation.org