comparison flys-artifacts/doc/conf/meta-data.xml @ 5534:a11c6f680487

Add uesg as specified to the datacage
author Andre Heinecke <aheinecke@intevation.de>
date Wed, 03 Apr 2013 15:31:04 +0200
parents 65fa2b22dc46
children 38713f32a785 38acd82feeac
comparison
equal deleted inserted replaced
5533:65fa2b22dc46 5534:a11c6f680487
1573 <dc:attribute name="factory" value="externalwmsfactory"/> 1573 <dc:attribute name="factory" value="externalwmsfactory"/>
1574 <dc:attribute name="ids" value="http://www.pegelonline.wsv.de/webservices/gis/wms;Pegelpunkte;Pegelonline-Pegelpunkte"/> 1574 <dc:attribute name="ids" value="http://www.pegelonline.wsv.de/webservices/gis/wms;Pegelpunkte;Pegelonline-Pegelpunkte"/>
1575 </dc:macro> 1575 </dc:macro>
1576 1576
1577 <dc:macro name="flood-map-uesk"> 1577 <dc:macro name="flood-map-uesk">
1578 <uesk> 1578 <dc:context>
1579 <calculations> 1579 <dc:statement>
1580 <current> 1580 SELECT DISTINCT 1 from floodmaps where river_id = ${river_id}
1581 <bfg> 1581 </dc:statement>
1582 <dc:context> 1582 <dc:if test="dc:has-result()">
1583 <dc:statement> 1583 <uesk>
1584 SELECT count(*) AS uesg_exist, name AS name 1584 <calculations>
1585 FROM floodmaps 1585 <dc:context>
1586 WHERE river_id = ${river_id} AND kind = 111 1586 <dc:statement>
1587 GROUP BY name, kind 1587 SELECT DISTINCT 1 from floodmaps where river_id = ${river_id}
1588 </dc:statement> 1588 AND (kind = 112 OR kind = 111)
1589 </dc:statement>
1590 <dc:if test="dc:has-result()">
1591 <current>
1592 <dc:context>
1593 <dc:statement>
1594 SELECT DISTINCT name AS name
1595 FROM floodmaps
1596 WHERE river_id = ${river_id} AND kind = 111
1597 </dc:statement>
1598 <dc:if test="dc:has-result()">
1599 <bfg>
1600 <dc:for-each>
1601 <floodmaps factory="wmsfloodmapsfactory"
1602 ids="{$river_id};{$name}"
1603 name="{$name}"/>
1604 </dc:for-each>
1605 </bfg>
1606 </dc:if>
1607 </dc:context>
1608 <dc:context>
1609 <dc:statement>
1610 SELECT DISTINCT name AS name
1611 FROM floodmaps
1612 WHERE river_id = ${river_id} AND kind = 112
1613 </dc:statement>
1614 <dc:if test="dc:has-result()">
1615 <federal>
1616 <dc:for-each>
1617 <floodmaps factory="wmsfloodmapsfactory"
1618 ids="{$river_id};{$name}"
1619 name="{$name}"/>
1620 </dc:for-each>
1621 </federal>
1622 </dc:if>
1623 </dc:context>
1624 </current>
1625 </dc:if>
1626 </dc:context>
1627 <dc:context>
1628 <dc:statement>
1629 SELECT DISTINCT 1 from floodmaps where river_id = ${river_id}
1630 AND (kind = 122 OR kind = 121)
1631 </dc:statement>
1632 <dc:if test="dc:has-result()">
1633 <potential>
1634 <dc:context>
1635 <dc:statement>
1636 SELECT DISTINCT name AS name
1637 FROM floodmaps
1638 WHERE river_id = ${river_id} AND kind = 121
1639 </dc:statement>
1640 <dc:if test="dc:has-result()">
1641 <bfg>
1642 <dc:for-each>
1643 <floodmaps factory="wmsfloodmapsfactory"
1644 ids="{$river_id};{$name}"
1645 name="{$name}"/>
1646 </dc:for-each>
1647 </bfg>
1648 </dc:if>
1649 </dc:context>
1650 <dc:context>
1651 <dc:statement>
1652 SELECT DISTINCT
1653 name AS name
1654 FROM floodmaps
1655 WHERE river_id = ${river_id} AND kind = 122
1656 </dc:statement>
1657 <dc:if test="dc:has-result()">
1658 <federal>
1659 <dc:for-each>
1660 <floodmaps factory="wmsfloodmapsfactory"
1661 ids="{$river_id};{$name}"
1662 name="{$name}"/>
1663 </dc:for-each>
1664 </federal>
1665 </dc:if>
1666 </dc:context>
1667 </potential>
1668 </dc:if>
1669 </dc:context>
1670 </calculations>
1671 <dc:context>
1672 <dc:statement>
1673 SELECT DISTINCT
1674 source AS source
1675 FROM floodmaps
1676 WHERE river_id = ${river_id} AND kind = 200
1677 </dc:statement>
1678 <dc:if test="dc:has-result()">
1679 <measurements>
1589 <dc:for-each> 1680 <dc:for-each>
1590 <dc:if test="$uesg_exist&gt;0"> 1681 <year name="{$source}">
1591 <floodmaps factory="wmsfloodmapsfactory" 1682 <dc:context>
1592 ids="{$river_id};{$name}" 1683 <dc:statement>
1593 name="{$name}"/> 1684 SELECT DISTINCT
1594 </dc:if> 1685 name AS name
1686 FROM floodmaps
1687 WHERE river_id = ${river_id} AND kind = 200 AND source =
1688 ${source}
1689 </dc:statement>
1690 <dc:for-each>
1691 <floodmaps factory="wmsfloodmapsfactory"
1692 ids="{$river_id};{$name}"
1693 name="{$name}"/>
1694 </dc:for-each>
1695 </dc:context>
1696 </year>
1595 </dc:for-each> 1697 </dc:for-each>
1596 </dc:context> 1698 </measurements>
1597 </bfg> 1699 </dc:if>
1598 <land> 1700 </dc:context>
1599 <dc:context> 1701 </uesk>
1600 <dc:statement> 1702 </dc:if>
1601 SELECT count(*) AS uesg_exist, name AS name 1703 </dc:context>
1602 FROM floodmaps
1603 WHERE river_id = ${river_id} AND kind = 112
1604 GROUP BY name, kind
1605 </dc:statement>
1606 <dc:for-each>
1607 <dc:if test="$uesg_exist&gt;0">
1608 <floodmaps factory="wmsfloodmapsfactory"
1609 ids="{$river_id};{$name}"
1610 name="{$name}"/>
1611 </dc:if>
1612 </dc:for-each>
1613 </dc:context>
1614 </land>
1615 </current>
1616 <potentiel>
1617 <bfg>
1618 <dc:context>
1619 <dc:statement>
1620 SELECT count(*) AS uesg_exist, name AS name
1621 FROM floodmaps
1622 WHERE river_id = ${river_id} AND kind = 121
1623 GROUP BY name, kind
1624 </dc:statement>
1625 <dc:for-each>
1626 <dc:if test="$uesg_exist&gt;0">
1627 <floodmaps factory="wmsfloodmapsfactory"
1628 ids="{$river_id};{$name}"
1629 name="{$name}"/>
1630 </dc:if>
1631 </dc:for-each>
1632 </dc:context>
1633 </bfg>
1634 <land>
1635 <dc:context>
1636 <dc:statement>
1637 SELECT count(*) AS uesg_exist, name AS name
1638 FROM floodmaps
1639 WHERE river_id = ${river_id} AND kind = 122
1640 GROUP BY name, kind
1641 </dc:statement>
1642 <dc:for-each>
1643 <dc:if test="$uesg_exist&gt;0">
1644 <floodmaps factory="wmsfloodmapsfactory"
1645 ids="{$river_id};{$name}"
1646 name="{$name}"/>
1647 </dc:if>
1648 </dc:for-each>
1649 </dc:context>
1650 </land>
1651 </potentiel>
1652 </calculations>
1653 </uesk>
1654 </dc:macro> 1704 </dc:macro>
1655 1705
1656 <dc:macro name="flood-map-catchments"> 1706 <dc:macro name="flood-map-catchments">
1657 <dc:attribute name="factory" value="externalwmsfactory"/> 1707 <dc:attribute name="factory" value="externalwmsfactory"/>
1658 <dc:attribute name="ids" value="http://geoportal.bafg.de/wmsproxy/INSPIRE/DrainageBasin;HY.PHYSICALWATERS.CATCHMENTS;Einzugsgebiet"/> 1708 <dc:attribute name="ids" value="http://geoportal.bafg.de/wmsproxy/INSPIRE/DrainageBasin;HY.PHYSICALWATERS.CATCHMENTS;Einzugsgebiet"/>

http://dive4elements.wald.intevation.org