comparison flys-artifacts/doc/conf/meta-data.xml @ 3579:accb64be866c

Add annotations to fixA longitudinal Sections. flys-artifacts/trunk@5195 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Mon, 13 Aug 2012 09:41:21 +0000
parents 416288f88763
children 261a7445594a
comparison
equal deleted inserted replaced
3578:bae185bf9d2d 3579:accb64be866c
601 <dc:call-macro name="mainvalues"/> 601 <dc:call-macro name="mainvalues"/>
602 </dc:if> 602 </dc:if>
603 <dc:if test="dc:contains($artifact-outs, 'fix_wq_curve')"> 603 <dc:if test="dc:contains($artifact-outs, 'fix_wq_curve')">
604 <dc:call-macro name="qsectors"/> 604 <dc:call-macro name="qsectors"/>
605 </dc:if> 605 </dc:if>
606 <dc:if test="dc:contains($artifact-outs, 'fix_longitudinal_section_curve')">
607 <dc:call-macro name="annotations"/>
608 </dc:if>
606 </dc:when> 609 </dc:when>
607 <dc:otherwise> 610 <dc:otherwise>
608 <dc:comment> 611 <dc:comment>
609 Non - Recommendations. 612 Non - Recommendations.
610 </dc:comment> 613 </dc:comment>
647 <dc:comment comment=" FIXATIONS ---------------------------"/> 650 <dc:comment comment=" FIXATIONS ---------------------------"/>
648 <dc:call-macro name="basedata_2_fixations_relative_point"/> 651 <dc:call-macro name="basedata_2_fixations_relative_point"/>
649 <dc:comment comment=" HOEHENMARKEN ---------------------------"/> 652 <dc:comment comment=" HOEHENMARKEN ---------------------------"/>
650 <dc:call-macro name="basedata_4_heightmarks-points-relative_points"/> 653 <dc:call-macro name="basedata_4_heightmarks-points-relative_points"/>
651 <dc:call-macro name="basedata_5_flood-protections_relative_points"/> 654 <dc:call-macro name="basedata_5_flood-protections_relative_points"/>
655 </dc:if>
656 <dc:if test="dc:contains($artifact-outs, 'fix_wq_curve')">
657 <dc:call-macro name="basedata_0"/>
658 <dc:call-macro name="basedata_1_additionals"/>
659 </dc:if>
660 <dc:if test="dc:contains($artifact-outs, 'fix_longitudinal_section_curve')">
661 <dc:call-macro name="annotations"/>
652 </dc:if> 662 </dc:if>
653 <dc:comment comment="--- non-recommendations---"/> 663 <dc:comment comment="--- non-recommendations---"/>
654 </dc:otherwise> 664 </dc:otherwise>
655 </dc:choose> 665 </dc:choose>
656 666
1455 </dc:context> 1465 </dc:context>
1456 </dc:elements> 1466 </dc:elements>
1457 </waterlevels> 1467 </waterlevels>
1458 </dc:if> 1468 </dc:if>
1459 1469
1460 <dc:if test="dc:contains($artifact-outs, 'duration_curve')"> 1470 <dc:if test="dc:contains($artifact-outs, 'fix_longitudinal_section_curve')">
1461 <computed_discharge_curves> 1471 <waterlevels>
1462 <dc:elements> 1472 <dc:elements>
1463 <dc:context> 1473 <dc:context>
1464 <dc:statement> 1474 <dc:statement>
1465 SELECT m.id AS a_id, m.state AS a_state, m.gid AS a_gid, m.creation AS a_creation 1475 SELECT m.id AS a_id, m.state AS a_state, m.gid AS a_gid, m.creation AS a_creation
1466 FROM master_artifacts m 1476 FROM master_artifacts m
1467 WHERE m.collection_id = ${collection_id} AND m.gid &lt;&gt; CAST(${artifact-id} AS uuid) 1477 WHERE m.collection_id = ${collection_id} AND m.gid &lt;&gt; CAST(${artifact-id} AS uuid)
1468 AND EXISTS ( 1478 AND EXISTS (
1469 SELECT id FROM artifact_data ad WHERE ad.artifact_id = m.id AND k = 'river' AND v = ${river}) 1479 SELECT id FROM artifact_data ad WHERE ad.artifact_id = m.id AND k = 'river' AND v = ${river})
1470 </dc:statement> 1480 </dc:statement>
1471 <dc:elements> 1481 <dc:elements>
1472 <dc:context> 1482
1473 <dc:statement> 1483 <dc:context>
1474 SELECT a.gid as aid, f.id AS fid, f.name AS facet_name, f.num AS facet_num, f.description as facet_description 1484 <dc:statement>
1475 FROM outs as o, facets as f, artifacts as a 1485 SELECT id AS out_id
1476 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} 1486 FROM outs
1477 </dc:statement> 1487 WHERE artifact_id = ${a_id} AND name = 'fix_longitudinal_section_curve'
1478 <dc:elements> 1488 </dc:statement>
1479 <dc:element name="${facet_name}"> 1489 <dc:elements>
1480 <dc:attribute name="description" value="${facet_description}"/> 1490 <dc:context>
1481 <dc:attribute name="factory" value="winfo"/> 1491 <!-- average und deviation ls_0 . ls_1 ...-->
1482 <dc:attribute name="artifact-id" value="${aid}"/> 1492 <dc:statement>
1483 <dc:attribute name="ids" value="${aid}"/> 1493 SELECT name AS facet_name, num as facet_num, description AS facet_description
1484 <dc:attribute name="out" value="duration_curve"/> 1494 FROM facets
1485 </dc:element> 1495 WHERE out_id = ${out_id} and name = 'fix_deviation_ls'
1486 </dc:elements> 1496 ORDER BY num ASC, name DESC
1487 </dc:context> 1497 </dc:statement>
1488 </dc:elements> 1498 <waterlevels>
1489 </dc:context> 1499 <dc:attribute name="description" value="${river} ${a_creation} ${collection_name}"/>
1490 </dc:elements> 1500 <dc:elements>
1491 </computed_discharge_curves> 1501 <dc:element name="${facet_name}">
1502 <dc:attribute name="description" value="${facet_description}"/>
1503 <dc:attribute name="ids" value="${facet_num}"/>
1504 <dc:attribute name="factory" value="fixanalysis"/>
1505 <dc:attribute name="artifact-id" value="${a_gid}"/>
1506 <dc:attribute name="out" value="fix_longitudinal_section_curve"/>
1507 </dc:element>
1508 </dc:elements>
1509 </waterlevels>
1510 </dc:context>
1511 </dc:elements>
1512 </dc:context>
1513 </dc:elements>
1514 </dc:context>
1515 </dc:elements>
1516 </waterlevels>
1492 </dc:if> 1517 </dc:if>
1493 <dc:comment> 1518
1494 WATERLEVELS - ONLY SHOW Ws 1519 <dc:if test="dc:contains($artifact-outs, 'fix_deltawt_curve')">
1495 </dc:comment>
1496
1497 <dc:if test="dc:contains($artifact-outs, 'waterlevels')">
1498 <waterlevels> 1520 <waterlevels>
1499 <dc:elements> 1521 <dc:elements>
1500 <dc:context> 1522 <dc:context>
1501 <dc:statement> 1523 <dc:statement>
1502 SELECT m.id AS a_id, m.state AS a_state, m.gid AS a_gid, m.creation AS a_creation 1524 SELECT m.id AS a_id, m.state AS a_state, m.gid AS a_gid, m.creation AS a_creation
1540 </dc:context> 1562 </dc:context>
1541 </dc:elements> 1563 </dc:elements>
1542 </waterlevels> 1564 </waterlevels>
1543 </dc:if> 1565 </dc:if>
1544 1566
1567 <dc:if test="dc:contains($artifact-outs, 'fix_wq_curve')">
1568 <waterlevels>
1569 <dc:elements>
1570 <dc:context>
1571 <dc:statement>
1572 SELECT m.id AS a_id, m.state AS a_state, m.gid AS a_gid, m.creation AS a_creation
1573 FROM master_artifacts m
1574 WHERE m.collection_id = ${collection_id} AND m.gid &lt;&gt; CAST(${artifact-id} AS uuid)
1575 AND EXISTS (
1576 SELECT id FROM artifact_data ad WHERE ad.artifact_id = m.id AND k = 'river' AND v = ${river})
1577 </dc:statement>
1578 <dc:elements>
1579
1580 <dc:context>
1581 <dc:statement>
1582 SELECT id AS out_id
1583 FROM outs
1584 WHERE artifact_id = ${a_id} AND name = 'longitudinal_section'
1585 </dc:statement>
1586 <dc:elements>
1587 <dc:context>
1588 <dc:statement>
1589 SELECT name AS facet_name, num as facet_num, description AS facet_description
1590 FROM facets
1591 WHERE out_id = ${out_id} and name = 'longitudinal_section.w'
1592 ORDER BY num ASC, name DESC
1593 </dc:statement>
1594 <waterlevels>
1595 <dc:attribute name="description" value="${river} ${a_creation} ${collection_name}"/>
1596 <dc:elements>
1597 <dc:element name="${facet_name}">
1598 <dc:attribute name="description" value="${facet_description}"/>
1599 <dc:attribute name="ids" value="${facet_num}"/>
1600 <dc:attribute name="factory" value="winfo"/>
1601 <dc:attribute name="artifact-id" value="${a_gid}"/>
1602 <dc:attribute name="out" value="longitudinal_section"/>
1603 </dc:element>
1604 </dc:elements>
1605 </waterlevels>
1606 </dc:context>
1607 </dc:elements>
1608 </dc:context>
1609 </dc:elements>
1610 </dc:context>
1611 </dc:elements>
1612 </waterlevels>
1613 </dc:if>
1614
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
1545 <dc:comment> 1700 <dc:comment>
1546 SHOW FLOODMAPS 1701 SHOW FLOODMAPS
1547 </dc:comment> 1702 </dc:comment>
1548 1703
1549 <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