comparison flys-artifacts/doc/conf/meta-data.xml @ 1764:87c82499b98f

Added DC configuration to load additional data in longitudinal section. flys-artifacts/trunk@3082 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Wed, 26 Oct 2011 12:03:59 +0000
parents 577e8843ceeb
children 9be01e2e6897
comparison
equal deleted inserted replaced
1763:0e748e8972b5 1764:87c82499b98f
8 WHERE lower(name) LIKE lower(${river}) 8 WHERE lower(name) LIKE lower(${river})
9 </dc:statement> 9 </dc:statement>
10 <dc:elements> 10 <dc:elements>
11 <river> 11 <river>
12 <dc:attribute name="name" value="${river_name}"/> 12 <dc:attribute name="name" value="${river_name}"/>
13 <dc:attribute name="db-id" value="${river_id}"/> 13 <dc:if test="dc:contains($artifact-outs, 'longitudinal_section')">
14 <dc:choose>
15 <dc:when test="dc:contains($parameters, 'recommended')">
16 </dc:when>
17 <dc:otherwise>
18 <dc:comment comment=" BASEDATA ---------------------------"/>
19 <basedata>
20 <dc:context>
21 <dc:statement>
22 SELECT id AS prot_id,
23 description AS prot_description
24 FROM wsts WHERE kind = 0 AND river_id = ${river_id}
25 </dc:statement>
26 <dc:elements>
27 <basedata>
28 <dc:attribute name="name" value="${prot_description}"/>
29 <dc:context>
30 <dc:statement>
31 SELECT id AS prot_column_id,
32 name AS prot_column_name,
33 position AS prot_rel_pos
34 FROM wst_columns WHERE wst_id = ${prot_id}
35 ORDER by position
36 </dc:statement>
37 <dc:elements>
38 <column>
39 <dc:attribute name="name" value="${prot_column_name}"/>
40 <dc:attribute name="ids" value="base_data-wstv-${prot_rel_pos}-${prot_id}"/>
41 <dc:attribute name="factory" value="staticwkms"/>
42 </column>
43 </dc:elements>
44 </dc:context>
45 </basedata>
46 </dc:elements>
47 </dc:context>
48 </basedata>
49 <dc:comment comment=".ZUS -------------------------------"/>
50 <addtionals>
51 <dc:context>
52 <dc:statement>
53 SELECT id AS prot_id,
54 description AS prot_description
55 FROM wsts WHERE kind = 1 AND river_id = ${river_id}
56 </dc:statement>
57 <dc:elements>
58 <additional>
59 <dc:attribute name="name" value="${prot_description}"/>
60 <dc:context>
61 <dc:statement>
62 SELECT id AS prot_column_id,
63 name AS prot_column_name,
64 position AS prot_rel_pos
65 FROM wst_columns WHERE wst_id = ${prot_id}
66 ORDER by position
67 </dc:statement>
68 <dc:elements>
69 <column>
70 <dc:attribute name="name" value="${prot_column_name}"/>
71 <dc:attribute name="ids" value="additionals-wstv-${prot_rel_pos}-${prot_id}"/>
72 <dc:attribute name="factory" value="staticwkms"/>
73 </column>
74 </dc:elements>
75 </dc:context>
76 </additional>
77 </dc:elements>
78 </dc:context>
79 </addtionals>
80 <dc:comment comment=" FIXATIONS ---------------------------"/>
81 <fixations>
82 <dc:context>
83 <dc:statement>
84 SELECT id AS prot_id,
85 description AS prot_description
86 FROM wsts WHERE kind = 2 AND river_id = ${river_id}
87 </dc:statement>
88 <dc:elements>
89 <fixation>
90 <dc:attribute name="name" value="${prot_description}"/>
91 <dc:context>
92 <dc:statement>
93 SELECT id AS prot_column_id,
94 name AS prot_column_name,
95 position AS prot_rel_pos
96 FROM wst_columns WHERE wst_id = ${prot_id}
97 ORDER by position
98 </dc:statement>
99 <dc:elements>
100 <column>
101 <dc:attribute name="name" value="${prot_column_name}"/>
102 <dc:attribute name="ids" value="fixations-wstv-${prot_rel_pos}-${prot_id}"/>
103 <dc:attribute name="factory" value="staticwkms"/>
104 </column>
105 </dc:elements>
106 </dc:context>
107 </fixation>
108 </dc:elements>
109 </dc:context>
110 </fixations>
111 <dc:comment comment=" HOEHENMARKEN ---------------------------"/>
112 <heightmarks>
113 <dc:context>
114 <dc:statement>
115 SELECT id AS prot_id,
116 description AS prot_description
117 FROM wsts WHERE kind = 4 AND river_id = ${river_id}
118 </dc:statement>
119 <dc:elements>
120 <heightmark>
121 <dc:attribute name="name" value="${prot_description}"/>
122 <dc:context>
123 <dc:statement>
124 SELECT id AS prot_column_id,
125 name AS prot_column_name,
126 position AS prot_rel_pos
127 FROM wst_columns WHERE wst_id = ${prot_id}
128 ORDER by position
129 </dc:statement>
130 <dc:elements>
131 <column>
132 <dc:attribute name="name" value="${prot_column_name}"/>
133 <dc:attribute name="ids" value="heightmarks-wstv-${prot_rel_pos}-${prot_id}"/>
134 <dc:attribute name="factory" value="staticwkms"/>
135 </column>
136 </dc:elements>
137 </dc:context>
138 </heightmark>
139 </dc:elements>
140 </dc:context>
141 </heightmarks>
142 </dc:otherwise>
143 </dc:choose>
144 </dc:if>
145
14 <dc:if test="dc:contains($artifact-outs, 'waterlevels')"> 146 <dc:if test="dc:contains($artifact-outs, 'waterlevels')">
15 <flood-protections> 147 <flood-protections>
16 <dc:attribute name="id" value="flood-protections-${river_id}"/> 148 <dc:attribute name="id" value="flood-protections-${river_id}"/>
17 <dc:context> 149 <dc:context>
18 <dc:statement> 150 <dc:statement>

http://dive4elements.wald.intevation.org