diff flys-artifacts/doc/conf/meta-data.xml @ 1870:ec458853f560

Added new WMSLineArtifact for displaying lines in maps. flys-artifacts/trunk@3221 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Thu, 10 Nov 2011 13:40:05 +0000
parents 8f7bc6acd48d
children 257f7b54a943
line wrap: on
line diff
--- a/flys-artifacts/doc/conf/meta-data.xml	Thu Nov 10 11:48:54 2011 +0000
+++ b/flys-artifacts/doc/conf/meta-data.xml	Thu Nov 10 13:40:05 2011 +0000
@@ -651,6 +651,22 @@
                   </dc:elements>
                 </dc:context>
               </dc:macro>
+              <dc:macro name="flood-map-lines">
+                <dc:context>
+                  <dc:statement>
+                    SELECT count(*) as km_exists
+                    FROM lines WHERE river_id = ${river_id}
+                  </dc:statement>
+                   <dc:elements>
+                    <dc:if test="$km_exists>0">
+                      <lines>
+                        <dc:attribute name="factory" value="wmslinefactory"/>
+                        <dc:attribute name="ids" value="${river_id}"/>
+                      </lines>
+                    </dc:if>
+                  </dc:elements>
+                </dc:context>
+              </dc:macro>
               <dc:macro name="flood-map-complete">
                   <kilometrage>
                       <riveraxis>
@@ -662,6 +678,7 @@
                     <dc:call-macro name="flood-map-hws"/>
                     <dc:call-macro name="flood-map-catchments"/>
                     <dc:call-macro name="flood-map-floodplain"/>
+                    <dc:call-macro name="flood-map-lines"/>
                   </kilometrage>
                   <rastermap>
                       <background>

http://dive4elements.wald.intevation.org