Mercurial > dive4elements > river
comparison artifacts/doc/conf/meta-data.xml @ 8314:5294660df81b
merged.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Wed, 24 Sep 2014 12:02:37 +0200 |
parents | b5e63ad6d307 |
children | 1e4e5ff44aa9 |
comparison
equal
deleted
inserted
replaced
8313:e3a63d9c5bb1 | 8314:5294660df81b |
---|---|
82 <dc:call-macro name="basedata_3_officials_wq"/> | 82 <dc:call-macro name="basedata_3_officials_wq"/> |
83 </dc:when> | 83 </dc:when> |
84 <dc:when test="$out = 'computed_discharge_curve'"> | 84 <dc:when test="$out = 'computed_discharge_curve'"> |
85 <dc:call-macro name="mainvalues"/> | 85 <dc:call-macro name="mainvalues"/> |
86 <dc:call-macro name="basedata_3_officials_wq"/> | 86 <dc:call-macro name="basedata_3_officials_wq"/> |
87 <dc:call-macro name="basedata_2_fixations_wqkms"/> | 87 <dc:call-macro name="basedata_2_fixations_wq"/> |
88 </dc:when> | 88 </dc:when> |
89 <dc:when test="$out = 'fix_wq_curve'"> | 89 <dc:when test="$out = 'fix_wq_curve'"> |
90 <dc:call-macro name="mainvalues"/> | 90 <dc:call-macro name="mainvalues"/> |
91 <dc:call-macro name="qsectors"/> | 91 <dc:call-macro name="qsectors"/> |
92 </dc:when> | 92 </dc:when> |
180 <dc:call-macro name="longitudinal-section-prototype"/> | 180 <dc:call-macro name="longitudinal-section-prototype"/> |
181 </dc:when> | 181 </dc:when> |
182 <dc:comment> Discharge curves </dc:comment> | 182 <dc:comment> Discharge curves </dc:comment> |
183 <dc:when test="$out = 'historical_discharge_wq'"> | 183 <dc:when test="$out = 'historical_discharge_wq'"> |
184 <dc:call-macro name="discharge-curve-prototype"/> | 184 <dc:call-macro name="discharge-curve-prototype"/> |
185 <dc:call-macro name="basedata_5_flood-protections"/> | |
186 <dc:call-macro name="basedata_0"/> | |
187 <dc:call-macro name="basedata_1_additionals"/> | |
188 <dc:call-macro name="basedata_4_heightmarks-points"/> | |
189 <computed_discharge_curve> | |
190 <dc:call-macro name="mainvalues"/> | |
191 </computed_discharge_curve> | |
192 </dc:when> | 185 </dc:when> |
193 <dc:when test="$out = 'discharge_curve'"> | 186 <dc:when test="$out = 'discharge_curve'"> |
194 <dc:call-macro name="discharge-prototype"/> | 187 <dc:call-macro name="discharge-curve-prototype"/> |
195 <computed_discharge_curve> | |
196 <dc:call-macro name="mainvalues"/> | |
197 </computed_discharge_curve> | |
198 </dc:when> | 188 </dc:when> |
199 <dc:when test="$out = 'fix_wq_curve'"> | 189 <dc:when test="$out = 'fix_wq_curve'"> |
200 <dc:call-macro name="discharge-prototype"/> | 190 <dc:call-macro name="discharge-curve-prototype"/> |
201 </dc:when> | 191 </dc:when> |
202 <dc:when test="$out = 'computed_discharge_curve'"> | 192 <dc:when test="$out = 'computed_discharge_curve'"> |
203 <dc:call-macro name="discharge-curve-prototype"/> | 193 <dc:call-macro name="discharge-curve-prototype"/> |
204 <dc:call-macro name="basedata_0_wq"/> | |
205 <dc:call-macro name="basedata_1_additionals_wq"/> | |
206 <dc:call-macro name="basedata_5_flood-protections"/> | |
207 <computed_discharge_curve> | |
208 <dc:call-macro name="mainvalues"/> | |
209 </computed_discharge_curve> | |
210 </dc:when> | 194 </dc:when> |
211 <dc:when test="starts-with($out, 'sq_relation') or | 195 <dc:when test="starts-with($out, 'sq_relation') or |
212 $out = 'sq_overview'"> | 196 $out = 'sq_overview'"> |
213 <dc:call-macro name="sqrelations"/> | 197 <dc:call-macro name="discharge-curve-prototype"/> |
214 </dc:when> | 198 </dc:when> |
215 <dc:comment> Cross sections </dc:comment> | 199 <dc:comment> Cross sections </dc:comment> |
216 <dc:when test="$out = 'cross_section'"> | 200 <dc:when test="$out = 'cross_section'"> |
217 <dc:call-macro name="basedata_0"/> | 201 <dc:call-macro name="basedata_0"/> |
218 <dc:call-macro name="basedata_1_additionals"/> | 202 <dc:call-macro name="basedata_1_additionals"/> |
476 </dc:filter> | 460 </dc:filter> |
477 </dc:macro> | 461 </dc:macro> |
478 | 462 |
479 | 463 |
480 <dc:macro name="historical_discharge_curve"> | 464 <dc:macro name="historical_discharge_curve"> |
481 <dc:variable name="refgauge" type="number" expr="$reference_gauge"/> | |
482 <dc:context> | 465 <dc:context> |
483 <dc:statement> | 466 <dc:statement> |
484 SELECT g.id AS gauge_id, | 467 SELECT g.id AS gauge_id, |
485 g.name AS gauge_name, | 468 g.name AS gauge_name, |
486 dt.id AS dt_id, | 469 dt.id AS dt_id, |
491 JOIN discharge_tables dt ON g.id = dt.gauge_id | 474 JOIN discharge_tables dt ON g.id = dt.gauge_id |
492 LEFT JOIN time_intervals t ON dt.time_interval_id = t.id | 475 LEFT JOIN time_intervals t ON dt.time_interval_id = t.id |
493 WHERE g.river_id = ${river_id} | 476 WHERE g.river_id = ${river_id} |
494 AND dt.kind <> 0 | 477 AND dt.kind <> 0 |
495 AND ((g.station = ${fromkm} AND g.station = ${tokm}) | 478 AND ((g.station = ${fromkm} AND g.station = ${tokm}) |
496 OR g.official_number = ${refgauge}) | 479 OR g.official_number = ${reference_gauge}) |
497 ORDER BY start_time | 480 ORDER BY start_time |
498 </dc:statement> | 481 </dc:statement> |
499 <dc:if test="dc:has-result()"> | 482 <dc:if test="dc:has-result()"> |
500 <historical_discharge_curves> | 483 <historical_discharge_curves> |
501 <dc:group expr="$gauge_name"> | 484 <dc:group expr="$gauge_name"> |
1089 </dc:call-macro> | 1072 </dc:call-macro> |
1090 </waterlevels_discharge> | 1073 </waterlevels_discharge> |
1091 </dc:if> | 1074 </dc:if> |
1092 </dc:filter> | 1075 </dc:filter> |
1093 </dc:macro> | 1076 </dc:macro> |
1077 | |
1078 | |
1094 <!-- Macros to load system data --> | 1079 <!-- Macros to load system data --> |
1095 | 1080 |
1096 <dc:macro name="annotations"> | 1081 <dc:macro name="annotations"> |
1097 <annotation factory="annotations" ids="{$river_id}" target_out="{$out}" /> | 1082 <annotation factory="annotations" ids="{$river_id}" target_out="{$out}" /> |
1098 </dc:macro> | 1083 </dc:macro> |
1142 </dc:for-each> | 1127 </dc:for-each> |
1143 </dc:context> | 1128 </dc:context> |
1144 </hyks> | 1129 </hyks> |
1145 </dc:macro> | 1130 </dc:macro> |
1146 | 1131 |
1132 | |
1133 <!-- wst-data --> | |
1134 | |
1135 <!-- model-waterlevels --> | |
1136 <dc:macro name="basedata_0_macro"> | |
1137 <dc:filter expr="$kind = 0"> | |
1138 <dc:if test="dc:has-result()"> | |
1139 <basedata> | |
1140 <dc:group expr="$wst_description"> | |
1141 <basedata name="{dc:group-key()}"> | |
1142 <dc:for-each> | |
1143 <dc:macro-body/> | |
1144 </dc:for-each> | |
1145 </basedata> | |
1146 </dc:group> | |
1147 </basedata> | |
1148 </dc:if> | |
1149 </dc:filter> | |
1150 </dc:macro> | |
1151 | |
1152 <dc:macro name="basedata_0"> | |
1153 <dc:call-macro name="basedata_0_macro"> | |
1154 <column name="{$wst_column_name}" | |
1155 ids="base_data-wstv-{$wst_column_position}-{$wst_id}" | |
1156 factory="staticwqkms" target_out="{$out}" | |
1157 info="{$info} [km {$deffrom} - {$defto}]"/> | |
1158 </dc:call-macro> | |
1159 </dc:macro> | |
1160 | |
1161 <dc:macro name="basedata_0_wq"> | |
1162 <dc:call-macro name="basedata_0_macro"> | |
1163 <column name="{$wst_column_name}" | |
1164 ids="base_data-wstv-{$wst_column_position}-{$wst_id}" | |
1165 factory="wqinterpol" target_out="{$out}" | |
1166 info="{$info} [km {$deffrom} - {$defto}]"/> | |
1167 </dc:call-macro> | |
1168 </dc:macro> | |
1169 | |
1170 <!-- additional longitudinal sections --> | |
1171 <dc:macro name="basedata_1_additionals_macro"> | |
1172 <dc:filter expr="$kind=1"> | |
1173 <dc:if test="dc:has-result()"> | |
1174 <additionals> | |
1175 <dc:group expr="dc:replace($wst_description, 'Zus.Längsschnitte/', '')"> | |
1176 <additional name="{dc:group-key()}"> | |
1177 <dc:for-each> | |
1178 <dc:macro-body/> | |
1179 </dc:for-each> | |
1180 </additional> | |
1181 </dc:group> | |
1182 </additionals> | |
1183 </dc:if> | |
1184 </dc:filter> | |
1185 </dc:macro> | |
1186 | |
1187 <dc:macro name="basedata_1_additionals"> | |
1188 <dc:call-macro name="basedata_1_additionals_macro"> | |
1189 <column name="{$wst_column_name}" | |
1190 ids="additionals-wstv-{$wst_column_position}-{$wst_id}" | |
1191 factory="staticwqkms" target_out="{$out}" | |
1192 info="{$info} [km {$deffrom} - {$defto}]"/> | |
1193 </dc:call-macro> | |
1194 </dc:macro> | |
1195 | |
1196 <dc:macro name="basedata_1_additionals_wq"> | |
1197 <dc:call-macro name="basedata_1_additionals_macro"> | |
1198 <column name="{$wst_column_name}" | |
1199 ids="base_data-wstv-{$wst_column_position}-{$wst_id}" | |
1200 factory="wqinterpol" target_out="{$out}" | |
1201 info="{$info} [km {$deffrom} - {$defto}]"/> | |
1202 </dc:call-macro> | |
1203 </dc:macro> | |
1204 | |
1205 <dc:macro name="basedata_1_additionals-relative_point"> | |
1206 <dc:call-macro name="basedata_1_additionals_macro"> | |
1207 <column name="{$wst_column_name}" | |
1208 ids="additionals-wstv-{$wst_column_position}-{$wst_id}" | |
1209 factory="staticwkms" target_out="{$out}" | |
1210 info="{$info} [km {$deffrom} - {$defto}]"/> | |
1211 </dc:call-macro> | |
1212 </dc:macro> | |
1213 | |
1214 <!-- fixations --> | |
1147 <dc:macro name="fixings-macro"> | 1215 <dc:macro name="fixings-macro"> |
1148 <dc:filter expr="$kind=2"> | 1216 <dc:filter expr="$kind=2"> |
1149 <dc:if test="dc:has-result()"> | 1217 <dc:if test="dc:has-result()"> |
1150 <fixations> | 1218 <fixations> |
1151 <dc:group expr="dc:replace($wst_description, 'Fixierungen/', '')"> | 1219 <dc:group expr="dc:replace($wst_description, 'Fixierungen/', '')"> |
1158 </fixations> | 1226 </fixations> |
1159 </dc:if> | 1227 </dc:if> |
1160 </dc:filter> | 1228 </dc:filter> |
1161 </dc:macro> | 1229 </dc:macro> |
1162 | 1230 |
1163 <dc:macro name="basedata_2_fixations_wqkms"> | |
1164 <dc:call-macro name="fixings-macro"> | |
1165 <column name="{$wst_column_name}" | |
1166 ids="fixations-wstv-{$wst_column_position}-{$wst_id}" | |
1167 factory="wqinterpol" target_out="{$out}" | |
1168 info="{$info} [km {$deffrom} - {$defto}]"/> | |
1169 </dc:call-macro> | |
1170 </dc:macro> | |
1171 | |
1172 <dc:macro name="basedata_2_fixations"> | 1231 <dc:macro name="basedata_2_fixations"> |
1173 <dc:call-macro name="fixings-macro"> | 1232 <dc:call-macro name="fixings-macro"> |
1174 <column name="{$wst_column_name}" | 1233 <column name="{$wst_column_name}" |
1175 ids="fixations-wstv-{$wst_column_position}-{$wst_id}" | 1234 ids="fixations-wstv-{$wst_column_position}-{$wst_id}" |
1176 factory="staticwqkms" target_out="{$out}" | 1235 factory="staticwqkms" target_out="{$out}" |
1177 info="{$info} [km {$deffrom} - {$defto}]"/> | 1236 info="{$info} [km {$deffrom} - {$defto}]"/> |
1178 </dc:call-macro> | 1237 </dc:call-macro> |
1179 </dc:macro> | 1238 </dc:macro> |
1180 | 1239 |
1181 <dc:macro name="basedata_3_officials"> | 1240 <dc:macro name="basedata_2_fixations_wq"> |
1241 <dc:call-macro name="fixings-macro"> | |
1242 <column name="{$wst_column_name}" | |
1243 ids="fixations-wstv-{$wst_column_position}-{$wst_id}" | |
1244 factory="wqinterpol" target_out="{$out}" | |
1245 info="{$info} [km {$deffrom} - {$defto}]"/> | |
1246 </dc:call-macro> | |
1247 </dc:macro> | |
1248 | |
1249 <dc:macro name="basedata_2_fixations_relative_point"> | |
1250 <dc:call-macro name="fixings-macro"> | |
1251 <column name="{$wst_column_name}" | |
1252 ids="fixations-wstv-{$wst_column_position}-{$wst_id}" | |
1253 factory="staticwkms" target_out="{$out}" | |
1254 info="{$info} [km {$deffrom} - {$defto}]"/> | |
1255 </dc:call-macro> | |
1256 </dc:macro> | |
1257 | |
1258 <!-- official lines --> | |
1259 <dc:macro name="basedata_3_macro"> | |
1182 <dc:filter expr="$kind=3"> | 1260 <dc:filter expr="$kind=3"> |
1183 <dc:if test="dc:has-result()"> | 1261 <dc:if test="dc:has-result()"> |
1184 <officiallines> | 1262 <officiallines> |
1185 <dc:group expr="$wst_description"> | 1263 <dc:group expr="$wst_description"> |
1186 <official name="{dc:group-key()}"> | 1264 <official name="{dc:group-key()}"> |
1187 <dc:for-each> | 1265 <dc:for-each> |
1188 <column name="{$wst_column_name}" | 1266 <dc:macro-body/> |
1189 ids="additionals-wstv-{$wst_column_position}-{$wst_id}" | |
1190 factory="staticwqkms" | |
1191 target_out="{$out}" | |
1192 info="{$info} [km {$deffrom} - {$defto}]"/> | |
1193 </dc:for-each> | 1267 </dc:for-each> |
1194 </official> | 1268 </official> |
1195 </dc:group> | 1269 </dc:group> |
1196 </officiallines> | 1270 </officiallines> |
1197 </dc:if> | 1271 </dc:if> |
1198 </dc:filter> | 1272 </dc:filter> |
1199 </dc:macro> | 1273 </dc:macro> |
1200 | 1274 |
1275 <dc:macro name="basedata_3_officials"> | |
1276 <dc:call-macro name="basedata_3_macro"> | |
1277 <column name="{$wst_column_name}" | |
1278 ids="additionals-wstv-{$wst_column_position}-{$wst_id}" | |
1279 factory="staticwqkms" | |
1280 target_out="{$out}" | |
1281 info="{$info} [km {$deffrom} - {$defto}]"/> | |
1282 </dc:call-macro> | |
1283 </dc:macro> | |
1284 | |
1201 <dc:macro name="basedata_3_officials_wq"> | 1285 <dc:macro name="basedata_3_officials_wq"> |
1202 <dc:filter expr="$kind=3"> | 1286 <dc:call-macro name="basedata_3_macro"> |
1203 <dc:if test="dc:has-result()"> | 1287 <column name="{$wst_column_name}" |
1204 <officiallines> | 1288 ids="officials_wq-wstv-{$wst_column_position}-{$wst_id}" |
1205 <dc:group expr="$wst_description"> | 1289 factory="wqinterpol" |
1206 <official name="{dc:group-key()}"> | 1290 target_out="{$out}" |
1207 <dc:for-each> | 1291 info="{$info} [km {$deffrom} - {$defto}]"/> |
1208 <column name="{$wst_column_name}" | 1292 </dc:call-macro> |
1209 ids="officials_wq-wstv-{$wst_column_position}-{$wst_id}" | 1293 </dc:macro> |
1210 factory="wqinterpol" | 1294 |
1211 target_out="{$out}" | 1295 <!-- flood marks --> |
1212 info="{$info} [km {$deffrom} - {$defto}]"/> | 1296 <dc:macro name="basedata_4_macro"> |
1213 </dc:for-each> | |
1214 </official> | |
1215 </dc:group> | |
1216 </officiallines> | |
1217 </dc:if> | |
1218 </dc:filter> | |
1219 </dc:macro> | |
1220 | |
1221 <dc:macro name="basedata_4_heightmarks-points"> | |
1222 <dc:filter expr="$kind=4"> | 1297 <dc:filter expr="$kind=4"> |
1223 <dc:if test="dc:has-result()"> | 1298 <dc:if test="dc:has-result()"> |
1224 <heightmarks> | 1299 <heightmarks> |
1225 <dc:group expr="dc:replace($wst_description, 'HW-Marken/', '')"> | 1300 <dc:group expr="dc:replace($wst_description, 'HW-Marken/', '')"> |
1226 <heightmark name="{dc:group-key()}"> | 1301 <heightmark name="{dc:group-key()}"> |
1227 <dc:for-each> | 1302 <dc:for-each> |
1228 <column name="{$wst_column_name}" | 1303 <dc:macro-body/> |
1229 ids="heightmarks_points-wstv-{$wst_column_position}-{$wst_id}" | |
1230 factory="staticwkms" target_out="{$out}" | |
1231 info="{$info} [km {$deffrom} - {$defto}]"/> | |
1232 </dc:for-each> | 1304 </dc:for-each> |
1233 </heightmark> | 1305 </heightmark> |
1234 </dc:group> | 1306 </dc:group> |
1235 </heightmarks> | 1307 </heightmarks> |
1236 </dc:if> | 1308 </dc:if> |
1237 </dc:filter> | 1309 </dc:filter> |
1238 </dc:macro> | 1310 </dc:macro> |
1239 | 1311 |
1312 <dc:macro name="basedata_4_heightmarks-points"> | |
1313 <dc:call-macro name="basedata_4_macro"> | |
1314 <column name="{$wst_column_name}" | |
1315 ids="heightmarks_points-wstv-{$wst_column_position}-{$wst_id}" | |
1316 factory="staticwkms" target_out="{$out}" | |
1317 info="{$info} [km {$deffrom} - {$defto}]"/> | |
1318 </dc:call-macro> | |
1319 </dc:macro> | |
1320 | |
1321 <dc:macro name="basedata_4_heightmarks-points_wq"> | |
1322 <dc:call-macro name="basedata_4_macro"> | |
1323 <column name="{$wst_column_name}" | |
1324 ids="heightmarks_points-wstv-{$wst_column_position}-{$wst_id}" | |
1325 factory="wqinterpol" target_out="{$out}" | |
1326 info="{$info} [km {$deffrom} - {$defto}]"/> | |
1327 </dc:call-macro> | |
1328 </dc:macro> | |
1329 | |
1240 <dc:macro name="basedata_4_heightmarks-points-relative_points"> | 1330 <dc:macro name="basedata_4_heightmarks-points-relative_points"> |
1241 <dc:filter expr="$kind=4"> | 1331 <dc:call-macro name="basedata_4_macro"> |
1242 <dc:if test="dc:has-result()"> | 1332 <column name="{$wst_column_name}" |
1243 <heightmarks> | 1333 ids="heightmarks_points-wstv-{$wst_column_position}-{$wst_id}" |
1244 <dc:group expr="dc:replace($wst_description, 'HW-Marken/', '')"> | 1334 factory="staticwkms" target_out="{$out}" |
1335 info="{$info} [km {$deffrom} - {$defto}]"/> | |
1336 </dc:call-macro> | |
1337 </dc:macro> | |
1338 | |
1339 <!-- flood protection structures --> | |
1340 <dc:macro name="basedata_5_macro"> | |
1341 <dc:filter expr="$kind=5"> | |
1342 <dc:if test="dc:has-result()"> | |
1343 <flood_protections> | |
1344 <dc:group expr="dc:replace($wst_description, 'HW-Schutzanlagen/', '')"> | |
1345 <flood_protection name="{dc:group-key()}"> | |
1346 <dc:for-each> | |
1347 <dc:macro-body/> | |
1348 </dc:for-each> | |
1349 </flood_protection> | |
1350 </dc:group> | |
1351 </flood_protections> | |
1352 </dc:if> | |
1353 </dc:filter> | |
1354 </dc:macro> | |
1355 | |
1356 <dc:macro name="basedata_5_flood-protections"> | |
1357 <dc:call-macro name="basedata_5_macro"> | |
1358 <column name="{$wst_column_name}" | |
1359 ids="flood_protection-wstv-{$wst_column_position}-{$wst_id}" | |
1360 factory="staticwkms" target_out="{$out}" | |
1361 info="{$info} [km {$deffrom} - {$defto}]"/> | |
1362 </dc:call-macro> | |
1363 </dc:macro> | |
1364 | |
1365 <dc:macro name="basedata_5_flood-protections_wq"> | |
1366 <dc:call-macro name="basedata_5_macro"> | |
1367 <column name="{$wst_column_name}" | |
1368 ids="flood_protection-wstv-{$wst_column_position}-{$wst_id}" | |
1369 factory="wqinterpol" target_out="{$out}" | |
1370 info="{$info} [km {$deffrom} - {$defto}]"/> | |
1371 </dc:call-macro> | |
1372 </dc:macro> | |
1373 | |
1374 <dc:macro name="basedata_5_flood-protections_relative_points"> | |
1375 <dc:call-macro name="basedata_5_macro"> | |
1376 <column name="{$wst_column_name}" | |
1377 ids="flood_protection-wstv-{$wst_column_position}-{$wst_id}" | |
1378 factory="staticwkms" target_out="{$out}" | |
1379 info="{$info} [km {$deffrom} - {$defto}]"/> | |
1380 </dc:call-macro> | |
1381 </dc:macro> | |
1382 | |
1383 <!-- waterlevel differences imported from CSV-files for M-INFO --> | |
1384 <dc:macro name="basedata_6_delta_w"> | |
1385 <dc:filter expr="$kind=6"> | |
1386 <dc:if test="dc:has-result()"> | |
1387 <delta_w> | |
1388 <delta_w_cm> | |
1389 <dc:filter expr="contains($wst_description, 'cm.csv')"> | |
1390 <dc:group expr="dc:replace($wst_description, 'CSV/', '')"> | |
1391 <relativepoint name="{dc:group-key()}"> | |
1392 <dc:for-each> | |
1393 <column name="{$wst_column_name}" | |
1394 ids="delta_w-wstv-{$wst_column_position}-{$wst_id}" | |
1395 factory="staticwkms" | |
1396 target_out="{$out}" | |
1397 info="{$info} [km {$deffrom} - {$defto}]"/> | |
1398 </dc:for-each> | |
1399 </relativepoint> | |
1400 </dc:group> | |
1401 </dc:filter> | |
1402 </delta_w_cm> | |
1403 <delta_w_cma> | |
1404 <dc:filter expr="contains($wst_description, 'cm-a.csv')"> | |
1405 <dc:group expr="dc:replace($wst_description, 'CSV/', '')"> | |
1406 <relativepoint name="{dc:group-key()}"> | |
1407 <dc:for-each> | |
1408 <column name="{$wst_column_name}" | |
1409 ids="delta_w_cma-wstv-{$wst_column_position}-{$wst_id}" | |
1410 factory="staticwkms" target_out="{$out}" | |
1411 info="{$info} [km {$deffrom} - {$defto}]"/> | |
1412 </dc:for-each> | |
1413 </relativepoint> | |
1414 </dc:group> | |
1415 </dc:filter> | |
1416 </delta_w_cma> | |
1417 </delta_w> | |
1418 </dc:if> | |
1419 </dc:filter> | |
1420 </dc:macro> | |
1421 | |
1422 <!-- waterlevels imported from CSV-files for M-INFO --> | |
1423 <dc:macro name="basedata_7_macro"> | |
1424 <dc:filter expr="$kind=7"> | |
1425 <dc:if test="dc:has-result()"> | |
1426 <wlevel> | |
1427 <dc:group expr="dc:replace($wst_description, 'CSV/', '')"> | |
1245 <relativepoint name="{dc:group-key()}"> | 1428 <relativepoint name="{dc:group-key()}"> |
1246 <dc:for-each> | 1429 <dc:for-each> |
1247 <column name="{$wst_column_name}" | 1430 <dc:macro-body/> |
1248 ids="heightmarks_points-wstv-{$wst_column_position}-{$wst_id}" | |
1249 factory="staticwkms" target_out="{$out}" | |
1250 info="{$info} [km {$deffrom} - {$defto}]"/> | |
1251 </dc:for-each> | 1431 </dc:for-each> |
1252 </relativepoint> | 1432 </relativepoint> |
1253 </dc:group> | 1433 </dc:group> |
1254 </heightmarks> | 1434 </wlevel> |
1255 </dc:if> | 1435 </dc:if> |
1256 </dc:filter> | 1436 </dc:filter> |
1257 </dc:macro> | 1437 </dc:macro> |
1438 | |
1439 <dc:macro name="basedata_7_waterlevels"> | |
1440 <dc:call-macro name="basedata_7_macro"> | |
1441 <column name="{$wst_column_name}" | |
1442 ids="additionals-wstv-{$wst_column_position}-{$wst_id}" | |
1443 factory="staticwqkms" target_out="{$out}" | |
1444 info="{$info} [km {$deffrom} - {$defto}]"/> | |
1445 </dc:call-macro> | |
1446 </dc:macro> | |
1447 | |
1448 <dc:macro name="basedata_7_waterlevels_wq"> | |
1449 <dc:call-macro name="basedata_7_macro"> | |
1450 <column name="{$wst_column_name}" | |
1451 ids="additionals-wstv-{$wst_column_position}-{$wst_id}" | |
1452 factory="wqinterpol" target_out="{$out}" | |
1453 info="{$info} [km {$deffrom} - {$defto}]"/> | |
1454 </dc:call-macro> | |
1455 </dc:macro> | |
1456 | |
1457 | |
1458 <!-- prototypes --> | |
1258 | 1459 |
1259 <dc:macro name="discharge-curve-prototype"> | 1460 <dc:macro name="discharge-curve-prototype"> |
1260 <dc:call-macro name="discharge_table_gauge"/> | 1461 <computed_discharge_curve> |
1462 <dc:call-macro name="discharge_table_gauge"/> | |
1463 <dc:call-macro name="mainvalues"/> | |
1464 </computed_discharge_curve> | |
1261 <dc:call-macro name="historical_discharge_curve"/> | 1465 <dc:call-macro name="historical_discharge_curve"/> |
1262 <dc:call-macro name="basedata_0_wq"/> | 1466 <dc:call-macro name="basedata_0_wq"/> |
1467 <dc:call-macro name="basedata_1_additionals_wq"/> | |
1468 <dc:call-macro name="basedata_2_fixations_wq"/> | |
1263 <dc:call-macro name="basedata_3_officials_wq"/> | 1469 <dc:call-macro name="basedata_3_officials_wq"/> |
1264 <dc:call-macro name="basedata_2_fixations_wqkms"/> | 1470 <dc:call-macro name="basedata_4_heightmarks-points_wq"/> |
1265 <dc:call-macro name="basedata_4_heightmarks-points"/> | 1471 <dc:call-macro name="basedata_5_flood-protections_wq"/> |
1472 <minfo> | |
1473 <dc:call-macro name="sqrelations"/> | |
1474 <dc:call-macro name="basedata_7_waterlevels_wq"/> | |
1475 </minfo> | |
1266 </dc:macro> | 1476 </dc:macro> |
1267 | 1477 |
1268 <dc:macro name="longitudinal-section-prototype"> | 1478 <dc:macro name="longitudinal-section-prototype"> |
1269 <dc:call-macro name="basedata_0"/> | 1479 <dc:call-macro name="basedata_0"/> |
1270 <dc:call-macro name="basedata_1_additionals"/> | 1480 <dc:call-macro name="basedata_1_additionals"/> |
1304 <dc:call-macro name="bedquality"/> | 1514 <dc:call-macro name="bedquality"/> |
1305 <dc:call-macro name="flow-velocity"/> | 1515 <dc:call-macro name="flow-velocity"/> |
1306 <dc:call-macro name="sediment-load"/> | 1516 <dc:call-macro name="sediment-load"/> |
1307 </dc:macro> | 1517 </dc:macro> |
1308 | 1518 |
1309 <dc:macro name="discharge-prototype"> | 1519 |
1310 <dc:call-macro name="discharge-curve-prototype"/> | 1520 <!-- porosities --> |
1311 <dc:call-macro name="basedata_5_flood-protections"/> | |
1312 <dc:call-macro name="basedata_0"/> | |
1313 <dc:call-macro name="basedata_1_additionals"/> | |
1314 <dc:call-macro name="basedata_1_additionals_marks"/> | |
1315 <dc:call-macro name="basedata_4_heightmarks-points"/> | |
1316 <dc:call-macro name="basedata_1_additionals-relative_point"/> | |
1317 <dc:call-macro name="basedata_2_fixations_relative_point"/> | |
1318 <dc:call-macro name="basedata_4_heightmarks-points-relative_points"/> | |
1319 <dc:call-macro name="basedata_5_flood-protections_relative_points"/> | |
1320 <dc:call-macro name="mainvalues"/> | |
1321 <dc:call-macro name="annotations"/> | |
1322 | |
1323 <computed_discharge_curve> | |
1324 <dc:call-macro name="mainvalues"/> | |
1325 </computed_discharge_curve> | |
1326 </dc:macro> | |
1327 | |
1328 <dc:macro name="porosities"> | 1521 <dc:macro name="porosities"> |
1329 <porosities> | 1522 <porosities> |
1330 <dc:context> | 1523 <dc:context> |
1331 <dc:statement> | 1524 <dc:statement> |
1332 SELECT DISTINCT | 1525 SELECT DISTINCT |
1388 </dc:if> | 1581 </dc:if> |
1389 </dc:context> | 1582 </dc:context> |
1390 </densities> | 1583 </densities> |
1391 </dc:macro> | 1584 </dc:macro> |
1392 | 1585 |
1586 <!-- sediment load --> | |
1393 <dc:macro name="load"> | 1587 <dc:macro name="load"> |
1394 <year description="{$timespan}" | 1588 <year description="{$timespan}" |
1395 factory="sedimentload" | 1589 factory="sedimentload" |
1396 target_out="{$out}" | 1590 target_out="{$out}" |
1397 info="{$info}" | 1591 info="{$info}" |
1541 </dc:context> | 1735 </dc:context> |
1542 </sediment_load_ls> | 1736 </sediment_load_ls> |
1543 </sedimentloads> | 1737 </sedimentloads> |
1544 </dc:macro> | 1738 </dc:macro> |
1545 | 1739 |
1546 | 1740 <!-- annotations --> |
1547 <dc:macro name="basedata_5_flood-protections"> | |
1548 <dc:filter expr="$kind=5"> | |
1549 <dc:if test="dc:has-result()"> | |
1550 <flood_protections> | |
1551 <dc:group expr="dc:replace($wst_description, 'HW-Schutzanlagen/', '')"> | |
1552 <flood_protection name="{dc:group-key()}"> | |
1553 <dc:for-each> | |
1554 <column name="{$wst_column_name}" | |
1555 ids="flood_protection-wstv-{$wst_column_position}-{$wst_id}" | |
1556 factory="staticwkms" target_out="{$out}" | |
1557 info="{$info} [km {$deffrom} - {$defto}]"/> | |
1558 </dc:for-each> | |
1559 </flood_protection> | |
1560 </dc:group> | |
1561 </flood_protections> | |
1562 </dc:if> | |
1563 </dc:filter> | |
1564 </dc:macro> | |
1565 | |
1566 <dc:macro name="annotations_per_type"> | 1741 <dc:macro name="annotations_per_type"> |
1567 <annotations> | 1742 <annotations> |
1568 <dc:context> | 1743 <dc:context> |
1569 <all_annotations factory="annotations" ids="{$river_id}" target_out="{$out}" /> | 1744 <all_annotations factory="annotations" ids="{$river_id}" target_out="{$out}" /> |
1570 <dc:statement> | 1745 <dc:statement> |
1597 </dc:for-each> | 1772 </dc:for-each> |
1598 </dc:context> | 1773 </dc:context> |
1599 </sources_sinks> | 1774 </sources_sinks> |
1600 </dc:macro> | 1775 </dc:macro> |
1601 | 1776 |
1602 <dc:macro name="basedata_2_fixations_relative_point"> | |
1603 <dc:filter expr="$kind=2"> | |
1604 <dc:if test="dc:has-result()"> | |
1605 <fixations> | |
1606 <dc:group expr="dc:replace($wst_description, 'Fixierungen/', '')"> | |
1607 <relativepoint name="{dc:group-key()}"> | |
1608 <dc:for-each> | |
1609 <column name="{$wst_column_name}" | |
1610 ids="fixations-wstv-{$wst_column_position}-{$wst_id}" | |
1611 factory="staticwkms" target_out="{$out}" | |
1612 info="{$info} [km {$deffrom} - {$defto}]"/> | |
1613 </dc:for-each> | |
1614 </relativepoint> | |
1615 </dc:group> | |
1616 </fixations> | |
1617 </dc:if> | |
1618 </dc:filter> | |
1619 </dc:macro> | |
1620 | |
1621 <dc:macro name="basedata_5_flood-protections_relative_points"> | |
1622 <dc:filter expr="$kind=5"> | |
1623 <dc:if test="dc:has-result()"> | |
1624 <flood_protections> | |
1625 <dc:group expr="$wst_description"> | |
1626 <relativepoint name="{dc:group-key()}"> | |
1627 <dc:for-each> | |
1628 <column name="{$wst_column_name}" | |
1629 ids="flood_protection-wstv-{$wst_column_position}-{$wst_id}" | |
1630 factory="staticwkms" target_out="{$out}" | |
1631 info="{$info} [km {$deffrom} - {$defto}]"/> | |
1632 </dc:for-each> | |
1633 </relativepoint> | |
1634 </dc:group> | |
1635 </flood_protections> | |
1636 </dc:if> | |
1637 </dc:filter> | |
1638 </dc:macro> | |
1639 | |
1640 <dc:macro name="basedata_1_additionals-relative_point"> | |
1641 <dc:filter expr="$kind=1"> | |
1642 <dc:if test="dc:has-result()"> | |
1643 <additionals> | |
1644 <dc:group expr="$wst_description"> | |
1645 <relativepoint name="{dc:group-key()}"> | |
1646 <dc:for-each> | |
1647 <column name="{$wst_column_name}" | |
1648 ids="additionals-wstv-{$wst_column_position}-{$wst_id}" | |
1649 factory="staticwkms" target_out="{$out}" | |
1650 info="{$info} [km {$deffrom} - {$defto}]"/> | |
1651 </dc:for-each> | |
1652 </relativepoint> | |
1653 </dc:group> | |
1654 </additionals> | |
1655 </dc:if> | |
1656 </dc:filter> | |
1657 </dc:macro> | |
1658 | |
1659 | |
1660 <dc:macro name="basedata_7_waterlevels"> | |
1661 <dc:filter expr="$kind=7"> | |
1662 <dc:if test="dc:has-result()"> | |
1663 <wlevel> | |
1664 <dc:group expr="dc:replace($wst_description, 'CSV/', '')"> | |
1665 <relativepoint name="{dc:group-key()}"> | |
1666 <dc:for-each> | |
1667 <column name="{$wst_column_name}" | |
1668 ids="additionals-wstv-{$wst_column_position}-{$wst_id}" | |
1669 factory="staticwqkms" target_out="{$out}" | |
1670 info="{$info} [km {$deffrom} - {$defto}]"/> | |
1671 </dc:for-each> | |
1672 </relativepoint> | |
1673 </dc:group> | |
1674 </wlevel> | |
1675 </dc:if> | |
1676 </dc:filter> | |
1677 </dc:macro> | |
1678 | |
1679 | |
1680 <dc:macro name="basedata_6_delta_w"> | |
1681 <dc:filter expr="$kind=6"> | |
1682 <dc:if test="dc:has-result()"> | |
1683 <delta_w> | |
1684 <delta_w_cm> | |
1685 <dc:filter expr="contains($wst_description, 'cm.csv')"> | |
1686 <dc:group expr="dc:replace($wst_description, 'CSV/', '')"> | |
1687 <relativepoint name="{dc:group-key()}"> | |
1688 <dc:for-each> | |
1689 <column name="{$wst_column_name}" | |
1690 ids="delta_w-wstv-{$wst_column_position}-{$wst_id}" | |
1691 factory="staticwkms" | |
1692 target_out="{$out}" | |
1693 info="{$info} [km {$deffrom} - {$defto}]"/> | |
1694 </dc:for-each> | |
1695 </relativepoint> | |
1696 </dc:group> | |
1697 </dc:filter> | |
1698 </delta_w_cm> | |
1699 <delta_w_cma> | |
1700 <dc:filter expr="contains($wst_description, 'cm-a.csv')"> | |
1701 <dc:group expr="dc:replace($wst_description, 'CSV/', '')"> | |
1702 <relativepoint name="{dc:group-key()}"> | |
1703 <dc:for-each> | |
1704 <column name="{$wst_column_name}" | |
1705 ids="delta_w_cma-wstv-{$wst_column_position}-{$wst_id}" | |
1706 factory="staticwkms" target_out="{$out}" | |
1707 info="{$info} [km {$deffrom} - {$defto}]"/> | |
1708 </dc:for-each> | |
1709 </relativepoint> | |
1710 </dc:group> | |
1711 </dc:filter> | |
1712 </delta_w_cma> | |
1713 </delta_w> | |
1714 </dc:if> | |
1715 </dc:filter> | |
1716 </dc:macro> | |
1717 | |
1718 <dc:macro name="discharge_table_gauge"> | 1777 <dc:macro name="discharge_table_gauge"> |
1719 <dc:context> | 1778 <dc:context> |
1720 <dc:statement> | 1779 <dc:statement> |
1721 SELECT g.id AS gauge_id, | 1780 SELECT g.id AS gauge_id, |
1722 g.name AS gauge_name, | 1781 g.name AS gauge_name, |
1726 JOIN discharge_tables dt ON g.id = dt.gauge_id | 1785 JOIN discharge_tables dt ON g.id = dt.gauge_id |
1727 LEFT JOIN time_intervals t ON dt.time_interval_id = t.id | 1786 LEFT JOIN time_intervals t ON dt.time_interval_id = t.id |
1728 WHERE g.river_id = ${river_id} | 1787 WHERE g.river_id = ${river_id} |
1729 AND dt.kind = 0 | 1788 AND dt.kind = 0 |
1730 AND ((g.station = ${fromkm} AND g.station = ${tokm}) | 1789 AND ((g.station = ${fromkm} AND g.station = ${tokm}) |
1731 OR g.official_number = ${refgauge}) | 1790 OR g.official_number = ${reference_gauge}) |
1732 </dc:statement> | 1791 </dc:statement> |
1733 <dc:if test="dc:has-result()"> | 1792 <dc:if test="dc:has-result()"> |
1734 <dc:for-each> | 1793 <dc:for-each> |
1735 <current_gauge factory="gaugedischarge" target_out="{$out}" | 1794 <current_gauge factory="gaugedischarge" target_out="{$out}" |
1736 ids="{$gauge_name}"/> | 1795 ids="{$gauge_name}"/> |
2066 </dc:macro> | 2125 </dc:macro> |
2067 | 2126 |
2068 <dc:macro name="sqrelations"> | 2127 <dc:macro name="sqrelations"> |
2069 <dc:context> | 2128 <dc:context> |
2070 <dc:statement> | 2129 <dc:statement> |
2071 SELECT sq.description AS description, | 2130 SELECT |
2072 ti.start_time AS start_time, | 2131 ti.start_time AS start_time, |
2073 ti.stop_time AS stop_time, | 2132 ti.stop_time AS stop_time, |
2074 ms.name AS station_name, | 2133 ms.name AS station_name, |
2075 lower(sqv.parameter) AS parameter, | 2134 lower(sqv.parameter) AS parameter, |
2076 sqv.id AS sqvid, | 2135 sqv.id AS sqvid, |
2077 ra.a AS station_km | 2136 ra.a AS station_km |
2078 FROM sq_relation sq | 2137 FROM sq_relation sq |
2079 JOIN time_intervals ti ON ti.id = sq.time_interval_id | 2138 JOIN time_intervals ti ON ti.id = sq.time_interval_id |
2080 JOIN rivers r ON r.id = sq.river_id | |
2081 JOIN sq_relation_value sqv ON sqv.sq_relation_id = sq.id | 2139 JOIN sq_relation_value sqv ON sqv.sq_relation_id = sq.id |
2082 JOIN measurement_station ms ON sqv.measurement_station_id = ms.id | 2140 JOIN measurement_station ms ON sqv.measurement_station_id = ms.id |
2083 JOIN ranges ra ON ms.range_id = ra.id | 2141 JOIN ranges ra ON ms.range_id = ra.id |
2142 JOIN rivers r ON r.id = ra.river_id | |
2084 WHERE r.id = ${river_id} | 2143 WHERE r.id = ${river_id} |
2085 ORDER BY station_km, start_time, stop_time | 2144 ORDER BY start_time, stop_time |
2086 </dc:statement> | 2145 </dc:statement> |
2087 <dc:if test="dc:has-result()"> | 2146 <dc:if test="dc:has-result()"> |
2088 <sq_relations> | 2147 <sq_relations> |
2089 <dc:filter expr="$out = concat('sq_relation_', $parameter) or | 2148 <dc:group expr="concat('Parameter ', dc:uppercase($parameter))"> |
2090 $out = 'sq_overview'"> | 2149 <parameter description="{dc:group-key()}"> |
2091 <dc:group expr="concat('Parameter ', dc:uppercase($parameter))"> | 2150 <dc:group expr="$station_km" type="number"> |
2092 <parameter description="{dc:group-key()}"> | 2151 <dc:group expr="concat('km ', $station_km, ': ', |
2093 <dc:for-each> | 2152 $station_name)"> |
2094 <dc:group expr="$station_km" type="number"> | 2153 <station description="{dc:group-key()}"> |
2095 <dc:group expr="concat('km ', $station_km, ': ', | 2154 <dc:for-each> |
2096 $station_name)"> | 2155 <dc:variable name="combined_desc" |
2097 <station description="{dc:group-key()}"> | 2156 expr="concat(dc:date-format('yyyy', |
2098 <dc:for-each> | 2157 $start_time), ' bis ', |
2099 <dc:variable name="combined_desc" | 2158 dc:date-format('yyyy', |
2100 expr="concat(dc:date-format('yyyy', | 2159 $stop_time))"/> |
2101 $start_time), ' bis ', | 2160 <sqvalue factory="staticsqrelation" |
2102 dc:date-format('yyyy', | 2161 target_out="{$out}" |
2103 $stop_time))"/> | 2162 ids="{$sqvid};{dc:uppercase($parameter)} - {$station_name}: {$combined_desc}" |
2104 <sqvalue factory="staticsqrelation" | 2163 description="{$combined_desc}"/> |
2105 target_out="{$out}" | 2164 </dc:for-each> |
2106 ids="{$sqvid};{dc:uppercase($parameter)} - {$station_name}: {$combined_desc}" | 2165 </station> |
2107 description="{$combined_desc}"/> | 2166 </dc:group> |
2108 </dc:for-each> | 2167 </dc:group> |
2109 </station> | 2168 </parameter> |
2110 </dc:group> | 2169 </dc:group> |
2111 </dc:group> | |
2112 </dc:for-each> | |
2113 </parameter> | |
2114 </dc:group> | |
2115 </dc:filter> | |
2116 </sq_relations> | 2170 </sq_relations> |
2117 </dc:if> | 2171 </dc:if> |
2118 </dc:context> | 2172 </dc:context> |
2119 </dc:macro> | |
2120 | |
2121 <dc:macro name="basedata_0_macro"> | |
2122 <dc:filter expr="$kind = 0"> | |
2123 <dc:if test="dc:has-result()"> | |
2124 <basedata> | |
2125 <dc:group expr="$wst_description"> | |
2126 <basedata name="{dc:group-key()}"> | |
2127 <dc:for-each> | |
2128 <dc:macro-body/> | |
2129 </dc:for-each> | |
2130 </basedata> | |
2131 </dc:group> | |
2132 </basedata> | |
2133 </dc:if> | |
2134 </dc:filter> | |
2135 </dc:macro> | |
2136 | |
2137 <dc:macro name="basedata_0"> | |
2138 <dc:call-macro name="basedata_0_macro"> | |
2139 <column name="{$wst_column_name}" | |
2140 ids="base_data-wstv-{$wst_column_position}-{$wst_id}" | |
2141 factory="staticwqkms" target_out="{$out}" | |
2142 info="{$info} [km {$deffrom} - {$defto}]"/> | |
2143 </dc:call-macro> | |
2144 </dc:macro> | |
2145 | |
2146 <dc:macro name="basedata_0_wq"> | |
2147 <dc:call-macro name="basedata_0_macro"> | |
2148 <column name="{$wst_column_name}" | |
2149 ids="base_data-wstv-{$wst_column_position}-{$wst_id}" | |
2150 factory="wqinterpol" target_out="{$out}" | |
2151 info="{$info} [km {$deffrom} - {$defto}]"/> | |
2152 </dc:call-macro> | |
2153 </dc:macro> | |
2154 | |
2155 <dc:macro name="basedata_1_additionals_macro"> | |
2156 <dc:filter expr="$kind=1"> | |
2157 <dc:if test="dc:has-result()"> | |
2158 <additionals> | |
2159 <dc:group expr="dc:replace($wst_description, 'Zus.Längsschnitte/', '')"> | |
2160 <additional name="{dc:group-key()}"> | |
2161 <dc:for-each> | |
2162 <dc:macro-body/> | |
2163 </dc:for-each> | |
2164 </additional> | |
2165 </dc:group> | |
2166 </additionals> | |
2167 </dc:if> | |
2168 </dc:filter> | |
2169 </dc:macro> | |
2170 | |
2171 <dc:macro name="basedata_1_additionals"> | |
2172 <dc:call-macro name="basedata_1_additionals_macro"> | |
2173 <column name="{$wst_column_name}" | |
2174 ids="additionals-wstv-{$wst_column_position}-{$wst_id}" | |
2175 factory="staticwqkms" target_out="{$out}" | |
2176 info="{$info} [km {$deffrom} - {$defto}]"/> | |
2177 </dc:call-macro> | |
2178 </dc:macro> | |
2179 | |
2180 <dc:macro name="basedata_1_additionals_marks"> | |
2181 <dc:call-macro name="basedata_1_additionals_macro"> | |
2182 <column name="{$wst_column_name}" | |
2183 ids="additionalsmarks-wstv-{$wst_column_position}-{$wst_id}" | |
2184 factory="staticwkms" target_out="{$out}" | |
2185 info="{$info} [km {$deffrom} - {$defto}]"/> | |
2186 </dc:call-macro> | |
2187 </dc:macro> | |
2188 | |
2189 <dc:macro name="basedata_1_additionals_wq"> | |
2190 <dc:call-macro name="basedata_1_additionals_macro"> | |
2191 <column name="{$wst_column_name}" | |
2192 ids="base_data-wstv-{$wst_column_position}-{$wst_id}" | |
2193 factory="wqinterpol" target_out="{$out}" | |
2194 info="{$info} [km {$deffrom} - {$defto}]"/> | |
2195 </dc:call-macro> | |
2196 </dc:macro> | 2173 </dc:macro> |
2197 | 2174 |
2198 <!-- Floodmap part --> | 2175 <!-- Floodmap part --> |
2199 <dc:macro name="flood-map-complete"> | 2176 <dc:macro name="flood-map-complete"> |
2200 <dc:call-macro name="flood-map-buildings"/> | 2177 <dc:call-macro name="flood-map-buildings"/> |