comparison flys-artifacts/src/main/resources/metadata/template.xml @ 404:349c9bcdd917

Add data cage configuration for "Abflusskurve [NN + m]". flys-artifacts/trunk@1846 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Fri, 06 May 2011 16:15:18 +0000
parents dfbb3d50b0bd
children 55c2b0d9999e
comparison
equal deleted inserted replaced
403:1ed48e2ddc1b 404:349c9bcdd917
1 <?xml version="1.0" encoding="UTF-8" standalone="yes"?> 1 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2 <dc:template xmlns:dc="http://www.intevation.org/2011/Datacage"> 2 <dc:template xmlns:dc="http://www.intevation.org/2011/Datacage">
3 <DATENKORB> 3 <datacage>
4 <GEWAESSER> 4 <dc:context>
5 <dc:context> 5 <dc:statement>
6 <dc:statement> 6 SELECT id AS river_id, name as river_name FROM rivers
7 SELECT id AS river_id, name as river_name FROM rivers 7 </dc:statement>
8 </dc:statement> 8 <dc:elements>
9 <dc:elements> 9 <dc:element name="${river_name}">
10 <dc:element name="${river_name}"> 10 <dc:attribute name="river-id" value="${river_id}"/>
11 <WSTS> 11 <discharge-table-nn>
12 <discharge-table-gauge>
12 <dc:context> 13 <dc:context>
13 <dc:statement> 14 <dc:statement>
14 SELECT id AS wst_id, 15 SELECT id AS gauge_id,
15 kind AS wst_kind, 16 name AS gauge_name
16 description AS wst_description 17 FROM gauges WHERE river_id = ${river_id}
17 FROM wsts
18 WHERE river_id = ${river_id}
19 </dc:statement> 18 </dc:statement>
20 <dc:elements> 19 <dc:elements>
21 <WST> 20 <gauge>
22 <dc:attribute name="TYP" value="${wst_kind}"/> 21 <dc:attribute name="name" value="${gauge_name}"/>
23 <dc:attribute name="ID" value="${wst_id}"/> 22 <dc:attribute name="gauge-id" value="${gauge_id}"/>
24 <BESCHREIBUNG><dc:text>Erzeugt aus der Datei: ${wst_description}</dc:text></BESCHREIBUNG>
25 <dc:context> 23 <dc:context>
26 <dc:statement> 24 <dc:statement>
27 SELECT id AS column_id, 25 SELECT description AS gauge_desc,
28 name AS column_name 26 d.id AS discharge_id,
29 FROM wst_columns 27 ti.start_time AS g_start,
30 WHERE wst_id = ${wst_id} 28 ti.stop_time AS g_stop
31 ORDER BY position 29 FROM discharge_tables d JOIN time_intervals ti
30 ON d.time_interval_id = ti.id
31 WHERE d.gauge_id = ${gauge_id} AND d.kind = 1
32 </dc:statement> 32 </dc:statement>
33 <dc:elements><SPALTE><dc:attribute name="ID" value="${column_id}"/><dc:attribute name="NAME" value="${column_name}"/></SPALTE> 33 <dc:elements>
34 <historical>
35 <dc:attribute name="name" value="${gauge_desc}"/>
36 <dc:attribute name="from" value="${g_start}"/>
37 <dc:attribute name="to" value="${g_stop}"/>
38 <dc:attribute name="discharge-id" value="${discharge_id}"/></historical>
34 </dc:elements> 39 </dc:elements>
35 </dc:context> 40 </dc:context>
36 </WST> 41 </gauge>
37 </dc:elements> 42 </dc:elements>
38 </dc:context> 43 </dc:context>
39 </WSTS> 44 </discharge-table-gauge>
40 </dc:element> 45 <fixations>
41 </dc:elements> 46 <dc:context>
42 </dc:context> 47 <dc:statement>
43 </GEWAESSER> 48 SELECT id AS fix_id,
44 </DATENKORB> 49 description AS fix_description
50 FROM wsts WHERE kind = 2 AND river_id = ${river_id}
51 </dc:statement>
52 <dc:elements>
53 <fixation>
54 <dc:attribute name="name" value="${fix_description}"/>
55 <dc:attribute name="fix-id" value="${fix_id}"/></fixation>
56 </dc:elements>
57 </dc:context>
58 </fixations>
59 <flood-protections>
60 <dc:context>
61 <dc:statement>
62 SELECT id AS prot_id,
63 description AS prot_description
64 FROM wsts WHERE kind = 5 AND river_id = ${river_id}
65 </dc:statement>
66 <dc:elements>
67 <flood-protection>
68 <dc:attribute name="name" value="${prot_description}"/>
69 <dc:attribute name="prot-id" value="${prot_id}"/>
70 <columns>
71 <dc:context>
72 <dc:statement>
73 SELECT id AS prot_column_id,
74 name AS prot_column_name
75 FROM wst_columns WHERE wst_id = ${prot_id}
76 ORDER by position
77 </dc:statement>
78 <dc:elements>
79 <column>
80 <dc:attribute name="name" value="${prot_column_name}"/>
81 <dc:attribute name="column-id" value="${prot_column_id}"/></column>
82 </dc:elements>
83 </dc:context>
84 </columns>
85 </flood-protection>
86 </dc:elements>
87 </dc:context>
88 </flood-protections>
89 <flood-water-marks>
90 <dc:context>
91 <dc:statement>
92 SELECT id AS fw_id,
93 description AS fw_description
94 FROM wsts WHERE kind = 4 AND river_id = ${river_id}
95 </dc:statement>
96 <dc:elements>
97 <flood-water-mark>
98 <dc:attribute name="name" value="${fw_description}"/>
99 <dc:attribute name="fw-id" value="${fw_id}"/>
100 <columns>
101 <dc:context>
102 <dc:statement>
103 SELECT id AS fw_column_id,
104 name AS fw_column_name
105 FROM wst_columns WHERE wst_id = ${fw_id}
106 ORDER by position
107 </dc:statement>
108 <dc:elements>
109 <column>
110 <dc:attribute name="name" value="${fw_column_name}"/>
111 <dc:attribute name="column-id" value="${fw_column_id}"/></column>
112 </dc:elements>
113 </dc:context>
114 </columns>
115 </flood-water-mark>
116 </dc:elements>
117 </dc:context>
118 </flood-water-marks>
119 <water-levels>
120 <dc:context>
121 <dc:statement>
122 SELECT id AS wl_id,
123 description AS wl_description
124 FROM wsts WHERE kind = 0 AND river_id = ${river_id}
125 </dc:statement>
126 <dc:elements>
127 <water-level>
128 <dc:attribute name="name" value="${wl_description}"/>
129 <dc:attribute name="wl-id" value="${wl_id}"/>
130 <columns>
131 <dc:context>
132 <dc:statement>
133 SELECT id AS wl_column_id,
134 name AS wl_column_name
135 FROM wst_columns WHERE wst_id = ${wl_id}
136 ORDER by position
137 </dc:statement>
138 <dc:elements>
139 <column>
140 <dc:attribute name="name" value="${wl_column_name}"/>
141 <dc:attribute name="column-id" value="${wl_column_id}"/></column>
142 </dc:elements>
143 </dc:context>
144 </columns>
145 </water-level>
146 </dc:elements>
147 </dc:context>
148 </water-levels>
149 <extra-longitudinal-sections>
150 <dc:context>
151 <dc:statement>
152 SELECT id AS els_id,
153 description AS els_description
154 FROM wsts WHERE kind = 1 AND river_id = ${river_id}
155 </dc:statement>
156 <dc:elements>
157 <extra-longitudinal-section>
158 <dc:attribute name="name" value="${els_description}"/>
159 <dc:attribute name="els-id" value="${els_id}"/>
160 <columns>
161 <dc:context>
162 <dc:statement>
163 SELECT id AS els_column_id,
164 name AS els_column_name
165 FROM wst_columns WHERE wst_id = ${els_id}
166 ORDER by position
167 </dc:statement>
168 <dc:elements>
169 <column>
170 <dc:attribute name="name" value="${els_column_name}"/>
171 <dc:attribute name="column-id" value="${els_column_id}"/></column>
172 </dc:elements>
173 </dc:context>
174 </columns>
175 </extra-longitudinal-section>
176 </dc:elements>
177 </dc:context>
178 </extra-longitudinal-sections>
179 </discharge-table-nn>
180 </dc:element> <!-- river -->
181 </dc:elements>
182 </dc:context>
183 </datacage>
45 </dc:template> 184 </dc:template>
46 185

http://dive4elements.wald.intevation.org