diff flys-artifacts/doc/conf/meta-data.xml @ 2672:5afccab9aac1

Modified floodmap specific datacage configuration and improved WMS hws layer. flys-artifacts/trunk@4361 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 08 May 2012 13:55:59 +0000
parents 055315495f8d
children f5af3adb3b95
line wrap: on
line diff
--- a/flys-artifacts/doc/conf/meta-data.xml	Tue May 08 12:14:55 2012 +0000
+++ b/flys-artifacts/doc/conf/meta-data.xml	Tue May 08 13:55:59 2012 +0000
@@ -608,14 +608,15 @@
               <dc:macro name="flood-map-hws">
                 <dc:context>
                   <dc:statement>
-                    SELECT count(*) as km_exists
-                    FROM hws WHERE river_id = ${river_id}
+                    SELECT count(*) as km_exists, name as name
+                    FROM hws WHERE river_id = ${river_id} GROUP BY name
                   </dc:statement>
                    <dc:elements>
                     <dc:if test="$km_exists>0">
                       <hws>
                         <dc:attribute name="factory" value="wmshwsfactory"/>
-                        <dc:attribute name="ids" value="${river_id}"/>
+                        <dc:attribute name="ids" value="${river_id};${name}"/>
+                        <dc:attribute name="name" value="${name}"/>
                       </hws>
                     </dc:if>
                   </dc:elements>
@@ -796,7 +797,6 @@
                       </riveraxis>
                     <dc:call-macro name="flood-map-km"/>
                     <dc:call-macro name="flood-map-qps"/>
-                    <dc:call-macro name="flood-map-hws"/>
                     <dc:call-macro name="flood-map-floodplain"/>
                     <dc:call-macro name="flood-map-lines"/>
                     <dc:call-macro name="flood-map-buildings"/>
@@ -806,6 +806,9 @@
                   <catchments>
                     <dc:call-macro name="flood-map-catchments"/>
                   </catchments>
+                  <hws>
+                    <dc:call-macro name="flood-map-hws"/>
+                  </hws>
                   <rastermap>
                       <background>
                           <dc:attribute name="factory" value="wmsbackground"/>

http://dive4elements.wald.intevation.org