comparison flys-artifacts/doc/conf/meta-data.xml @ 5533:65fa2b22dc46

Remove useless km_exists statements
author Andre Heinecke <aheinecke@intevation.de>
date Wed, 03 Apr 2013 15:30:45 +0200
parents 52876daf97b0
children a11c6f680487
comparison
equal deleted inserted replaced
5532:55529f586962 5533:65fa2b22dc46
987 </dc:macro> 987 </dc:macro>
988 988
989 <dc:macro name="flood-map-km"> 989 <dc:macro name="flood-map-km">
990 <dc:context> 990 <dc:context>
991 <dc:statement> 991 <dc:statement>
992 SELECT count(*) AS km_exists 992 SELECT id FROM river_axes_km WHERE river_id = ${river_id}
993 FROM river_axes_km WHERE river_id = ${river_id}
994 </dc:statement> 993 </dc:statement>
995 <dc:for-each> 994 <dc:for-each>
996 <dc:if test="$km_exists&gt;0">
997 <kilometrage factory="wmskmfactory" ids="{$river_id}"/> 995 <kilometrage factory="wmskmfactory" ids="{$river_id}"/>
998 </dc:if>
999 </dc:for-each> 996 </dc:for-each>
1000 </dc:context> 997 </dc:context>
1001 </dc:macro> 998 </dc:macro>
1002 999
1003 <dc:macro name="flood-map-qps"> 1000 <dc:macro name="flood-map-qps">
1559 </dc:macro> 1556 </dc:macro>
1560 1557
1561 <dc:macro name="flood-map-fixpoints"> 1558 <dc:macro name="flood-map-fixpoints">
1562 <dc:context> 1559 <dc:context>
1563 <dc:statement> 1560 <dc:statement>
1564 SELECT count(*) AS km_exists, name AS name 1561 SELECT name AS name
1565 FROM fixpoints WHERE river_id = ${river_id} GROUP BY name 1562 FROM fixpoints WHERE river_id = ${river_id} GROUP BY name
1566 </dc:statement> 1563 </dc:statement>
1567 <dc:for-each> 1564 <dc:for-each>
1568 <dc:if test="$km_exists&gt;0"> 1565 <fixpoint factory="wmsfixpointsfactory"
1569 <fixpoint factory="wmsfixpointsfactory" 1566 ids="{$river_id};{$name}"
1570 ids="{$river_id};{$name}" 1567 name="{$name}"/>
1571 name="{$name}"/>
1572 </dc:if>
1573 </dc:for-each> 1568 </dc:for-each>
1574 </dc:context> 1569 </dc:context>
1575 </dc:macro> 1570 </dc:macro>
1576 1571
1577 <dc:macro name="flood-map-gaugelocations"> 1572 <dc:macro name="flood-map-gaugelocations">

http://dive4elements.wald.intevation.org