diff flys-artifacts/doc/conf/meta-data.xml @ 1805:5e9696c32f04

Added datacage config and loaders for KM WMS layer in floodmaps. flys-artifacts/trunk@3131 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 01 Nov 2011 14:54:59 +0000
parents d3a0d55dff63
children a97764363ba2
line wrap: on
line diff
--- a/flys-artifacts/doc/conf/meta-data.xml	Tue Nov 01 14:24:30 2011 +0000
+++ b/flys-artifacts/doc/conf/meta-data.xml	Tue Nov 01 14:54:59 2011 +0000
@@ -510,12 +510,29 @@
                   </dc:context>
                 </dems>
               </dc:macro>
+              <dc:macro name="flood-map-km">
+                <dc:context>
+                  <dc:statement>
+                    SELECT count(*) as km_exists
+                    FROM river_axes_km WHERE river_id = ${river_id}
+                  </dc:statement>
+                   <dc:elements>
+                    <dc:if test="$km_exists>0">
+                      <km>
+                        <dc:attribute name="factory" value="wmskmfactory"/>
+                        <dc:attribute name="ids" value="${river_id}"/>
+                      </km>
+                    </dc:if>
+                  </dc:elements>
+                </dc:context>
+              </dc:macro>
               <dc:macro name="flood-map-complete">
                   <kilometrage>
                       <riveraxis>
                           <dc:attribute name="factory" value="riveraxis"/>
                           <dc:attribute name="ids" value="${river_id}"/>
                       </riveraxis>
+                    <dc:call-macro name="flood-map-km"/>
                   </kilometrage>
                   <rastermap>
                       <background>

http://dive4elements.wald.intevation.org