changeset 5533:65fa2b22dc46

Remove useless km_exists statements
author Andre Heinecke <aheinecke@intevation.de>
date Wed, 03 Apr 2013 15:30:45 +0200
parents 55529f586962
children a11c6f680487
files flys-artifacts/doc/conf/meta-data.xml
diffstat 1 files changed, 6 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/doc/conf/meta-data.xml	Wed Apr 03 15:26:41 2013 +0200
+++ b/flys-artifacts/doc/conf/meta-data.xml	Wed Apr 03 15:30:45 2013 +0200
@@ -989,13 +989,10 @@
           <dc:macro name="flood-map-km">
             <dc:context>
               <dc:statement>
-                SELECT count(*) AS km_exists
-                FROM river_axes_km WHERE river_id = ${river_id}
+                SELECT id FROM river_axes_km WHERE river_id = ${river_id}
               </dc:statement>
                <dc:for-each>
-                <dc:if test="$km_exists&gt;0">
                   <kilometrage factory="wmskmfactory" ids="{$river_id}"/>
-                </dc:if>
               </dc:for-each>
             </dc:context>
           </dc:macro>
@@ -1561,15 +1558,13 @@
           <dc:macro name="flood-map-fixpoints">
             <dc:context>
               <dc:statement>
-                SELECT count(*) AS km_exists, name AS name
+                SELECT name AS name
                 FROM fixpoints WHERE river_id = ${river_id} GROUP BY name
               </dc:statement>
-               <dc:for-each>
-                <dc:if test="$km_exists&gt;0">
-                  <fixpoint factory="wmsfixpointsfactory"
-                            ids="{$river_id};{$name}"
-                            name="{$name}"/>
-                </dc:if>
+              <dc:for-each>
+                <fixpoint factory="wmsfixpointsfactory"
+                  ids="{$river_id};{$name}"
+                  name="{$name}"/>
               </dc:for-each>
             </dc:context>
           </dc:macro>

http://dive4elements.wald.intevation.org