diff flys-artifacts/doc/conf/meta-data.xml @ 1857:7fc87a67e6f7

Added new WMSFloodplainArtifact for displaying floodplains in maps. flys-artifacts/trunk@3204 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Wed, 09 Nov 2011 16:49:58 +0000
parents 410e40b88c7a
children ba6659083fa0
line wrap: on
line diff
--- a/flys-artifacts/doc/conf/meta-data.xml	Wed Nov 09 16:28:29 2011 +0000
+++ b/flys-artifacts/doc/conf/meta-data.xml	Wed Nov 09 16:49:58 2011 +0000
@@ -565,6 +565,22 @@
                   </dc:elements>
                 </dc:context>
               </dc:macro>
+              <dc:macro name="flood-map-floodplain">
+                <dc:context>
+                  <dc:statement>
+                    SELECT count(*) as km_exists
+                    FROM floodplain WHERE river_id = ${river_id}
+                  </dc:statement>
+                   <dc:elements>
+                    <dc:if test="$km_exists>0">
+                      <floodplain>
+                        <dc:attribute name="factory" value="wmsfloodplainfactory"/>
+                        <dc:attribute name="ids" value="${river_id}"/>
+                      </floodplain>
+                    </dc:if>
+                  </dc:elements>
+                </dc:context>
+              </dc:macro>
               <dc:macro name="flood-map-complete">
                   <kilometrage>
                       <riveraxis>
@@ -575,6 +591,7 @@
                     <dc:call-macro name="flood-map-qps"/>
                     <dc:call-macro name="flood-map-hws"/>
                     <dc:call-macro name="flood-map-catchments"/>
+                    <dc:call-macro name="flood-map-floodplain"/>
                   </kilometrage>
                   <rastermap>
                       <background>

http://dive4elements.wald.intevation.org