diff flys-artifacts/doc/conf/meta-data.xml @ 3283:a8ce3263b0a7

Make official lines loadable from dc (by hand) for longitudinal sections. flys-artifacts/trunk@4943 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Wed, 11 Jul 2012 16:05:24 +0000
parents fa30e6322ef3
children 81a98f360553
line wrap: on
line diff
--- a/flys-artifacts/doc/conf/meta-data.xml	Wed Jul 11 16:03:01 2012 +0000
+++ b/flys-artifacts/doc/conf/meta-data.xml	Wed Jul 11 16:05:24 2012 +0000
@@ -279,6 +279,40 @@
           </fixations>
         </dc:macro>
 
+        <dc:macro name="basedata_3_officials">
+            <dc:comment comment=".wst -------------------------------"/>
+            <officiallines>
+              <dc:context>
+                <dc:statement>
+                  SELECT id          AS prot_id,
+                         description AS prot_description
+                  FROM wsts WHERE kind = 3 AND river_id = ${river_id}
+                </dc:statement>
+                <dc:elements>
+                  <official>
+                    <dc:attribute name="name" value="${prot_description}"/>
+                    <dc:context>
+                      <dc:statement>
+                        SELECT id       AS prot_column_id,
+                               name     AS prot_column_name,
+                               position AS prot_rel_pos
+                        FROM wst_columns WHERE wst_id = ${prot_id}
+                        ORDER by position
+                      </dc:statement>
+                      <dc:elements>
+                        <column>
+                          <dc:attribute name="name" value="${prot_column_name}"/>
+                          <dc:attribute name="ids" value="additionals-wstv-${prot_rel_pos}-${prot_id}"/>
+                          <dc:attribute name="factory" value="staticwkms"/>
+                        </column>
+                      </dc:elements>
+                    </dc:context>
+                  </official>
+                </dc:elements>
+              </dc:context>
+            </officiallines>
+        </dc:macro>
+
         <dc:macro name="basedata_4_heightmarks-points-relative_points">
           <heightmarks>
             <dc:context>
@@ -564,6 +598,8 @@
                  <dc:call-macro name="basedata_2_fixations"/>
                  <dc:comment comment=" HOEHENMARKEN ---------------------------"/>
                  <dc:call-macro name="basedata_4_heightmarks-points"/>
+                 <dc:comment comment=" AMTL LINIEN  ---------------------------"/>
+                 <dc:call-macro name="basedata_3_officials"/>
                  <dc:call-macro name="annotations"/>
               </dc:if>
                <dc:if test="dc:contains($artifact-outs, 'reference_curve')">

http://dive4elements.wald.intevation.org