diff flys-artifacts/doc/conf/meta-data.xml @ 1871:257f7b54a943

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

http://dive4elements.wald.intevation.org