diff artifacts/doc/conf/meta-data.xml @ 7292:8943ab11ed3f

issue1512: Adde flow-velocity-models dc conf.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Fri, 11 Oct 2013 12:22:40 +0200
parents 2584a114a350
children 917351b40e6e
line wrap: on
line diff
--- a/artifacts/doc/conf/meta-data.xml	Fri Oct 11 12:18:38 2013 +0200
+++ b/artifacts/doc/conf/meta-data.xml	Fri Oct 11 12:22:40 2013 +0200
@@ -1265,6 +1265,7 @@
           <dc:call-macro name="sounding-width"/>
           <dc:call-macro name="morph_width"/>
           <dc:call-macro name="flow_velocity_measurements"/>
+          <dc:call-macro name="flow_velocity_models"/>
       </minfo>
     </dc:macro>
 
@@ -1654,6 +1655,28 @@
       </epoch>
     </dc:macro>
 
+    <dc:macro name="flow_velocity_models">
+      <dc:context>
+        <dc:statement>
+          SELECT fvm.id          AS fvmid,
+                 fvm.description AS fvmd
+          FROM flow_velocity_model fvm
+          JOIN discharge_zone dz ON dz.id = fvm.discharge_zone_id 
+          WHERE dz.river_id = ${river_id}
+        </dc:statement>
+        <dc:if test="dc:has-result()">
+          <flowvelocitymodel>
+            <dc:for-each>
+                    <measurement_value name="{$fvmd}"
+                                       ids="{$fvmid}"
+                                       factory="flowvelocitymodel" target_out="{$out}" />
+            </dc:for-each>
+          </flowvelocitymodel>
+        </dc:if>
+      </dc:context>
+    </dc:macro>
+
+
     <dc:macro name="flow_velocity_measurements">
       <dc:context>
         <dc:statement>

http://dive4elements.wald.intevation.org