[Dive4elements-commits] [PATCH 4 of 7] meta-data.xml: Add annotations and flow velocity measurements to the DC

Wald Commits scm-commit at wald.intevation.org
Thu Nov 8 16:51:01 CET 2012


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1352389961 -3600
# Node ID 06c07cb478a8b34efea7e8cf36d5b41a0f14bac8
# Parent  c0a418cbd80cb03277fdd2710aee361e3803b69a
meta-data.xml: Add annotations and flow velocity measurements to the DC.

diff -r c0a418cbd80c -r 06c07cb478a8 flys-artifacts/doc/conf/meta-data.xml
--- 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>


More information about the Dive4elements-commits mailing list