comparison flys-artifacts/src/main/resources/metadata/template.xml @ 409:c7a55ff1e22a

Datacage: Added forgotten columns of fixation WST to datcage template. flys-artifacts/trunk@1866 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Mon, 09 May 2011 13:47:15 +0000
parents 55c2b0d9999e
children 7c018f466d6d
comparison
equal deleted inserted replaced
408:fc3ac59c3c8b 409:c7a55ff1e22a
4 <dc:context> 4 <dc:context>
5 <dc:statement> 5 <dc:statement>
6 SELECT id AS river_id, name as river_name FROM rivers 6 SELECT id AS river_id, name as river_name FROM rivers
7 </dc:statement> 7 </dc:statement>
8 <dc:elements> 8 <dc:elements>
9 <dc:element name="${river_name}"> 9 <river>
10 <dc:attribute name="name" value="${river_name}"/>
10 <dc:attribute name="river-id" value="${river_id}"/> 11 <dc:attribute name="river-id" value="${river_id}"/>
11 <discharge-table-nn> 12 <discharge-table-nn>
12 <discharge-table-gauge> 13 <discharge-table-gauge>
13 <dc:context> 14 <dc:context>
14 <dc:statement> 15 <dc:statement>
51 FROM wsts WHERE kind = 2 AND river_id = ${river_id} 52 FROM wsts WHERE kind = 2 AND river_id = ${river_id}
52 </dc:statement> 53 </dc:statement>
53 <dc:elements> 54 <dc:elements>
54 <fixation> 55 <fixation>
55 <dc:attribute name="name" value="${fix_description}"/> 56 <dc:attribute name="name" value="${fix_description}"/>
56 <dc:attribute name="fix-id" value="${fix_id}"/></fixation> 57 <dc:attribute name="fix-id" value="${fix_id}"/>
58 <columns>
59 <dc:context>
60 <dc:statement>
61 SELECT id AS fix_column_id,
62 name AS fix_column_name
63 FROM wst_columns WHERE wst_id = ${fix_id}
64 ORDER by position
65 </dc:statement>
66 <dc:elements>
67 <column>
68 <dc:attribute name="name" value="${fix_column_name}"/>
69 <dc:attribute name="column-id" value="${fix_column_id}"/></column>
70 </dc:elements>
71 </dc:context>
72 </columns>
73 </fixation>
57 </dc:elements> 74 </dc:elements>
58 </dc:context> 75 </dc:context>
59 </fixations> 76 </fixations>
60 <flood-protections> 77 <flood-protections>
61 <dc:attribute name="id" value="flood-protections-${river_id}"/> 78 <dc:attribute name="id" value="flood-protections-${river_id}"/>
77 FROM wst_columns WHERE wst_id = ${prot_id} 94 FROM wst_columns WHERE wst_id = ${prot_id}
78 ORDER by position 95 ORDER by position
79 </dc:statement> 96 </dc:statement>
80 <dc:elements> 97 <dc:elements>
81 <column> 98 <column>
82 <dc:attribute name="name" value="${prot_column_name}"/> 99 <dc:attribute name="name" value="${prot_column_name}"/>
83 <dc:attribute name="column-id" value="${prot_column_id}"/></column> 100 <dc:attribute name="column-id" value="${prot_column_id}"/></column>
84 </dc:elements> 101 </dc:elements>
85 </dc:context> 102 </dc:context>
86 </columns> 103 </columns>
87 </flood-protection> 104 </flood-protection>
88 </dc:elements> 105 </dc:elements>
108 FROM wst_columns WHERE wst_id = ${fw_id} 125 FROM wst_columns WHERE wst_id = ${fw_id}
109 ORDER by position 126 ORDER by position
110 </dc:statement> 127 </dc:statement>
111 <dc:elements> 128 <dc:elements>
112 <column> 129 <column>
113 <dc:attribute name="name" value="${fw_column_name}"/> 130 <dc:attribute name="name" value="${fw_column_name}"/>
114 <dc:attribute name="column-id" value="${fw_column_id}"/></column> 131 <dc:attribute name="column-id" value="${fw_column_id}"/></column>
115 </dc:elements> 132 </dc:elements>
116 </dc:context> 133 </dc:context>
117 </columns> 134 </columns>
118 </flood-water-mark> 135 </flood-water-mark>
119 </dc:elements> 136 </dc:elements>
139 FROM wst_columns WHERE wst_id = ${wl_id} 156 FROM wst_columns WHERE wst_id = ${wl_id}
140 ORDER by position 157 ORDER by position
141 </dc:statement> 158 </dc:statement>
142 <dc:elements> 159 <dc:elements>
143 <column> 160 <column>
144 <dc:attribute name="name" value="${wl_column_name}"/> 161 <dc:attribute name="name" value="${wl_column_name}"/>
145 <dc:attribute name="column-id" value="${wl_column_id}"/></column> 162 <dc:attribute name="column-id" value="${wl_column_id}"/></column>
146 </dc:elements> 163 </dc:elements>
147 </dc:context> 164 </dc:context>
148 </columns> 165 </columns>
149 </water-level> 166 </water-level>
150 </dc:elements> 167 </dc:elements>
187 <flood-protections><dc:attribute name="ref" value="flood-protections-${river_id}"/></flood-protections> 204 <flood-protections><dc:attribute name="ref" value="flood-protections-${river_id}"/></flood-protections>
188 <flood-water-marks><dc:attribute name="ref" value="flood-water-marks-${river_id}"/></flood-water-marks> 205 <flood-water-marks><dc:attribute name="ref" value="flood-water-marks-${river_id}"/></flood-water-marks>
189 <water-levels><dc:attribute name="ref" value="water-levels-${river_id}"/></water-levels> 206 <water-levels><dc:attribute name="ref" value="water-levels-${river_id}"/></water-levels>
190 <extra-longitudinal-sections><dc:attribute name="ref" value="extra-longitudinal-sections-${river_id}"/></extra-longitudinal-sections> 207 <extra-longitudinal-sections><dc:attribute name="ref" value="extra-longitudinal-sections-${river_id}"/></extra-longitudinal-sections>
191 </longitudinal-section> 208 </longitudinal-section>
192 </dc:element> <!-- river --> 209 </river>
193 </dc:elements> 210 </dc:elements>
194 </dc:context> 211 </dc:context>
195 </datacage> 212 </datacage>
196 </dc:template> 213 </dc:template>
197 214

http://dive4elements.wald.intevation.org