Mercurial > dive4elements > river
changeset 4455:06c07cb478a8
meta-data.xml: Add annotations and flow velocity measurements to the DC.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Thu, 08 Nov 2012 16:52:41 +0100 |
parents | c0a418cbd80c |
children | dd3b91dbe496 |
files | flys-artifacts/doc/conf/meta-data.xml |
diffstat | 1 files changed, 37 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-artifacts/doc/conf/meta-data.xml Thu Nov 08 16:51:58 2012 +0100 +++ b/flys-artifacts/doc/conf/meta-data.xml Thu Nov 08 16:52:41 2012 +0100 @@ -641,6 +641,39 @@ </hyks> </dc:macro> + <dc:macro name="flow_velocity_measurements"> + <flowvelocitymeasurement> + <dc:context> + <dc:statement> + SELECT id AS fvmid, + description AS fvmd + FROM flow_velocity_measurements WHERE river_id = ${river_id} + </dc:statement> + <dc:elements> + <flow_velocity_measurement> + <dc:attribute name="name" value="${fvmd}"/> + <dc:attribute name="ids" value="${fvmid}"/> + <dc:attribute name="factory" value="flowvelocity"/> + <dc:context> + <dc:statement> + SELECT id, description, station, datetime, v, w, q + FROM flow_velocity_measure_values + WHERE measurements_id = ${fvmid} + </dc:statement> + <dc:elements> + <measurement_value> + <dc:attribute name="name" value="${id}-${description}-${station}-${datetime}"/> + <dc:attribute name="ids" value="${id}"/> + <dc:attribute name="factory" value="flowvelocity"/> + </measurement_value> + </dc:elements> + </dc:context> + </flow_velocity_measurement> + </dc:elements> + </dc:context> + </flowvelocitymeasurement> + </dc:macro> + <dc:comment> + River-Node @@ -749,6 +782,10 @@ <dc:if test="dc:contains($artifact-outs, 'fix_longitudinal_section_curve')"> <dc:call-macro name="annotations"/> </dc:if> + <dc:if test="dc:contains($artifact-outs, 'flow_velocity')"> + <dc:call-macro name="annotations"/> + <dc:call-macro name="flow_velocity_measurements"/> + </dc:if> <dc:comment comment="--- non-recommendations---"/> </dc:otherwise> </dc:choose>