Mercurial > dive4elements > river
changeset 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 | ff0b99425dc9 |
children | 6d7ad813b2b6 |
files | artifacts/doc/conf/meta-data.xml |
diffstat | 1 files changed, 23 insertions(+), 0 deletions(-) [+] |
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>