comparison flys-artifacts/doc/conf/meta-data.xml @ 1728:6068b6c90a19

Adjusted datacage-configuration to present flood-protections in certain case. flys-artifacts/trunk@3012 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Tue, 18 Oct 2011 14:25:50 +0000
parents 3ca999f507b7
children 37606f0ddc1e
comparison
equal deleted inserted replaced
1727:cee5a292754f 1728:6068b6c90a19
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:attribute name="db-id" value="${river_id}"/>
14 <dc:if test="dc:contains($artifact-outs, 'waterlevels')">
15 <flood-protections>
16 <dc:attribute name="id" value="flood-protections-${river_id}"/>
17 <dc:context>
18 <dc:statement>
19 SELECT id AS prot_id,
20 description AS prot_description
21 FROM wsts WHERE kind = 5 AND river_id = ${river_id}
22 </dc:statement>
23 <dc:elements>
24 <flood-protection>
25 <dc:attribute name="name" value="${prot_description}"/>
26 <dc:attribute name="db-id" value="${prot_id}"/>
27 <dc:attribute name="factory" value="staticwkms"/>
28 <columns>
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="id" value="flood_protection-wstv-${prot_rel_pos}-${prot_id}"/>
41 <dc:attribute name="db-id" value="flood_protection-wstv-${prot_rel_pos}-${prot_id}"/>
42 <dc:attribute name="factory" value="staticwkms"/>
43 </column>
44 </dc:elements>
45 </dc:context>
46 </columns>
47 </flood-protection>
48 </dc:elements>
49 </dc:context>
50 </flood-protections>
51 </dc:if>
14 <dc:if test="dc:contains($artifact-outs, 'computed_discharge_curve')"> 52 <dc:if test="dc:contains($artifact-outs, 'computed_discharge_curve')">
15 <discharge-table-nn> 53 <discharge-table-nn>
16 <discharge-table-gauge> 54 <discharge-table-gauge>
17 <dc:context> 55 <dc:context>
18 <dc:statement> 56 <dc:statement>
67 ORDER by position 105 ORDER by position
68 </dc:statement> 106 </dc:statement>
69 <dc:elements> 107 <dc:elements>
70 <column> 108 <column>
71 <dc:attribute name="name" value="${fix_column_name}"/> 109 <dc:attribute name="name" value="${fix_column_name}"/>
72 <dc:attribute name="db-id" value="${fix_column_id}"/></column> 110 <dc:attribute name="db-id" value="${fix_column_id}"/>
111 </column>
73 </dc:elements> 112 </dc:elements>
74 </dc:context> 113 </dc:context>
75 </columns> 114 </columns>
76 </fixation> 115 </fixation>
77 </dc:elements> 116 </dc:elements>
98 ORDER by position 137 ORDER by position
99 </dc:statement> 138 </dc:statement>
100 <dc:elements> 139 <dc:elements>
101 <column> 140 <column>
102 <dc:attribute name="name" value="${prot_column_name}"/> 141 <dc:attribute name="name" value="${prot_column_name}"/>
103 <dc:attribute name="db-id" value="${prot_column_id}"/></column> 142 <dc:attribute name="db-id" value="${prot_column_id}"/>
143 <dc:attribute name="factory" value="staticwkms"/>
144 </column>
104 </dc:elements> 145 </dc:elements>
105 </dc:context> 146 </dc:context>
106 </columns> 147 </columns>
107 </flood-protection> 148 </flood-protection>
108 </dc:elements> 149 </dc:elements>

http://dive4elements.wald.intevation.org