comparison flys-artifacts/doc/conf/meta-data.xml @ 3582:e08bc99e097f

Show former calculations in Fix/DeltaWT DC, fixes. flys-artifacts/trunk@5198 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Mon, 13 Aug 2012 12:04:01 +0000
parents 261a7445594a
children 18d9b7af3783
comparison
equal deleted inserted replaced
3581:261a7445594a 3582:e08bc99e097f
1490 <dc:context> 1490 <dc:context>
1491 <!-- average und deviation ls_0 . ls_1 ...--> 1491 <!-- average und deviation ls_0 . ls_1 ...-->
1492 <dc:statement> 1492 <dc:statement>
1493 SELECT name AS facet_name, num as facet_num, description AS facet_description 1493 SELECT name AS facet_name, num as facet_num, description AS facet_description
1494 FROM facets 1494 FROM facets
1495 WHERE out_id = ${out_id} AND name LIKE 'fix_deviation_ls%' OR name LIKE 'fix_sector_average_ls%' 1495 WHERE out_id = ${out_id} AND ( name LIKE 'fix_deviation_ls%' OR name LIKE 'fix_sector_average_ls%' )
1496 ORDER BY num ASC, name DESC 1496 ORDER BY num ASC, name DESC
1497 </dc:statement> 1497 </dc:statement>
1498 <waterlevels> 1498 <waterlevels>
1499 <dc:attribute name="description" value="${river} ${a_creation} ${collection_name}"/> 1499 <dc:attribute name="description" value="${river} ${a_creation} ${collection_name}"/>
1500 <dc:elements> 1500 <dc:elements>
1515 </dc:elements> 1515 </dc:elements>
1516 </waterlevels> 1516 </waterlevels>
1517 </dc:if> 1517 </dc:if>
1518 1518
1519 <dc:if test="dc:contains($artifact-outs, 'fix_deltawt_curve')"> 1519 <dc:if test="dc:contains($artifact-outs, 'fix_deltawt_curve')">
1520 <waterlevels>
1521 <dc:elements>
1522 <dc:context>
1523 <dc:statement>
1524 SELECT m.id AS a_id, m.state AS a_state, m.gid AS a_gid, m.creation AS a_creation
1525 FROM master_artifacts m
1526 WHERE m.collection_id = ${collection_id} AND m.gid &lt;&gt; CAST(${artifact-id} AS uuid)
1527 AND EXISTS (
1528 SELECT id FROM artifact_data ad WHERE ad.artifact_id = m.id AND k = 'river' AND v = ${river})
1529 </dc:statement>
1530 <dc:elements>
1531
1532 <dc:context>
1533 <dc:statement>
1534 SELECT id AS out_id
1535 FROM outs
1536 WHERE artifact_id = ${a_id} AND name = 'fix_deltawt_curve'
1537 </dc:statement>
1538 <dc:elements>
1539 <dc:context>
1540 <dc:statement>
1541 SELECT name AS facet_name, num as facet_num, description AS facet_description
1542 FROM facets
1543 WHERE out_id = ${out_id} and ( name LIKE 'fix_sector_average_dwt%' OR name LIKE 'fix_deviation_dwt%' )
1544 ORDER BY num ASC, name DESC
1545 </dc:statement>
1546 <waterlevels>
1547 <dc:attribute name="description" value="${river} ${a_creation} ${collection_name}"/>
1548 <dc:elements>
1549 <dc:element name="${facet_name}">
1550 <dc:attribute name="description" value="${facet_description}"/>
1551 <dc:attribute name="ids" value="${facet_num}"/>
1552 <dc:attribute name="factory" value="fixanalysis"/>
1553 <dc:attribute name="artifact-id" value="${a_gid}"/>
1554 <dc:attribute name="out" value="fix_deltawt_curve"/>
1555 </dc:element>
1556 </dc:elements>
1557 </waterlevels>
1558 </dc:context>
1559 </dc:elements>
1560 </dc:context>
1561 </dc:elements>
1562 </dc:context>
1563 </dc:elements>
1564 </waterlevels>
1565 </dc:if>
1566
1567 <dc:if test="dc:contains($artifact-outs, 'fix_wq_curve')">
1520 <waterlevels> 1568 <waterlevels>
1521 <dc:elements> 1569 <dc:elements>
1522 <dc:context> 1570 <dc:context>
1523 <dc:statement> 1571 <dc:statement>
1524 SELECT m.id AS a_id, m.state AS a_state, m.gid AS a_gid, m.creation AS a_creation 1572 SELECT m.id AS a_id, m.state AS a_state, m.gid AS a_gid, m.creation AS a_creation
1562 </dc:context> 1610 </dc:context>
1563 </dc:elements> 1611 </dc:elements>
1564 </waterlevels> 1612 </waterlevels>
1565 </dc:if> 1613 </dc:if>
1566 1614
1567 <dc:if test="dc:contains($artifact-outs, 'fix_wq_curve')"> 1615 <dc:if test="dc:contains($artifact-outs, 'duration_curve')">
1616 <computed_discharge_curves>
1617 <dc:elements>
1618 <dc:context>
1619 <dc:statement>
1620 SELECT m.id AS a_id, m.state AS a_state, m.gid AS a_gid, m.creation AS a_creation
1621 FROM master_artifacts m
1622 WHERE m.collection_id = ${collection_id} AND m.gid &lt;&gt; CAST(${artifact-id} AS uuid)
1623 AND EXISTS (
1624 SELECT id FROM artifact_data ad WHERE ad.artifact_id = m.id AND k = 'river' AND v = ${river})
1625 </dc:statement>
1626 <dc:elements>
1627 <dc:context>
1628 <dc:statement>
1629 SELECT a.gid as aid, f.id AS fid, f.name AS facet_name, f.num AS facet_num, f.description as facet_description
1630 FROM outs as o, facets as f, artifacts as a
1631 WHERE (f.name = 'duration_curve.q' or f.name = 'duration_curve.w') and f.out_id = o.id and o.artifact_id = ${a_id} and a.id = ${a_id}
1632 </dc:statement>
1633 <dc:elements>
1634 <dc:element name="${facet_name}">
1635 <dc:attribute name="description" value="${facet_description}"/>
1636 <dc:attribute name="factory" value="winfo"/>
1637 <dc:attribute name="artifact-id" value="${aid}"/>
1638 <dc:attribute name="ids" value="${aid}"/>
1639 <dc:attribute name="out" value="duration_curve"/>
1640 </dc:element>
1641 </dc:elements>
1642 </dc:context>
1643 </dc:elements>
1644 </dc:context>
1645 </dc:elements>
1646 </computed_discharge_curves>
1647 </dc:if>
1648 <dc:comment>
1649 WATERLEVELS - ONLY SHOW Ws
1650 </dc:comment>
1651
1652 <dc:if test="dc:contains($artifact-outs, 'waterlevels')">
1568 <waterlevels> 1653 <waterlevels>
1569 <dc:elements> 1654 <dc:elements>
1570 <dc:context> 1655 <dc:context>
1571 <dc:statement> 1656 <dc:statement>
1572 SELECT m.id AS a_id, m.state AS a_state, m.gid AS a_gid, m.creation AS a_creation 1657 SELECT m.id AS a_id, m.state AS a_state, m.gid AS a_gid, m.creation AS a_creation
1610 </dc:context> 1695 </dc:context>
1611 </dc:elements> 1696 </dc:elements>
1612 </waterlevels> 1697 </waterlevels>
1613 </dc:if> 1698 </dc:if>
1614 1699
1615 <dc:if test="dc:contains($artifact-outs, 'duration_curve')">
1616 <computed_discharge_curves>
1617 <dc:elements>
1618 <dc:context>
1619 <dc:statement>
1620 SELECT m.id AS a_id, m.state AS a_state, m.gid AS a_gid, m.creation AS a_creation
1621 FROM master_artifacts m
1622 WHERE m.collection_id = ${collection_id} AND m.gid &lt;&gt; CAST(${artifact-id} AS uuid)
1623 AND EXISTS (
1624 SELECT id FROM artifact_data ad WHERE ad.artifact_id = m.id AND k = 'river' AND v = ${river})
1625 </dc:statement>
1626 <dc:elements>
1627 <dc:context>
1628 <dc:statement>
1629 SELECT a.gid as aid, f.id AS fid, f.name AS facet_name, f.num AS facet_num, f.description as facet_description
1630 FROM outs as o, facets as f, artifacts as a
1631 WHERE (f.name = 'duration_curve.q' or f.name = 'duration_curve.w') and f.out_id = o.id and o.artifact_id = ${a_id} and a.id = ${a_id}
1632 </dc:statement>
1633 <dc:elements>
1634 <dc:element name="${facet_name}">
1635 <dc:attribute name="description" value="${facet_description}"/>
1636 <dc:attribute name="factory" value="winfo"/>
1637 <dc:attribute name="artifact-id" value="${aid}"/>
1638 <dc:attribute name="ids" value="${aid}"/>
1639 <dc:attribute name="out" value="duration_curve"/>
1640 </dc:element>
1641 </dc:elements>
1642 </dc:context>
1643 </dc:elements>
1644 </dc:context>
1645 </dc:elements>
1646 </computed_discharge_curves>
1647 </dc:if>
1648 <dc:comment>
1649 WATERLEVELS - ONLY SHOW Ws
1650 </dc:comment>
1651
1652 <dc:if test="dc:contains($artifact-outs, 'waterlevels')">
1653 <waterlevels>
1654 <dc:elements>
1655 <dc:context>
1656 <dc:statement>
1657 SELECT m.id AS a_id, m.state AS a_state, m.gid AS a_gid, m.creation AS a_creation
1658 FROM master_artifacts m
1659 WHERE m.collection_id = ${collection_id} AND m.gid &lt;&gt; CAST(${artifact-id} AS uuid)
1660 AND EXISTS (
1661 SELECT id FROM artifact_data ad WHERE ad.artifact_id = m.id AND k = 'river' AND v = ${river})
1662 </dc:statement>
1663 <dc:elements>
1664
1665 <dc:context>
1666 <dc:statement>
1667 SELECT id AS out_id
1668 FROM outs
1669 WHERE artifact_id = ${a_id} AND name = 'longitudinal_section'
1670 </dc:statement>
1671 <dc:elements>
1672 <dc:context>
1673 <dc:statement>
1674 SELECT name AS facet_name, num as facet_num, description AS facet_description
1675 FROM facets
1676 WHERE out_id = ${out_id} and name = 'longitudinal_section.w'
1677 ORDER BY num ASC, name DESC
1678 </dc:statement>
1679 <waterlevels>
1680 <dc:attribute name="description" value="${river} ${a_creation} ${collection_name}"/>
1681 <dc:elements>
1682 <dc:element name="${facet_name}">
1683 <dc:attribute name="description" value="${facet_description}"/>
1684 <dc:attribute name="ids" value="${facet_num}"/>
1685 <dc:attribute name="factory" value="winfo"/>
1686 <dc:attribute name="artifact-id" value="${a_gid}"/>
1687 <dc:attribute name="out" value="longitudinal_section"/>
1688 </dc:element>
1689 </dc:elements>
1690 </waterlevels>
1691 </dc:context>
1692 </dc:elements>
1693 </dc:context>
1694 </dc:elements>
1695 </dc:context>
1696 </dc:elements>
1697 </waterlevels>
1698 </dc:if>
1699
1700 <dc:comment> 1700 <dc:comment>
1701 SHOW FLOODMAPS 1701 SHOW FLOODMAPS
1702 </dc:comment> 1702 </dc:comment>
1703 1703
1704 <dc:if test="dc:contains($artifact-outs, 'floodmap') or dc:contains($artifact-outs, 'map')"> 1704 <dc:if test="dc:contains($artifact-outs, 'floodmap') or dc:contains($artifact-outs, 'map')">

http://dive4elements.wald.intevation.org