diff flys-artifacts/doc/conf/meta-data.xml @ 1873:841af55d5e53

Added new WMSFixpointsArtifact for displaying fixpoints in maps. flys-artifacts/trunk@3227 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Thu, 10 Nov 2011 14:25:56 +0000
parents 2e810c50e685
children 4fb81eb8b45b
line wrap: on
line diff
--- a/flys-artifacts/doc/conf/meta-data.xml	Thu Nov 10 14:06:49 2011 +0000
+++ b/flys-artifacts/doc/conf/meta-data.xml	Thu Nov 10 14:25:56 2011 +0000
@@ -561,6 +561,22 @@
                   </dc:elements>
                 </dc:context>
               </dc:macro>
+              <dc:macro name="flood-map-fixpoints">
+                <dc:context>
+                  <dc:statement>
+                    SELECT count(*) as km_exists
+                    FROM fixpoints WHERE river_id = ${river_id}
+                  </dc:statement>
+                   <dc:elements>
+                    <dc:if test="$km_exists>0">
+                      <fixpoints>
+                        <dc:attribute name="factory" value="wmsfixpointsfactory"/>
+                        <dc:attribute name="ids" value="${river_id}"/>
+                      </fixpoints>
+                    </dc:if>
+                  </dc:elements>
+                </dc:context>
+              </dc:macro>
               <dc:macro name="flood-map-complete">
                   <kilometrage>
                       <riveraxis>
@@ -574,6 +590,7 @@
                     <dc:call-macro name="flood-map-floodplain"/>
                     <dc:call-macro name="flood-map-lines"/>
                     <dc:call-macro name="flood-map-buildings"/>
+                    <dc:call-macro name="flood-map-fixpoints"/>
                   </kilometrage>
                   <rastermap>
                       <background>

http://dive4elements.wald.intevation.org