comparison flys-artifacts/doc/conf/meta-data.xml @ 5466:ba1bf40a9787

Restructure datacage to have a route_data folder and add QPS in a more detailed manner in that folder
author Andre Heinecke <aheinecke@intevation.de>
date Wed, 27 Mar 2013 15:27:25 +0100
parents f2bcf0fb1efd
children 6aa04b30f7ff
comparison
equal deleted inserted replaced
5465:c8e74e5e828c 5466:ba1bf40a9787
1148 </dc:elements> 1148 </dc:elements>
1149 </dc:context> 1149 </dc:context>
1150 </dc:macro> 1150 </dc:macro>
1151 <dc:macro name="flood-map-qps"> 1151 <dc:macro name="flood-map-qps">
1152 <dc:context> 1152 <dc:context>
1153 <dc:comment>Grab only the actual first</dc:comment>
1153 <dc:statement> 1154 <dc:statement>
1154 SELECT count(*) as km_exists 1155 SELECT DISTINCT
1155 FROM cross_section_tracks WHERE river_id = ${river_id} 1156 cs.kind_id as kind_id,
1157 ck.name as kind_name
1158 FROM cross_section_tracks cs
1159 JOIN cross_section_track_kinds ck on cs.kind_id = ck.id
1160 WHERE river_id = ${river_id}
1161 AND kind_id=1
1156 </dc:statement> 1162 </dc:statement>
1157 <dc:elements> 1163 <dc:if test="dc:has-result()">
1158 <dc:if test="$km_exists>0"> 1164 <dc:elements>
1159 <qps> 1165 <actual>
1166 <dc:attribute name="description" value="${kind_name}"/>
1160 <dc:attribute name="factory" value="wmsqpsfactory"/> 1167 <dc:attribute name="factory" value="wmsqpsfactory"/>
1161 <dc:attribute name="ids" value="${river_id}"/> 1168 <dc:attribute name="ids" value="${river_id};${kind_name};${kind_id}"/>
1162 </qps> 1169 </actual>
1163 </dc:if> 1170 </dc:elements>
1164 </dc:elements> 1171 </dc:if>
1172 </dc:context>
1173 <dc:context>
1174 <dc:comment>Now the other tracks</dc:comment>
1175 <dc:statement>
1176 SELECT DISTINCT
1177 cs.kind_id as kind_id,
1178 ck.name as kind_name,
1179 cs.name as layer_name
1180 FROM cross_section_tracks cs
1181 JOIN cross_section_track_kinds ck on cs.kind_id = ck.id
1182 WHERE river_id = ${river_id}
1183 AND kind_id=0
1184 </dc:statement>
1185 <dc:if test="dc:has-result()">
1186 <other>
1187 <dc:elements>
1188 <misc-qps>
1189 <dc:attribute name="description" value="${layer_name}"/>
1190 <dc:attribute name="factory" value="wmsqpsfactory"/>
1191 <dc:attribute name="ids" value="${river_id};${layer_name};${kind_id}"/>
1192 </misc-qps>
1193 </dc:elements>
1194 </other>
1195 </dc:if>
1165 </dc:context> 1196 </dc:context>
1166 </dc:macro> 1197 </dc:macro>
1167 <dc:macro name="flood-map-hydr-boundaries"> 1198 <dc:macro name="flood-map-hydr-boundaries">
1168 <hydr_boundaries_lines> 1199 <hydr_boundaries_lines>
1169 <dc:call-macro name="flood-map-hydr-boundaries-lines"/> 1200 <dc:call-macro name="flood-map-hydr-boundaries-lines"/>
1515 </dc:context> 1546 </dc:context>
1516 </inofficial> 1547 </inofficial>
1517 </hws_points> 1548 </hws_points>
1518 </dc:macro> 1549 </dc:macro>
1519 1550
1520
1521 <dc:macro name="flood-map-buildings"> 1551 <dc:macro name="flood-map-buildings">
1522 <dc:context> 1552 <dc:context>
1523 <dc:statement> 1553 <dc:statement>
1524 SELECT DISTINCT 1554 SELECT DISTINCT
1525 b.kind_id AS building_kind_id, 1555 b.kind_id AS building_kind_id,
1707 <dc:macro name="flood-map-catchments"> 1737 <dc:macro name="flood-map-catchments">
1708 <dc:attribute name="factory" value="externalwmsfactory"/> 1738 <dc:attribute name="factory" value="externalwmsfactory"/>
1709 <dc:attribute name="ids" value="http://geoportal.bafg.de/wmsproxy/INSPIRE/DrainageBasin;HY.PHYSICALWATERS.CATCHMENTS;Einzugsgebiet"/> 1739 <dc:attribute name="ids" value="http://geoportal.bafg.de/wmsproxy/INSPIRE/DrainageBasin;HY.PHYSICALWATERS.CATCHMENTS;Einzugsgebiet"/>
1710 </dc:macro> 1740 </dc:macro>
1711 1741
1742 <dc:macro name="flood-map-routing">
1743 <qps>
1744 <dc:call-macro name="flood-map-qps"/>
1745 </qps>
1746 <riveraxis>
1747 <dc:attribute name="factory" value="riveraxis"/>
1748 <dc:attribute name="ids" value="${river_id}"/>
1749 </riveraxis>
1750 <dc:call-macro name="flood-map-km"/>
1751 <fixpoints>
1752 <dc:call-macro name="flood-map-fixpoints"/>
1753 </fixpoints>
1754 </dc:macro>
1755
1712 <dc:macro name="flood-map-complete"> 1756 <dc:macro name="flood-map-complete">
1713 <buildings> 1757 <buildings>
1714 <dc:call-macro name="flood-map-buildings"/> 1758 <dc:call-macro name="flood-map-buildings"/>
1715 </buildings> 1759 </buildings>
1716 <catchments> 1760 <catchments>
1717 <dc:call-macro name="flood-map-catchments"/> 1761 <dc:call-macro name="flood-map-catchments"/>
1718 </catchments> 1762 </catchments>
1719 <fixpoints> 1763 <!-- TODO: HW-Marken -->
1720 <dc:call-macro name="flood-map-fixpoints"/> 1764 <hws>
1721 </fixpoints> 1765 <dc:call-macro name="hwslines"/>
1766 <dc:call-macro name="hwspoints"/>
1767 </hws>
1768 <route_data>
1769 <dc:call-macro name="flood-map-routing"/>
1770 </route_data>
1722 <hydrboundaries> 1771 <hydrboundaries>
1723 <dc:call-macro name="flood-map-hydr-boundaries"/> 1772 <dc:call-macro name="flood-map-hydr-boundaries"/>
1724 <dc:call-macro name="flood-map-floodplain"/> 1773 <dc:call-macro name="flood-map-floodplain"/>
1725 </hydrboundaries> 1774 </hydrboundaries>
1726 <kilometrage>
1727 <riveraxis>
1728 <dc:attribute name="factory" value="riveraxis"/>
1729 <dc:attribute name="ids" value="${river_id}"/>
1730 </riveraxis>
1731 <dc:call-macro name="flood-map-km"/>
1732 <dc:call-macro name="flood-map-qps"/>
1733 </kilometrage>
1734 <hws>
1735 <dc:call-macro name="hwslines"/>
1736 <dc:call-macro name="hwspoints"/>
1737 </hws>
1738 <dc:call-macro name="flood-map-uesk"/> 1775 <dc:call-macro name="flood-map-uesk"/>
1739 <gaugelocations> 1776 <gaugelocations>
1740 <dc:call-macro name="flood-map-gaugelocations"/> 1777 <dc:call-macro name="flood-map-gaugelocations"/>
1741 </gaugelocations> 1778 </gaugelocations>
1742 <background> 1779 <background>

http://dive4elements.wald.intevation.org