comparison flys-artifacts/doc/conf/meta-data.xml @ 5477:ae60bb7b8085

Add proper handling of multiple river_axes for datacage and rivermapfile
author Andre Heinecke <aheinecke@intevation.de>
date Wed, 27 Mar 2013 18:31:31 +0100
parents 3e9bf93dc95c
children 23d8f2700b38
comparison
equal deleted inserted replaced
5476:f9eee1909e6e 5477:ae60bb7b8085
1193 </dc:elements> 1193 </dc:elements>
1194 </other> 1194 </other>
1195 </dc:if> 1195 </dc:if>
1196 </dc:context> 1196 </dc:context>
1197 </dc:macro> 1197 </dc:macro>
1198 <dc:macro name="flood-map-riveraxis">
1199 <dc:context>
1200 <dc:statement>
1201 SELECT DISTINCT
1202 ax.kind_id as kind_id,
1203 ak.name as kind_name
1204 FROM river_axes ax
1205 JOIN axis_kinds ak on ax.kind_id = ak.id
1206 WHERE river_id = ${river_id}
1207 AND kind_id=1
1208 </dc:statement>
1209 <dc:if test="dc:has-result()">
1210 <dc:elements>
1211 <actual factory="riveraxis">
1212 <dc:attribute name="description" value="${kind_name}"/>
1213 <dc:attribute name="ids" value="${river_id};${kind_name};${kind_id}"/>
1214 </actual>
1215 </dc:elements>
1216 </dc:if>
1217 </dc:context>
1218 <dc:context>
1219 <dc:statement>
1220 SELECT DISTINCT
1221 ak.name as kind_name,
1222 ax.kind_id as kind_id,
1223 ax.name as layer_name
1224 FROM river_axes ax
1225 JOIN axis_kinds ak on ax.kind_id = ak.id
1226 WHERE river_id = ${river_id}
1227 AND kind_id &lt;&gt; 1
1228 </dc:statement>
1229 <dc:if test="dc:has-result()">
1230 <other>
1231 <dc:elements>
1232 <misc-axis factory="riveraxis">
1233 <dc:attribute name="description" value="${layer_name}"/>
1234 <dc:attribute name="ids" value="${river_id};${layer_name};${kind_id}"/>
1235 </misc-axis>
1236 </dc:elements>
1237 </other>
1238 </dc:if>
1239 </dc:context>
1240 </dc:macro>
1198 <dc:macro name="flood-map-hydr-boundaries"> 1241 <dc:macro name="flood-map-hydr-boundaries">
1199 <hydr_boundaries_lines> 1242 <hydr_boundaries_lines>
1200 <dc:call-macro name="flood-map-hydr-boundaries-lines"/> 1243 <dc:call-macro name="flood-map-hydr-boundaries-lines"/>
1201 </hydr_boundaries_lines> 1244 </hydr_boundaries_lines>
1202 <hydr_boundaries_polygons> 1245 <hydr_boundaries_polygons>
1743 <qps> 1786 <qps>
1744 <dc:call-macro name="flood-map-qps"/> 1787 <dc:call-macro name="flood-map-qps"/>
1745 </qps> 1788 </qps>
1746 <dc:call-macro name="flood-map-fixpoints"/> 1789 <dc:call-macro name="flood-map-fixpoints"/>
1747 <dc:call-macro name="flood-map-km"/> 1790 <dc:call-macro name="flood-map-km"/>
1748 <riveraxis> 1791 <axis>
1749 <dc:attribute name="factory" value="riveraxis"/> 1792 <dc:call-macro name="flood-map-riveraxis"/>
1750 <dc:attribute name="ids" value="${river_id}"/> 1793 </axis>
1751 </riveraxis>
1752 </dc:macro> 1794 </dc:macro>
1753 1795
1754 <dc:macro name="flood-map-complete"> 1796 <dc:macro name="flood-map-complete">
1755 <buildings> 1797 <buildings>
1756 <dc:call-macro name="flood-map-buildings"/> 1798 <dc:call-macro name="flood-map-buildings"/>

http://dive4elements.wald.intevation.org