diff flys-artifacts/doc/conf/meta-data.xml @ 2684:14188f8daefb

Added support for WMS gauges in floodmaps and maps. flys-artifacts/trunk@4385 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Thu, 10 May 2012 11:56:40 +0000
parents f5af3adb3b95
children 3ab7b593c6e5
line wrap: on
line diff
--- a/flys-artifacts/doc/conf/meta-data.xml	Thu May 10 11:14:17 2012 +0000
+++ b/flys-artifacts/doc/conf/meta-data.xml	Thu May 10 11:56:40 2012 +0000
@@ -786,6 +786,23 @@
                   </dc:elements>
                 </dc:context>
               </dc:macro>
+              <dc:macro name="flood-map-gaugelocations">
+                <dc:context>
+                  <dc:statement>
+                    SELECT count(*) as km_exists, name as name
+                    FROM gauge_location WHERE river_id = ${river_id} GROUP BY name
+                  </dc:statement>
+                   <dc:elements>
+                    <dc:if test="$km_exists>0">
+                      <gaugelocation>
+                        <dc:attribute name="factory" value="wmsgaugelocationfactory"/>
+                        <dc:attribute name="ids" value="${river_id};${name}"/>
+                        <dc:attribute name="name"  value="${name}"/>
+                      </gaugelocation>
+                    </dc:if>
+                  </dc:elements>
+                </dc:context>
+              </dc:macro>
               <dc:macro name="flood-map-uesk">
                 <uesk>
                   <calculations>
@@ -901,6 +918,9 @@
                     <dc:call-macro name="flood-map-lines"/>
                   </lines>
                   <dc:call-macro name="flood-map-uesk"/>
+                  <gaugelocations>
+                    <dc:call-macro name="flood-map-gaugelocations"/>
+                  </gaugelocations>
                   <rastermap>
                       <background>
                           <dc:attribute name="factory" value="wmsbackground"/>

http://dive4elements.wald.intevation.org