[PATCH 1 of 5] issue1512: Adde flow-velocity-models dc conf
Wald Commits
scm-commit at wald.intevation.org
Fri Oct 11 12:29:48 CEST 2013
# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1381486960 -7200
# Node ID 8943ab11ed3f102c843a96a3a5523708c74d1fe3
# Parent ff0b99425dc95d9179f31209e8b1fa493bfc5b63
issue1512: Adde flow-velocity-models dc conf.
diff -r ff0b99425dc9 -r 8943ab11ed3f artifacts/doc/conf/meta-data.xml
--- 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>
More information about the Dive4elements-commits
mailing list