diff flys-artifacts/doc/conf/meta-data.xml @ 1855:b4798f15edc7

Added new WMSHwsArtifact for displaying flood protection works. flys-artifacts/trunk@3201 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Wed, 09 Nov 2011 16:07:07 +0000
parents 67aa74efc024
children 410e40b88c7a
line wrap: on
line diff
--- a/flys-artifacts/doc/conf/meta-data.xml	Wed Nov 09 15:00:29 2011 +0000
+++ b/flys-artifacts/doc/conf/meta-data.xml	Wed Nov 09 16:07:07 2011 +0000
@@ -533,6 +533,22 @@
                   </dc:elements>
                 </dc:context>
               </dc:macro>
+              <dc:macro name="flood-map-hws">
+                <dc:context>
+                  <dc:statement>
+                    SELECT count(*) as km_exists
+                    FROM hws WHERE river_id = ${river_id}
+                  </dc:statement>
+                   <dc:elements>
+                    <dc:if test="$km_exists>0">
+                      <hws>
+                        <dc:attribute name="factory" value="wmshwsfactory"/>
+                        <dc:attribute name="ids" value="${river_id}"/>
+                      </hws>
+                    </dc:if>
+                  </dc:elements>
+                </dc:context>
+              </dc:macro>
               <dc:macro name="flood-map-complete">
                   <kilometrage>
                       <riveraxis>
@@ -541,6 +557,7 @@
                       </riveraxis>
                     <dc:call-macro name="flood-map-km"/>
                     <dc:call-macro name="flood-map-qps"/>
+                    <dc:call-macro name="flood-map-hws"/>
                   </kilometrage>
                   <rastermap>
                       <background>

http://dive4elements.wald.intevation.org