annotate artifacts/doc/conf/meta-data.xml @ 5979:5159a7d85320

Avoid duplicted mainvalues.
author Raimund Renkert <rrenkert@intevation.de>
date Fri, 10 May 2013 15:45:40 +0200
parents ebd6e8e234e0
children f33d717aae5c
rev   line source
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1 <?xml version="1.0" encoding="UTF-8"?>
1046
0a5eff5511b1 Fixed flys/issue262: Unified user and system datacage template
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
2 <dc:template xmlns:dc="http://www.intevation.org/2011/Datacage">
0a5eff5511b1 Fixed flys/issue262: Unified user and system datacage template
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
3 <datacage>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
4 <dc:comment>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
5 Statement to load data from wsts.
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
6 </dc:comment>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
7 <dc:macro name="SQL-wst_columns_statement">
4894
5741970e2c58 meta-data.xml: Replace wst_columns queries by macro call.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4892
diff changeset
8 <dc:statement>
5741970e2c58 meta-data.xml: Replace wst_columns queries by macro call.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4892
diff changeset
9 SELECT wst_columns.id AS prot_column_id,
5741970e2c58 meta-data.xml: Replace wst_columns queries by macro call.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4892
diff changeset
10 wst_columns.name AS prot_column_name,
5741970e2c58 meta-data.xml: Replace wst_columns queries by macro call.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4892
diff changeset
11 wst_columns.position AS prot_rel_pos,
4895
065a78d65007 meta-data.xml: Access wst_ranges and provide range is info-element.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4894
diff changeset
12 wst_columns.description AS info,
065a78d65007 meta-data.xml: Access wst_ranges and provide range is info-element.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4894
diff changeset
13 wst_ranges.a AS deffrom,
065a78d65007 meta-data.xml: Access wst_ranges and provide range is info-element.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4894
diff changeset
14 wst_ranges.b AS defto
5884
11e74ca3229a datacage: simplified range filtering for wsts.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5881
diff changeset
15 FROM wst_columns JOIN wst_ranges
11e74ca3229a datacage: simplified range filtering for wsts.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5881
diff changeset
16 ON wst_columns.id = wst_ranges.wst_column_id
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
17 WHERE wst_columns.wst_id = ${prot_id}
5884
11e74ca3229a datacage: simplified range filtering for wsts.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5881
diff changeset
18 AND NOT((${tokm} &lt; wst_ranges.a) OR (${fromkm} &gt; wst_ranges.b))
4894
5741970e2c58 meta-data.xml: Replace wst_columns queries by macro call.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4892
diff changeset
19 ORDER by wst_columns.position
5741970e2c58 meta-data.xml: Replace wst_columns queries by macro call.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4892
diff changeset
20 </dc:statement>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
21 </dc:macro>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
22
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
23 <dc:comment>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
24 Load user specific distance information from artifact.
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
25 </dc:comment>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
26 <dc:macro name="user-range">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
27 <dc:choose>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
28 <dc:when test="dc:contains($parameters, 'user-id')">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
29 <dc:context connection="user">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
30 <dc:statement>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
31 SELECT COALESCE(ld_mode, '') AS ldm,
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
32 COALESCE(ld_locations, '') AS ldl,
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
33 COALESCE(ld_from, '') AS ldf,
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
34 COALESCE(ld_to, '') AS ldt
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
35 FROM master_artifacts_range
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
36 WHERE gid = CAST(${artifact-id} AS uuid)
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
37 </dc:statement>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
38 <dc:for-each>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
39 <dc:variable name="fromkm" type="number" expr="dc:fromValue($ldm, $ldl, $ldf)"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
40 <dc:variable name="tokm" type="number" expr="dc:toValue($ldm, $ldl, $ldt)"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
41 <dc:macro-body/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
42 </dc:for-each>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
43 </dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
44 </dc:when>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
45 <dc:otherwise>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
46 <dc:variable name="fromkm" type="number" expr="dc:fromValue('', '', '')"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
47 <dc:variable name="tokm" type="number" expr="dc:toValue('', '', '')"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
48 <dc:macro-body/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
49 </dc:otherwise>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
50 </dc:choose>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
51 </dc:macro>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
52
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
53 <dc:comment>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
54 System part. Load data for the given river.
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
55 </dc:comment>
1181
dd59431d648f Repaired datacage configuration. The system specific stuff is also displayed if a user-id is given.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 1097
diff changeset
56 <dc:macro name="load-system">
dd59431d648f Repaired datacage configuration. The system specific stuff is also displayed if a user-id is given.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 1097
diff changeset
57 <dc:context connection="system">
dd59431d648f Repaired datacage configuration. The system specific stuff is also displayed if a user-id is given.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 1097
diff changeset
58 <dc:statement>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
59 SELECT id AS river_id, name AS river_name FROM rivers
1181
dd59431d648f Repaired datacage configuration. The system specific stuff is also displayed if a user-id is given.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 1097
diff changeset
60 WHERE lower(name) LIKE lower(${river})
dd59431d648f Repaired datacage configuration. The system specific stuff is also displayed if a user-id is given.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 1097
diff changeset
61 </dc:statement>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
62 <dc:for-each>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
63
1790
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
64 <dc:comment>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
65 Base-data macros (mostly data imported from wst-files).
1790
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
66 </dc:comment>
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
67 <dc:macro name="basedata_0">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
68 <dc:call-macro name="user-range">
1790
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
69 <dc:comment comment=" BASEDATA ---------------------------"/>
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
70 <basedata>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
71 <dc:context connection="system">
1790
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
72 <dc:statement>
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
73 SELECT id AS prot_id,
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
74 description AS prot_description
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
75 FROM wsts WHERE kind = 0 AND river_id = ${river_id}
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
76 </dc:statement>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
77 <dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
78 <basedata name="{$prot_description}">
1790
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
79 <dc:context>
4894
5741970e2c58 meta-data.xml: Replace wst_columns queries by macro call.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4892
diff changeset
80 <dc:call-macro name="SQL-wst_columns_statement"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
81 <dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
82 <column name="{$prot_column_name}"
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
83 ids="base_data-wstv-{$prot_rel_pos}-{$prot_id}:OUT={$OUT}"
5802
e4d0e80ae404 For base-data from DC, use staticwqkms factory (will spawn w and q facets).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 5796
diff changeset
84 factory="staticwqkms"
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
85 info="{$info} [km {$deffrom} - {$defto}]"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
86 </dc:for-each>
1790
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
87 </dc:context>
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
88 </basedata>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
89 </dc:for-each>
1790
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
90 </dc:context>
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
91 </basedata>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
92 </dc:call-macro>
1790
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
93 </dc:macro>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
94
1916
efff4305dc05 Extended DC conf to offer w/q kind of data (currently used in computed discharge curve diagr. only).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1905
diff changeset
95 <dc:macro name="basedata_0_wq">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
96 <dc:call-macro name="user-range">
1916
efff4305dc05 Extended DC conf to offer w/q kind of data (currently used in computed discharge curve diagr. only).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1905
diff changeset
97 <dc:comment comment=" BASEDATA ---------------------------"/>
efff4305dc05 Extended DC conf to offer w/q kind of data (currently used in computed discharge curve diagr. only).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1905
diff changeset
98 <basedata>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
99 <dc:context connection="system">
1916
efff4305dc05 Extended DC conf to offer w/q kind of data (currently used in computed discharge curve diagr. only).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1905
diff changeset
100 <dc:statement>
efff4305dc05 Extended DC conf to offer w/q kind of data (currently used in computed discharge curve diagr. only).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1905
diff changeset
101 SELECT id AS prot_id,
efff4305dc05 Extended DC conf to offer w/q kind of data (currently used in computed discharge curve diagr. only).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1905
diff changeset
102 description AS prot_description
efff4305dc05 Extended DC conf to offer w/q kind of data (currently used in computed discharge curve diagr. only).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1905
diff changeset
103 FROM wsts WHERE kind = 0 AND river_id = ${river_id}
efff4305dc05 Extended DC conf to offer w/q kind of data (currently used in computed discharge curve diagr. only).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1905
diff changeset
104 </dc:statement>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
105 <dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
106 <basedata name="{$prot_description}">
1916
efff4305dc05 Extended DC conf to offer w/q kind of data (currently used in computed discharge curve diagr. only).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1905
diff changeset
107 <dc:context>
4894
5741970e2c58 meta-data.xml: Replace wst_columns queries by macro call.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4892
diff changeset
108 <dc:call-macro name="SQL-wst_columns_statement"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
109 <dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
110 <column name="{$prot_column_name}"
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
111 ids="base_data-wstv-{$prot_rel_pos}-{$prot_id}:OUT={$OUT}"
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
112 factory="wqinterpol"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
113 info="{$info} [km {$deffrom} - {$defto}]"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
114 </dc:for-each>
1916
efff4305dc05 Extended DC conf to offer w/q kind of data (currently used in computed discharge curve diagr. only).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1905
diff changeset
115 </dc:context>
efff4305dc05 Extended DC conf to offer w/q kind of data (currently used in computed discharge curve diagr. only).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1905
diff changeset
116 </basedata>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
117 </dc:for-each>
1916
efff4305dc05 Extended DC conf to offer w/q kind of data (currently used in computed discharge curve diagr. only).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1905
diff changeset
118 </dc:context>
efff4305dc05 Extended DC conf to offer w/q kind of data (currently used in computed discharge curve diagr. only).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1905
diff changeset
119 </basedata>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
120 </dc:call-macro>
1916
efff4305dc05 Extended DC conf to offer w/q kind of data (currently used in computed discharge curve diagr. only).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1905
diff changeset
121 </dc:macro>
efff4305dc05 Extended DC conf to offer w/q kind of data (currently used in computed discharge curve diagr. only).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1905
diff changeset
122
4143
58864f4f6e3b Fix issue946 (own style for wkms annotation facets in wq diagrams).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4126
diff changeset
123 <dc:macro name="basedata_1_additionals_marks">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
124 <dc:call-macro name="user-range">
4143
58864f4f6e3b Fix issue946 (own style for wkms annotation facets in wq diagrams).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4126
diff changeset
125 <dc:comment comment=".ZUS -------------------------------"/>
58864f4f6e3b Fix issue946 (own style for wkms annotation facets in wq diagrams).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4126
diff changeset
126 <additionals>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
127 <dc:context connection="system">
4143
58864f4f6e3b Fix issue946 (own style for wkms annotation facets in wq diagrams).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4126
diff changeset
128 <dc:statement>
58864f4f6e3b Fix issue946 (own style for wkms annotation facets in wq diagrams).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4126
diff changeset
129 SELECT id AS prot_id,
58864f4f6e3b Fix issue946 (own style for wkms annotation facets in wq diagrams).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4126
diff changeset
130 description AS prot_description
58864f4f6e3b Fix issue946 (own style for wkms annotation facets in wq diagrams).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4126
diff changeset
131 FROM wsts WHERE kind = 1 AND river_id = ${river_id}
58864f4f6e3b Fix issue946 (own style for wkms annotation facets in wq diagrams).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4126
diff changeset
132 </dc:statement>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
133 <dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
134 <additional name="{$prot_description}">
4143
58864f4f6e3b Fix issue946 (own style for wkms annotation facets in wq diagrams).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4126
diff changeset
135 <dc:context>
4894
5741970e2c58 meta-data.xml: Replace wst_columns queries by macro call.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4892
diff changeset
136 <dc:call-macro name="SQL-wst_columns_statement"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
137 <dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
138 <column name="{$prot_column_name}"
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
139 ids="additionalsmarks-wstv-{$prot_rel_pos}-{$prot_id}:OUT={$OUT}"
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
140 factory="staticwkms"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
141 info="{$info} [km {$deffrom} - {$defto}]"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
142 </dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
143 </dc:context></additional>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
144 </dc:for-each>
4143
58864f4f6e3b Fix issue946 (own style for wkms annotation facets in wq diagrams).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4126
diff changeset
145 </dc:context>
58864f4f6e3b Fix issue946 (own style for wkms annotation facets in wq diagrams).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4126
diff changeset
146 </additionals>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
147 </dc:call-macro>
4143
58864f4f6e3b Fix issue946 (own style for wkms annotation facets in wq diagrams).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4126
diff changeset
148 </dc:macro>
58864f4f6e3b Fix issue946 (own style for wkms annotation facets in wq diagrams).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4126
diff changeset
149
1790
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
150 <dc:macro name="basedata_1_additionals">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
151 <dc:call-macro name="user-range">
1790
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
152 <dc:comment comment=".ZUS -------------------------------"/>
2085
dd3f5bd174ea Fix typo in meta data, such that string can be translated in GUI.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1978
diff changeset
153 <additionals>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
154 <dc:context connection="system">
1790
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
155 <dc:statement>
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
156 SELECT id AS prot_id,
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
157 description AS prot_description
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
158 FROM wsts WHERE kind = 1 AND river_id = ${river_id}
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
159 </dc:statement>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
160 <dc:for-each>
5746
1dab240f9f55 remove prefixed directory names from descriptions in data cage
Tom Gottfried <tom@intevation.de>
parents: 5682
diff changeset
161 <additional name="{dc:replace($prot_description, 'Zus.Längsschnitte/', '')}">
1790
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
162 <dc:context>
4894
5741970e2c58 meta-data.xml: Replace wst_columns queries by macro call.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4892
diff changeset
163 <dc:call-macro name="SQL-wst_columns_statement"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
164 <dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
165 <column name="{$prot_column_name}"
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
166 ids="additionals-wstv-{$prot_rel_pos}-{$prot_id}:OUT={$OUT}"
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
167 factory="staticwkms"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
168 info="{$info} [km {$deffrom} - {$defto}]"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
169 </dc:for-each>
1790
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
170 </dc:context>
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
171 </additional>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
172 </dc:for-each>
1790
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
173 </dc:context>
2085
dd3f5bd174ea Fix typo in meta data, such that string can be translated in GUI.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1978
diff changeset
174 </additionals>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
175 </dc:call-macro>
1790
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
176 </dc:macro>
1764
87c82499b98f Added DC configuration to load additional data in longitudinal section.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1761
diff changeset
177
2761
28e7c1637f78 Include thematic heights in dc conf for reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2755
diff changeset
178 <dc:macro name="basedata_1_additionals-relative_point">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
179 <dc:call-macro name="user-range">
2761
28e7c1637f78 Include thematic heights in dc conf for reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2755
diff changeset
180 <dc:comment comment=".ZUS -------------------------------"/>
28e7c1637f78 Include thematic heights in dc conf for reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2755
diff changeset
181 <additionals>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
182 <dc:context connection="system">
1728
6068b6c90a19 Adjusted datacage-configuration to present flood-protections in certain case.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1716
diff changeset
183 <dc:statement>
6068b6c90a19 Adjusted datacage-configuration to present flood-protections in certain case.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1716
diff changeset
184 SELECT id AS prot_id,
6068b6c90a19 Adjusted datacage-configuration to present flood-protections in certain case.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1716
diff changeset
185 description AS prot_description
1731
37606f0ddc1e Also display the 'zus' in wdiff-input datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1728
diff changeset
186 FROM wsts WHERE kind = 1 AND river_id = ${river_id}
37606f0ddc1e Also display the 'zus' in wdiff-input datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1728
diff changeset
187 </dc:statement>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
188 <dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
189 <relativepoint name="{$prot_description}">
2761
28e7c1637f78 Include thematic heights in dc conf for reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2755
diff changeset
190 <dc:context>
4894
5741970e2c58 meta-data.xml: Replace wst_columns queries by macro call.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4892
diff changeset
191 <dc:call-macro name="SQL-wst_columns_statement"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
192 <dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
193 <column name="{$prot_column_name}"
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
194 ids="additionals-wstv-{$prot_rel_pos}-{$prot_id}:OUT={$OUT}"
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
195 factory="staticwkms"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
196 info="{$info} [km {$deffrom} - {$defto}]"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
197 </dc:for-each>
2761
28e7c1637f78 Include thematic heights in dc conf for reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2755
diff changeset
198 </dc:context>
28e7c1637f78 Include thematic heights in dc conf for reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2755
diff changeset
199 </relativepoint>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
200 </dc:for-each>
1731
37606f0ddc1e Also display the 'zus' in wdiff-input datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1728
diff changeset
201 </dc:context>
2761
28e7c1637f78 Include thematic heights in dc conf for reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2755
diff changeset
202 </additionals>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
203 </dc:call-macro>
2761
28e7c1637f78 Include thematic heights in dc conf for reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2755
diff changeset
204 </dc:macro>
28e7c1637f78 Include thematic heights in dc conf for reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2755
diff changeset
205
1905
d025009fec73 Recommend fixations for computed discharge curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1880
diff changeset
206 <dc:macro name="basedata_2_fixations_wqkms">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
207 <dc:call-macro name="user-range">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
208 <fixations>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
209 <dc:context connection="system">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
210 <dc:statement>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
211 SELECT id AS prot_id,
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
212 description AS prot_description
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
213 FROM wsts WHERE kind = 2 AND river_id = ${river_id}
5560
ccda0a49a97f Order Fixations by their description
Andre Heinecke <aheinecke@intevation.de>
parents: 5551
diff changeset
214 ORDER BY prot_description
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
215 </dc:statement>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
216 <dc:for-each>
5562
7be6785ad7b9 Use dc:replace to remove static "Fixierungen/" prefix in fixation description
Andre Heinecke <aheinecke@intevation.de>
parents: 5560
diff changeset
217 <fixation name="{dc:replace($prot_description, 'Fixierungen/', '')}">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
218 <dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
219 <dc:call-macro name="SQL-wst_columns_statement"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
220 <dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
221 <column name="{$prot_column_name}"
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
222 ids="fixations-wstv-{$prot_rel_pos}-{$prot_id}:OUT={$OUT}"
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
223 factory="wqinterpol"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
224 info="{$info} [km {$deffrom} - {$defto}]"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
225 </dc:for-each>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
226 </dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
227 </fixation>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
228 </dc:for-each>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
229 </dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
230 </fixations>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
231 </dc:call-macro>
1905
d025009fec73 Recommend fixations for computed discharge curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1880
diff changeset
232 </dc:macro>
d025009fec73 Recommend fixations for computed discharge curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1880
diff changeset
233
1872
2e810c50e685 Refactored datacage conf to (re)use macros.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1871
diff changeset
234 <dc:macro name="basedata_2_fixations">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
235 <dc:call-macro name="user-range">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
236 <fixations>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
237 <dc:context connection="system">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
238 <dc:statement>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
239 SELECT id AS prot_id,
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
240 description AS prot_description
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
241 FROM wsts WHERE kind = 2 AND river_id = ${river_id}
5560
ccda0a49a97f Order Fixations by their description
Andre Heinecke <aheinecke@intevation.de>
parents: 5551
diff changeset
242 ORDER BY prot_description
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
243 </dc:statement>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
244 <dc:for-each>
5562
7be6785ad7b9 Use dc:replace to remove static "Fixierungen/" prefix in fixation description
Andre Heinecke <aheinecke@intevation.de>
parents: 5560
diff changeset
245 <fixation name="{dc:replace($prot_description, 'Fixierungen/', '')}">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
246 <dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
247 <dc:call-macro name="SQL-wst_columns_statement"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
248 <dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
249 <column name="{$prot_column_name}"
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
250 ids="fixations-wstv-{$prot_rel_pos}-{$prot_id}:OUT={$OUT}"
5846
6343a61b62c8 issue949: Have fixations in longitudinal-sections have W and Q facet.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 5838
diff changeset
251 factory="staticwqkms"
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
252 info="{$info} [km {$deffrom} - {$defto}]"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
253 </dc:for-each>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
254 </dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
255 </fixation>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
256 </dc:for-each>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
257 </dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
258 </fixations>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
259 </dc:call-macro>
1872
2e810c50e685 Refactored datacage conf to (re)use macros.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1871
diff changeset
260 </dc:macro>
2e810c50e685 Refactored datacage conf to (re)use macros.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1871
diff changeset
261
2749
5eb3edb4f37b Add relative-points-fixations for duration curves in dc conf.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2736
diff changeset
262 <dc:macro name="basedata_2_fixations_relative_point">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
263 <dc:call-macro name="user-range">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
264 <fixations>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
265 <dc:context connection="system">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
266 <dc:statement>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
267 SELECT id AS prot_id,
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
268 description AS prot_description
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
269 FROM wsts WHERE kind = 2 AND river_id = ${river_id}
5560
ccda0a49a97f Order Fixations by their description
Andre Heinecke <aheinecke@intevation.de>
parents: 5551
diff changeset
270 ORDER BY prot_description
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
271 </dc:statement>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
272 <dc:for-each>
5562
7be6785ad7b9 Use dc:replace to remove static "Fixierungen/" prefix in fixation description
Andre Heinecke <aheinecke@intevation.de>
parents: 5560
diff changeset
273 <relativepoint name="{dc:replace($prot_description, 'Fixierungen/', '')}">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
274 <dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
275 <dc:call-macro name="SQL-wst_columns_statement"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
276 <dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
277 <column name="{$prot_column_name}"
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
278 ids="fixations-wstv-{$prot_rel_pos}-{$prot_id}:OUT={$OUT}"
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
279 factory="staticwkms"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
280 info="{$info} [km {$deffrom} - {$defto}]"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
281 </dc:for-each>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
282 </dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
283 </relativepoint>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
284 </dc:for-each>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
285 </dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
286 </fixations>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
287 </dc:call-macro>
2749
5eb3edb4f37b Add relative-points-fixations for duration curves in dc conf.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2736
diff changeset
288 </dc:macro>
2751
e50cc06c6c4c Serve heightmarks and floodprotection in dc conf for duration curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2749
diff changeset
289
3283
a8ce3263b0a7 Make official lines loadable from dc (by hand) for longitudinal sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3219
diff changeset
290 <dc:macro name="basedata_3_officials">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
291 <dc:call-macro name="user-range">
3283
a8ce3263b0a7 Make official lines loadable from dc (by hand) for longitudinal sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3219
diff changeset
292 <dc:comment comment=".wst -------------------------------"/>
a8ce3263b0a7 Make official lines loadable from dc (by hand) for longitudinal sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3219
diff changeset
293 <officiallines>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
294 <dc:context connection="system">
3283
a8ce3263b0a7 Make official lines loadable from dc (by hand) for longitudinal sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3219
diff changeset
295 <dc:statement>
a8ce3263b0a7 Make official lines loadable from dc (by hand) for longitudinal sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3219
diff changeset
296 SELECT id AS prot_id,
a8ce3263b0a7 Make official lines loadable from dc (by hand) for longitudinal sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3219
diff changeset
297 description AS prot_description
a8ce3263b0a7 Make official lines loadable from dc (by hand) for longitudinal sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3219
diff changeset
298 FROM wsts WHERE kind = 3 AND river_id = ${river_id}
a8ce3263b0a7 Make official lines loadable from dc (by hand) for longitudinal sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3219
diff changeset
299 </dc:statement>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
300 <dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
301 <official name="{$prot_description}">
3283
a8ce3263b0a7 Make official lines loadable from dc (by hand) for longitudinal sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3219
diff changeset
302 <dc:context>
4894
5741970e2c58 meta-data.xml: Replace wst_columns queries by macro call.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4892
diff changeset
303 <dc:call-macro name="SQL-wst_columns_statement"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
304 <dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
305 <column name="{$prot_column_name}"
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
306 ids="additionals-wstv-{$prot_rel_pos}-{$prot_id}:OUT={$OUT}"
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
307 factory="staticwqkms"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
308 info="{$info} [km {$deffrom} - {$defto}]"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
309 </dc:for-each>
3283
a8ce3263b0a7 Make official lines loadable from dc (by hand) for longitudinal sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3219
diff changeset
310 </dc:context>
a8ce3263b0a7 Make official lines loadable from dc (by hand) for longitudinal sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3219
diff changeset
311 </official>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
312 </dc:for-each>
3283
a8ce3263b0a7 Make official lines loadable from dc (by hand) for longitudinal sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3219
diff changeset
313 </dc:context>
a8ce3263b0a7 Make official lines loadable from dc (by hand) for longitudinal sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3219
diff changeset
314 </officiallines>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
315 </dc:call-macro>
3283
a8ce3263b0a7 Make official lines loadable from dc (by hand) for longitudinal sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3219
diff changeset
316 </dc:macro>
a8ce3263b0a7 Make official lines loadable from dc (by hand) for longitudinal sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3219
diff changeset
317
2751
e50cc06c6c4c Serve heightmarks and floodprotection in dc conf for duration curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2749
diff changeset
318 <dc:macro name="basedata_4_heightmarks-points-relative_points">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
319 <dc:call-macro name="user-range">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
320 <heightmarks>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
321 <dc:context connection="system">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
322 <dc:statement>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
323 SELECT id AS prot_id,
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
324 description AS prot_description
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
325 FROM wsts WHERE kind = 4 AND river_id = ${river_id}
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
326 </dc:statement>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
327 <dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
328 <relativepoint name="{$prot_description}">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
329 <dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
330 <dc:call-macro name="SQL-wst_columns_statement"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
331 <dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
332 <column name="{$prot_column_name}"
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
333 ids="heightmarks_points-wstv-{$prot_rel_pos}-{$prot_id}:OUT={$OUT}"
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
334 factory="staticwkms"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
335 info="{$info} [km {$deffrom} - {$defto}]"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
336 </dc:for-each>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
337 </dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
338 </relativepoint>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
339 </dc:for-each>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
340 </dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
341 </heightmarks>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
342 </dc:call-macro>
2751
e50cc06c6c4c Serve heightmarks and floodprotection in dc conf for duration curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2749
diff changeset
343 </dc:macro>
e50cc06c6c4c Serve heightmarks and floodprotection in dc conf for duration curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2749
diff changeset
344
1869
8f7bc6acd48d Adjusted DC for heightmarks (and other) in discharge longitudinal sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1868
diff changeset
345 <dc:macro name="basedata_4_heightmarks-points">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
346 <dc:call-macro name="user-range">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
347 <heightmarks>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
348 <dc:context connection="system">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
349 <dc:statement>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
350 SELECT id AS prot_id,
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
351 description AS prot_description
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
352 FROM wsts WHERE kind = 4 AND river_id = ${river_id}
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
353 </dc:statement>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
354 <dc:for-each>
5746
1dab240f9f55 remove prefixed directory names from descriptions in data cage
Tom Gottfried <tom@intevation.de>
parents: 5682
diff changeset
355 <heightmark name="{dc:replace($prot_description, 'HW-Marken/', '')}">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
356 <dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
357 <dc:call-macro name="SQL-wst_columns_statement"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
358 <dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
359 <column name="{$prot_column_name}"
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
360 ids="heightmarks_points-wstv-{$prot_rel_pos}-{$prot_id}:OUT={$OUT}"
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
361 factory="staticwkms"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
362 info="{$info} [km {$deffrom} - {$defto}]"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
363 </dc:for-each>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
364 </dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
365 </heightmark>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
366 </dc:for-each>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
367 </dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
368 </heightmarks>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
369 </dc:call-macro>
1869
8f7bc6acd48d Adjusted DC for heightmarks (and other) in discharge longitudinal sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1868
diff changeset
370 </dc:macro>
1978
4c10a4cb978f Recommend cross sections if they can be shown.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1916
diff changeset
371
1916
efff4305dc05 Extended DC conf to offer w/q kind of data (currently used in computed discharge curve diagr. only).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1905
diff changeset
372 <dc:macro name="basedata_4_heightmarks-wq">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
373 <dc:call-macro name="user-range">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
374 <heightmarks>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
375 <dc:context connection="system">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
376 <dc:statement>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
377 SELECT id AS prot_id,
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
378 description AS prot_description
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
379 FROM wsts WHERE kind = 4 AND river_id = ${river_id}
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
380 </dc:statement>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
381 <dc:for-each>
5746
1dab240f9f55 remove prefixed directory names from descriptions in data cage
Tom Gottfried <tom@intevation.de>
parents: 5682
diff changeset
382 <heightmark name="{$prot_description}">
1dab240f9f55 remove prefixed directory names from descriptions in data cage
Tom Gottfried <tom@intevation.de>
parents: 5682
diff changeset
383 <dc:context>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
384 <dc:call-macro name="SQL-wst_columns_statement"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
385 <dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
386 <column name="{$prot_column_name}"
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
387 ids="heightmarks_annotations-wstv-{$prot_rel_pos}-{$prot_id}:OUT={$OUT}"
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
388 factory="wqinterpol"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
389 info="{$info} [km {$deffrom} - {$defto}]"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
390 </dc:for-each>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
391 </dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
392 </heightmark>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
393 </dc:for-each>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
394 </dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
395 </heightmarks>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
396 </dc:call-macro>
1916
efff4305dc05 Extended DC conf to offer w/q kind of data (currently used in computed discharge curve diagr. only).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1905
diff changeset
397 </dc:macro>
1869
8f7bc6acd48d Adjusted DC for heightmarks (and other) in discharge longitudinal sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1868
diff changeset
398
2751
e50cc06c6c4c Serve heightmarks and floodprotection in dc conf for duration curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2749
diff changeset
399 <dc:macro name="basedata_5_flood-protections_relative_points">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
400 <dc:call-macro name="user-range">
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
401 <flood_protections id="flood-protections-{$river_id}">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
402 <dc:context connection="system">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
403 <dc:statement>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
404 SELECT id AS prot_id,
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
405 description AS prot_description
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
406 FROM wsts WHERE kind = 5 AND river_id = ${river_id}
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
407 </dc:statement>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
408 <dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
409 <relativepoint name="{$prot_description}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
410 db-id="{$prot_id}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
411 factory="staticwkms">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
412 <columns>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
413 <dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
414 <dc:call-macro name="SQL-wst_columns_statement"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
415 <dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
416 <column name="{$prot_column_name}"
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
417 ids="flood_protection-wstv-{$prot_rel_pos}-{$prot_id}:OUT={$OUT}"
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
418 factory="staticwkms"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
419 info="{$info} [km {$deffrom} - {$defto}]"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
420 </dc:for-each>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
421 </dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
422 </columns>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
423 </relativepoint>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
424 </dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
425 </dc:context></flood_protections>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
426 </dc:call-macro>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
427 </dc:macro>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
428
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
429 <dc:macro name="basedata_5_flood-protections">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
430 <dc:call-macro name="user-range">
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
431 <flood_protections id="flood-protections-{$river_id}">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
432 <dc:context connection="system">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
433 <dc:statement>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
434 SELECT id AS prot_id,
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
435 description AS prot_description
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
436 FROM wsts WHERE kind = 5 AND river_id = ${river_id}
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
437 </dc:statement>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
438 <dc:for-each>
5746
1dab240f9f55 remove prefixed directory names from descriptions in data cage
Tom Gottfried <tom@intevation.de>
parents: 5682
diff changeset
439 <flood_protection name="{dc:replace($prot_description, 'HW-Schutzanlagen/', '')}"
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
440 db-id="{$prot_id}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
441 factory="staticwkms">
2751
e50cc06c6c4c Serve heightmarks and floodprotection in dc conf for duration curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2749
diff changeset
442 <dc:context>
4894
5741970e2c58 meta-data.xml: Replace wst_columns queries by macro call.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4892
diff changeset
443 <dc:call-macro name="SQL-wst_columns_statement"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
444 <dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
445 <column name="{$prot_column_name}"
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
446 ids="flood_protection-wstv-{$prot_rel_pos}-{$prot_id}:OUT={$OUT}"
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
447 factory="staticwkms"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
448 info="{$info} [km {$deffrom} - {$defto}]"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
449 </dc:for-each>
2751
e50cc06c6c4c Serve heightmarks and floodprotection in dc conf for duration curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2749
diff changeset
450 </dc:context>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
451 </flood_protection>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
452 </dc:for-each>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
453 </dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
454 </flood_protections>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
455 </dc:call-macro>
1905
d025009fec73 Recommend fixations for computed discharge curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1880
diff changeset
456 </dc:macro>
d025009fec73 Recommend fixations for computed discharge curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1880
diff changeset
457
1851
67aa74efc024 Recommend mainvalues for Duration Curve Diagrams, minor refactoring.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1841
diff changeset
458 <dc:macro name="mainvalues">
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
459 <wmainvalue factory="mainvalue" ids="{$river_id}:w:OUT={$OUT}"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
460 <qmainvalue factory="mainvalue" ids="{$river_id}:q:OUT={$OUT}"/>
1851
67aa74efc024 Recommend mainvalues for Duration Curve Diagrams, minor refactoring.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1841
diff changeset
461 </dc:macro>
1865
ba6659083fa0 Revert/apply accidental/corrected commit.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1857
diff changeset
462
3574
416288f88763 Add more qsectory infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3570
diff changeset
463 <dc:macro name="qsectors">
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
464 <qsector factory="qsectors" ids="{$river_id}:OUT={$OUT}"/>
3574
416288f88763 Add more qsectory infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3570
diff changeset
465 </dc:macro>
416288f88763 Add more qsectory infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3570
diff changeset
466
1865
ba6659083fa0 Revert/apply accidental/corrected commit.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1857
diff changeset
467 <dc:macro name="annotations">
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
468 <annotation factory="annotations" ids="{$river_id}:OUT={$OUT}"/>
1865
ba6659083fa0 Revert/apply accidental/corrected commit.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1857
diff changeset
469 </dc:macro>
ba6659083fa0 Revert/apply accidental/corrected commit.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1857
diff changeset
470
4014
e5e1331d0440 Show 'per-type' annotations in longitudinal-section DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3975
diff changeset
471 <dc:macro name="annotations_per_type">
e5e1331d0440 Show 'per-type' annotations in longitudinal-section DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3975
diff changeset
472 <annotations>
e5e1331d0440 Show 'per-type' annotations in longitudinal-section DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3975
diff changeset
473 <dc:context>
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
474 <all_annotations factory="annotations" ids="{$river_id}:OUT={$OUT}"/>
4014
e5e1331d0440 Show 'per-type' annotations in longitudinal-section DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3975
diff changeset
475 <dc:statement>
e5e1331d0440 Show 'per-type' annotations in longitudinal-section DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3975
diff changeset
476 SELECT id AS anno_id,
e5e1331d0440 Show 'per-type' annotations in longitudinal-section DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3975
diff changeset
477 name AS anno_description
e5e1331d0440 Show 'per-type' annotations in longitudinal-section DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3975
diff changeset
478 FROM annotation_types
e5e1331d0440 Show 'per-type' annotations in longitudinal-section DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3975
diff changeset
479 </dc:statement>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
480 <dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
481 <annotation name="{$anno_description}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
482 factory="annotations"
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
483 ids="{$river_id}:{$anno_description}:OUT={$OUT}"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
484 </dc:for-each>
4014
e5e1331d0440 Show 'per-type' annotations in longitudinal-section DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3975
diff changeset
485 </dc:context>
e5e1331d0440 Show 'per-type' annotations in longitudinal-section DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3975
diff changeset
486 </annotations>
e5e1331d0440 Show 'per-type' annotations in longitudinal-section DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3975
diff changeset
487 </dc:macro>
e5e1331d0440 Show 'per-type' annotations in longitudinal-section DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3975
diff changeset
488
1978
4c10a4cb978f Recommend cross sections if they can be shown.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1916
diff changeset
489 <dc:macro name="cross_sections">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
490 <dc:call-macro name="user-range">
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
491 <cross_sections id="flood-protections-{$river_id}">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
492 <dc:context connection="system">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
493 <dc:statement>
5164
8c65acf01adc Fixed datacage to be oracle compatible.
Raimund Renkert <rrenkert@intevation.de>
parents: 5145
diff changeset
494 SELECT DISTINCT
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
495 cs.id AS prot_id,
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
496 cs.description AS prot_description
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
497 FROM cross_sections cs
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
498 JOIN cross_section_lines csl ON csl.cross_section_id = cs.id
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
499 WHERE cs.river_id = ${river_id}
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
500 AND csl.km BETWEEN ${fromkm} AND ${tokm}
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
501 </dc:statement>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
502 <dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
503 <cross_section name="{$prot_description}"
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
504 ids="{$prot_id}:OUT={$OUT}"
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
505 factory="crosssections"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
506 </dc:for-each>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
507 </dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
508 </cross_sections>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
509 </dc:call-macro>
1978
4c10a4cb978f Recommend cross sections if they can be shown.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1916
diff changeset
510 </dc:macro>
4c10a4cb978f Recommend cross sections if they can be shown.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1916
diff changeset
511
2140
3d73109005b8 Recommend hyks if hit by cross section out.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2114
diff changeset
512 <dc:macro name="hyks">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
513 <dc:call-macro name="user-range">
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
514 <hyks id="hyk-{$river_id}">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
515 <dc:context connection="system">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
516 <dc:statement>
5164
8c65acf01adc Fixed datacage to be oracle compatible.
Raimund Renkert <rrenkert@intevation.de>
parents: 5145
diff changeset
517 SELECT DISTINCT
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
518 h.id AS hyk_id,
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
519 h.description AS hyk_description
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
520 FROM hyks h
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
521 JOIN hyk_entries he ON he.hyk_id = h.id
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
522 WHERE river_id = ${river_id}
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
523 AND he.km BETWEEN ${fromkm} AND ${tokm}
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
524 </dc:statement>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
525 <dc:for-each>
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
526 <hyk name="{$hyk_description}"
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
527 ids="{$hyk_id}:OUT={$OUT}"
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
528 factory="hyk"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
529 </dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
530 </dc:context></hyks>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
531 </dc:call-macro>
2140
3d73109005b8 Recommend hyks if hit by cross section out.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2114
diff changeset
532 </dc:macro>
1869
8f7bc6acd48d Adjusted DC for heightmarks (and other) in discharge longitudinal sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1868
diff changeset
533
4455
06c07cb478a8 meta-data.xml: Add annotations and flow velocity measurements to the DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4449
diff changeset
534 <dc:macro name="flow_velocity_measurements">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
535 <dc:call-macro name="user-range">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
536 <flowvelocitymeasurement>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
537 <dc:context connection="system">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
538 <dc:statement>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
539 SELECT id AS fvmid,
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
540 description AS fvmd
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
541 FROM flow_velocity_measurements WHERE river_id = ${river_id}
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
542 </dc:statement>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
543 <dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
544 <flow_velocity_measurement name="{$fvmd}"
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
545 ids="{$fvmid}:OUT={$OUT}"
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
546 factory="flowvelocity">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
547 <dc:context>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
548 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
549 SELECT id, description, station, datetime, v, w, q
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
550 FROM flow_velocity_measure_values
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
551 WHERE measurements_id = ${fvmid}
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
552 AND station BETWEEN ${fromkm} AND ${tokm}
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
553 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
554 <dc:for-each>
5575
bf319ba67212 Put the correct annotations into flowvelocity dc and fix measurement name.
Raimund Renkert <rrenkert@intevation.de>
parents: 5562
diff changeset
555 <measurement_value name="{$description} - {$station} - {$datetime}"
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
556 ids="{$id}:OUT={$OUT}"
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
557 factory="flowvelocity"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
558 </dc:for-each>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
559 </dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
560 </flow_velocity_measurement>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
561 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
562 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
563 </flowvelocitymeasurement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
564 </dc:call-macro>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
565 </dc:macro>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
566
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
567 <dc:macro name="sounding-width">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
568 <soundings_width>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
569 <dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
570 <dc:statement>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
571 SELECT id AS bedh_id,
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
572 year AS bedh_year,
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
573 description AS bedh_descr
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
574 FROM bed_height_single WHERE river_id = ${river_id}
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
575 </dc:statement>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
576 <dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
577 <height factory="bedheight"
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
578 ids="bedheight-singlevalues-{$bedh_id}-{$bedh_year}:OUT={$OUT}"
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
579 description="{$bedh_descr}"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
580 </dc:for-each>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
581 </dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
582 </soundings_width>
4455
06c07cb478a8 meta-data.xml: Add annotations and flow velocity measurements to the DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4449
diff changeset
583 </dc:macro>
06c07cb478a8 meta-data.xml: Add annotations and flow velocity measurements to the DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4449
diff changeset
584
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
585 <dc:macro name="morph_width">
5766
a6dc4c232da2 Datacage config and out generator for morphologic width.
Raimund Renkert <rrenkert@intevation.de>
parents: 5761
diff changeset
586 <morph_width>
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
587 <dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
588 <dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
589 SELECT id AS width_id
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
590 FROM morphologic_width
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
591 WHERE river_id = ${river_id}
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
592 </dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
593 <dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
594 <dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
595 <dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
596 SELECT min(station) AS from,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
597 max(station) AS to
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
598 FROM morphologic_width_values
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
599 WHERE morphologic_width_id = ${width_id}
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
600 </dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
601 <dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
602 <morphologic-width name="{$from} - {$to}"
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
603 ids="{$width_id}:OUT={$OUT}"
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
604 factory="morph-width"/>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
605 </dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
606 </dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
607 </dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
608 </dc:context>
5766
a6dc4c232da2 Datacage config and out generator for morphologic width.
Raimund Renkert <rrenkert@intevation.de>
parents: 5761
diff changeset
609 </morph_width>
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
610 </dc:macro>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
611
4595
0b48085f93aa meta-data.xml: Added 'prototype-macro for longitudinal_sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4538
diff changeset
612 <dc:macro name="longitudinal-section-prototype">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
613 <dc:call-macro name="basedata_0"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
614 <dc:call-macro name="basedata_1_additionals"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
615 <dc:comment comment=" FIXATIONS ---------------------------"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
616 <dc:call-macro name="basedata_2_fixations"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
617 <dc:comment comment=" HOEHENMARKEN ---------------------------"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
618 <dc:call-macro name="basedata_4_heightmarks-points"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
619 <dc:comment comment=" AMTL LINIEN ---------------------------"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
620 <dc:call-macro name="basedata_3_officials"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
621 <dc:call-macro name="basedata_5_flood-protections"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
622 <dc:call-macro name="annotations_per_type"/>
4595
0b48085f93aa meta-data.xml: Added 'prototype-macro for longitudinal_sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4538
diff changeset
623 </dc:macro>
0b48085f93aa meta-data.xml: Added 'prototype-macro for longitudinal_sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4538
diff changeset
624
5978
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
625 <dc:comment>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
626 + River-Node
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
627 </dc:comment>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
628 <dc:attribute name="name" value="${river_name}"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
629
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
630 <dc:choose>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
631 <dc:when test="dc:contains($parameters, 'recommended')">
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
632 <dc:comment>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
633 Recommendations (client shall load immediately).
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
634 </dc:comment>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
635 <dc:if test="dc:contains($artifact-outs, 'w_differences') or (dc:contains($artifact-outs, 'discharge_longitudinal_section'))">
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
636 <dc:call-macro name="annotations"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
637 </dc:if>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
638 <dc:if test="dc:contains($artifact-outs, 'historical_discharge_wq')">
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
639 <dc:call-macro name="mainvalues"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
640 </dc:if>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
641 <dc:if test="dc:contains($artifact-outs, 'cross_section')">
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
642 <dc:call-macro name="cross_sections"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
643 <dc:call-macro name="hyks"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
644 </dc:if>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
645 <dc:if test="dc:contains($artifact-outs, 'computed_discharge_curve')">
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
646 <dc:call-macro name="mainvalues"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
647 <dc:call-macro name="basedata_2_fixations_wqkms"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
648 </dc:if>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
649 <dc:if test="dc:contains($artifact-outs, 'duration_curve')">
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
650 <dc:call-macro name="mainvalues"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
651 </dc:if>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
652 <dc:if test="dc:contains($artifact-outs, 'reference_curve')">
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
653 <dc:call-macro name="annotations"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
654 <dc:call-macro name="mainvalues"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
655 </dc:if>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
656 <dc:if test="dc:contains($artifact-outs, 'fix_wq_curve')">
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
657 <dc:call-macro name="qsectors"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
658 <dc:call-macro name="mainvalues"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
659 </dc:if>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
660 <dc:if test="dc:contains($artifact-outs, 'longitudinal_section')">
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
661 <dc:call-macro name="annotations"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
662 </dc:if>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
663 <dc:if test="dc:contains($artifact-outs, 'fix_longitudinal_section_curve')">
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
664 <dc:call-macro name="annotations"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
665 </dc:if>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
666 <dc:if test="dc:contains($artifact-outs, 'bed_difference_epoch')">
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
667 <dc:call-macro name="annotations"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
668 </dc:if>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
669 <dc:if test="dc:contains($artifact-outs, 'bed_difference_year')">
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
670 <dc:call-macro name="annotations"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
671 </dc:if>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
672 <dc:if test="dc:contains($artifact-outs, 'bed_difference_height_year')">
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
673 <dc:call-macro name="annotations"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
674 </dc:if>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
675 </dc:when>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
676 <dc:otherwise>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
677 <dc:comment>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
678 Non - Recommendations.
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
679 </dc:comment>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
680 <dc:if test="dc:contains($artifact-outs, 'cross_section')">
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
681 <dc:call-macro name="basedata_0"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
682 <dc:call-macro name="basedata_1_additionals"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
683 <dc:call-macro name="basedata_2_fixations"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
684 <dc:call-macro name="basedata_3_officials"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
685 <dc:call-macro name="basedata_4_heightmarks-points"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
686 <dc:call-macro name="cross_sections"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
687 <dc:call-macro name="hyks"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
688 </dc:if>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
689 <!--dc:if test="dc:contains($artifact-outs, 'computed_discharge_curve')">
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
690 <dc:call-macro name="basedata_0_wq"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
691 <dc:call-macro name="basedata_4_heightmarks-wq"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
692 </dc:if-->
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
693 <dc:if test="dc:contains($artifact-outs, 'longitudinal_section') or (dc:contains($artifact-outs, 'w_differences')) or (dc:contains($artifact-outs, 'discharge_longitudinal_section'))">
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
694 <dc:call-macro name="longitudinal-section-prototype"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
695 </dc:if>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
696 <dc:if test="dc:contains($artifact-outs, 'duration_curve')">
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
697 <dc:call-macro name="mainvalues"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
698 <dc:call-macro name="basedata_2_fixations_relative_point"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
699 <dc:call-macro name="basedata_4_heightmarks-points-relative_points"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
700 <dc:call-macro name="basedata_5_flood-protections_relative_points"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
701 </dc:if>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
702 <dc:if test="dc:contains($artifact-outs, 'reference_curve')">
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
703 <dc:call-macro name="annotations"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
704 <!--dc:call-macro name="basedata_0"/-->
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
705 <dc:call-macro name="basedata_1_additionals-relative_point"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
706 <dc:comment comment=" FIXATIONS ---------------------------"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
707 <dc:call-macro name="basedata_2_fixations_relative_point"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
708 <dc:comment comment=" HOEHENMARKEN ---------------------------"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
709 <dc:call-macro name="basedata_4_heightmarks-points-relative_points"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
710 <dc:call-macro name="basedata_5_flood-protections_relative_points"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
711 </dc:if>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
712 <dc:if test="dc:contains($artifact-outs, 'fix_wq_curve')">
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
713 <dc:call-macro name="basedata_0_wq"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
714 <dc:call-macro name="basedata_1_additionals_marks"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
715 <dc:call-macro name="basedata_2_fixations_wqkms"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
716 <dc:call-macro name="basedata_3_officials"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
717 <dc:call-macro name="basedata_4_heightmarks-points"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
718 <dc:call-macro name="basedata_5_flood-protections_relative_points"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
719 </dc:if>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
720 <dc:if test="dc:contains($artifact-outs, 'fix_deltawt_curve')">
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
721 </dc:if>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
722 <dc:if test="dc:contains($artifact-outs, 'fix_longitudinal_section_curve')">
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
723 <dc:call-macro name="annotations"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
724 </dc:if>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
725 <dc:if test="dc:contains($artifact-outs, 'map')">
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
726 <dc:call-macro name="flood-map-complete"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
727 </dc:if>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
728 <dc:if test="dc:contains($artifact-outs, 'flow_velocity')">
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
729 <dc:call-macro name="annotations_per_type"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
730 <dc:call-macro name="flow_velocity_measurements"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
731 </dc:if>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
732 <dc:if test="dc:contains($artifact-outs, 'bed_longitudinal_section')">
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
733 <dc:call-macro name="annotations_per_type"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
734 </dc:if>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
735 <dc:if test="dc:contains($artifact-outs, 'sedimentload_ls')">
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
736 <dc:call-macro name="annotations_per_type"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
737 <dc:call-macro name="morph_width"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
738 </dc:if>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
739 <dc:comment>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
740 MINFO bedheight middle
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
741 </dc:comment>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
742 <dc:if test="dc:contains($artifact-outs, 'bedheight_middle')">
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
743 <dc:call-macro name="sounding-width"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
744 <dc:call-macro name="basedata_0"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
745 <dc:call-macro name="basedata_1_additionals"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
746 <dc:call-macro name="basedata_2_fixations"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
747 <dc:call-macro name="basedata_3_officials"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
748 <dc:call-macro name="annotations_per_type"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
749 </dc:if>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
750 <dc:if test="dc:contains($artifact-outs, 'bed_difference_year') or
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
751 dc:contains($artifact-outs, 'bed_difference_epoch')">
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
752 <dc:call-macro name="basedata_0"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
753 <dc:call-macro name="basedata_1_additionals"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
754 <dc:call-macro name="basedata_2_fixations"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
755 <dc:call-macro name="basedata_3_officials"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
756 <dc:call-macro name="annotations_per_type"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
757 <dc:call-macro name="morph_width"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
758 </dc:if>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
759 <dc:comment comment="--- non-recommendations---"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
760 </dc:otherwise>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
761 </dc:choose>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
762
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
763 <dc:if test="dc:contains($artifact-outs, 'waterlevels')">
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
764
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
765 <!-- base data -->
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
766 <dc:call-macro name="basedata_0"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
767
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
768 <!-- extra-longitudinal-sections -->
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
769 <dc:call-macro name="basedata_1_additionals"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
770
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
771 <!-- fixations -->
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
772 <dc:call-macro name="basedata_2_fixations"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
773
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
774 <!-- flood water marks-->
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
775 <dc:call-macro name="basedata_4_heightmarks-points"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
776
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
777 <!-- flood protection -->
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
778 <dc:call-macro name="basedata_5_flood-protections"/>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
779
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
780 </dc:if>
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
781
ebd6e8e234e0 Added mainvalues to fixanalysis wq curves.
Raimund Renkert <rrenkert@intevation.de>
parents: 5976
diff changeset
782 <dc:if test="dc:contains($artifact-outs, 'computed_discharge_curve') and not (dc:contains($parameters, 'recommended'))">
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
783 <discharge_table_nn>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
784 <discharge_table_gauge>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
785 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
786 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
787 SELECT id AS gauge_id,
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
788 name AS gauge_name
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
789 FROM gauges WHERE river_id = ${river_id}
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
790 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
791 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
792 <gauge name="{$gauge_name}"
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
793 db-id="{$gauge_id}"
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
794 factory="gaugedischarge"
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
795 from="{$g_start}"
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
796 to="{$g_stop}"
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
797 ids="{$gauge_name}:OUT={$OUT}"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
798 </dc:for-each>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
799 </dc:context>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
800 </discharge_table_gauge>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
801 </discharge_table_nn>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
802 </dc:macro>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
803
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
804 <dc:macro name="discharge_computed">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
805 <discharge_table_nn>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
806 <discharge_table_gauge>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
807 <dc:context>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
808 <dc:statement>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
809 SELECT id AS gauge_id,
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
810 name AS gauge_name
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
811 FROM gauges WHERE river_id = ${river_id}
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
812 </dc:statement>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
813 <dc:for-each>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
814 <gauge name="{$gauge_name}"
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
815 db-id="{$gauge_id}"
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
816 factory="gaugedischarge"
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
817 from="{$g_start}"
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
818 to="{$g_stop}"
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
819 ids="{$gauge_name}:OUT={$OUT}"/>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
820 <dc:comment>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
821 <!--
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
822 <gauge>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
823 <dc:attribute name="name" value="${gauge_name}"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
824 <dc:attribute name="db-id" value="${gauge_id}"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
825 <dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
826 <dc:statement>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
827 SELECT description AS gauge_desc,
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
828 d.id AS discharge_id,
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
829 ti.start_time AS g_start,
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
830 ti.stop_time AS g_stop
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
831 FROM discharge_tables d JOIN time_intervals ti
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
832 ON d.time_interval_id = ti.id
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
833 WHERE d.gauge_id = ${gauge_id} AND d.kind = 1
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
834 </dc:statement>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
835 <dc:for-each>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
836 <historical>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
837 <dc:attribute name="name" value="${gauge_desc}"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
838 <dc:attribute name="factory" value="gaugedischarge"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
839 <dc:attribute name="from" value="${g_start}"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
840 <dc:attribute name="to" value="${g_stop}"/>
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
841 <dc:attribute name="ids" value="${discharge_id}-${g_start}-${g_stop}:OUT=${out}"/>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
842 </historical>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
843 </dc:for-each>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
844 </dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
845 </gauge>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
846 -->
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
847 </dc:comment>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
848 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
849 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
850 </discharge_table_gauge>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
851 </discharge_table_nn>
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
852 </dc:macro>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
853
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
854 <dc:macro name="discharge_fix_wq">
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
855 <discharge_table_nn>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
856 <discharge_table_gauge>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
857 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
858 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
859 SELECT id AS gauge_id,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
860 name AS gauge_name
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
861 FROM gauges WHERE river_id = ${river_id}
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
862 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
863 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
864 <gauge name="{$gauge_name}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
865 db-id="{$gauge_id}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
866 factory="gaugedischarge"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
867 from="{$g_start}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
868 to="{$g_stop}"
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
869 ids="{$gauge_name}:OUT={$OUT}"/>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
870 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
871 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
872 </discharge_table_gauge>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
873 </discharge_table_nn>
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
874 </dc:macro>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
875
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
876 <dc:choose>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
877 <dc:when test="dc:contains($parameters, 'recommended')">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
878 <dc:comment>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
879 Recommendations (client shall load immediately).
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
880 </dc:comment>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
881 <dc:iterate var="out" container="artifact-outs">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
882 <dc:choose>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
883 <dc:when test="$out = 'w_differences'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
884 <dc:call-macro name="annotations"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
885 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
886 <dc:when test="$out = 'discharge_longitudinal_section'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
887 <dc:call-macro name="annotations"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
888 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
889 <dc:when test="$out = 'historical_discharge_wq'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
890 <dc:call-macro name="mainvalues"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
891 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
892 <dc:when test="$out = 'cross_section'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
893 <dc:call-macro name="cross_sections"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
894 <dc:call-macro name="hyks"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
895 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
896 <dc:when test="$out = 'computed_discharge_curve'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
897 <dc:call-macro name="mainvalues"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
898 <dc:call-macro name="basedata_2_fixations_wqkms"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
899 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
900 <dc:when test="$out = 'duration_curve'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
901 <dc:call-macro name="mainvalues"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
902 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
903 <dc:when test="$out = 'reference_curve'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
904 <dc:call-macro name="annotations"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
905 <dc:call-macro name="mainvalues"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
906 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
907 <dc:when test="$out = 'fix_wq_curve'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
908 <dc:call-macro name="qsectors"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
909 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
910 <dc:when test="$out = 'longitudinal_section'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
911 <dc:call-macro name="annotations"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
912 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
913 <dc:when test="$out = 'fix_longitudinal_section_curve'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
914 <dc:call-macro name="annotations"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
915 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
916 <dc:when test="$out = 'bed_difference_epoch'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
917 <dc:call-macro name="annotations"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
918 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
919 <dc:when test="$out = 'bed_difference_year'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
920 <dc:call-macro name="annotations"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
921 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
922 <dc:when test="$out = 'bed_difference_height_year'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
923 <dc:call-macro name="annotations"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
924 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
925 <dc:when test="$out = 'floodmap'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
926 <dc:call-macro name="flood-map-recommended"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
927 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
928 <dc:when test="$out = 'floodmap-hws'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
929 <dc:call-macro name="flood-map-recommended"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
930 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
931 <dc:when test="$out = 'minfo-heights'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
932 <dc:call-macro name="minfo-heights"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
933 <dc:macro name="minfo-heights">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
934 <bedheights>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
935 <dc:call-macro name="bed-heights-single"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
936 <dc:call-macro name="bed-heights-epoch"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
937 </bedheights>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
938 </dc:macro>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
939 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
940 <dc:when test="$out = 'minfo-heights-epoch'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
941 <bedheights>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
942 <dc:call-macro name="bed-heights-epoch"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
943 </bedheights>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
944 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
945 </dc:choose>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
946 </dc:iterate>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
947 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
948 <dc:otherwise>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
949 <dc:comment>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
950 Non - Recommendations.
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
951 </dc:comment>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
952 <dc:iterate var="out" container="artifact-outs">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
953 <dc:choose>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
954 <dc:when test="$out = 'cross_section'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
955 <dc:call-macro name="basedata_0"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
956 <dc:call-macro name="basedata_1_additionals"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
957 <dc:call-macro name="basedata_2_fixations"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
958 <dc:call-macro name="basedata_3_officials"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
959 <dc:call-macro name="basedata_4_heightmarks-points"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
960 <dc:call-macro name="cross_sections"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
961 <dc:call-macro name="hyks"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
962 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
963 <dc:when test="$out = 'longitudinal_section'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
964 <dc:call-macro name="longitudinal-section-prototype"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
965 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
966 <dc:when test="$out = 'w_differences'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
967 <dc:call-macro name="longitudinal-section-prototype"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
968 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
969 <dc:when test="$out = 'discharge_longitudinal_section'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
970 <dc:call-macro name="longitudinal-section-prototype"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
971 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
972 <dc:when test="$out = 'duration_curve'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
973 <dc:call-macro name="mainvalues"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
974 <dc:call-macro name="basedata_2_fixations_relative_point"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
975 <dc:call-macro name="basedata_4_heightmarks-points-relative_points"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
976 <dc:call-macro name="basedata_5_flood-protections_relative_points"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
977 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
978 <dc:when test="$out = 'reference_curve'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
979 <dc:call-macro name="annotations"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
980 <dc:call-macro name="basedata_1_additionals-relative_point"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
981 <dc:comment comment=" FIXATIONS ---------------------------"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
982 <dc:call-macro name="basedata_2_fixations_relative_point"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
983 <dc:comment comment=" HOEHENMARKEN ---------------------------"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
984 <dc:call-macro name="basedata_4_heightmarks-points-relative_points"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
985 <dc:call-macro name="basedata_5_flood-protections_relative_points"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
986 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
987 <dc:when test="$out = 'fix_wq_curve'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
988 <dc:call-macro name="basedata_0_wq"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
989 <dc:call-macro name="basedata_1_additionals_marks"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
990 <dc:call-macro name="basedata_2_fixations_wqkms"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
991 <dc:call-macro name="basedata_3_officials"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
992 <dc:call-macro name="basedata_4_heightmarks-points"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
993 <dc:call-macro name="basedata_5_flood-protections_relative_points"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
994 <dc:call-macro name="discharge_table_gauge"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
995 <dc:call-macro name="discharge_fix_wq"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
996 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
997 <dc:when test="$out = 'fix_deltawt_curve'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
998 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
999 <dc:when test="$out = 'fix_longitudinal_section_curve'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1000 <dc:call-macro name="annotations"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1001 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1002 <dc:when test="$out = 'map'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1003 <dc:call-macro name="flood-map-complete"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1004 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1005 <dc:when test="$out = 'flow_velocity'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1006 <dc:call-macro name="annotations_per_type"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1007 <dc:call-macro name="flow_velocity_measurements"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1008 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1009 <dc:when test="$out = 'bed_longitudinal_section'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1010 <dc:call-macro name="annotations_per_type"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1011 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1012 <dc:when test="$out = 'sedimentload_ls'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1013 <dc:call-macro name="annotations_per_type"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1014 <dc:call-macro name="morph_width"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1015 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1016 <dc:comment>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1017 MINFO bedheight middle
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1018 </dc:comment>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1019 <dc:when test="$out = 'bedheight_middle'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1020 <dc:call-macro name="sounding-width"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1021 <dc:call-macro name="basedata_0"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1022 <dc:call-macro name="basedata_1_additionals"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1023 <dc:call-macro name="basedata_2_fixations"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1024 <dc:call-macro name="basedata_3_officials"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1025 <dc:call-macro name="annotations_per_type"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1026 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1027 <dc:when test="$out = 'bed_difference_year'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1028 <dc:call-macro name="basedata_0"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1029 <dc:call-macro name="basedata_1_additionals"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1030 <dc:call-macro name="basedata_2_fixations"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1031 <dc:call-macro name="basedata_3_officials"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1032 <dc:call-macro name="annotations_per_type"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1033 <dc:call-macro name="morph_width"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1034 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1035 <dc:when test="$out = 'bed_difference_epoch'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1036 <dc:call-macro name="basedata_0"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1037 <dc:call-macro name="basedata_1_additionals"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1038 <dc:call-macro name="basedata_2_fixations"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1039 <dc:call-macro name="basedata_3_officials"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1040 <dc:call-macro name="annotations_per_type"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1041 <dc:call-macro name="morph_width"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1042 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1043 <dc:when test="$out = 'floodmap'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1044 <dc:choose>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1045 <dc:when test="dc:contains($parameters, 'dem')">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1046 <dc:call-macro name="flood-map-dem"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1047 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1048 <dc:when test="dc:contains($parameters, 'hws')">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1049 <hws>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1050 <dc:call-macro name="flood-map-hws-lines"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1051 <dc:call-macro name="flood-map-hws-points"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1052 </hws>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1053 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1054 <dc:otherwise>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1055 <dc:call-macro name="flood-map-complete"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1056 </dc:otherwise>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1057 </dc:choose>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1058 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1059 <dc:when test="$out = 'floodmap-hws'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1060 <dc:choose>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1061 <dc:when test="dc:contains($parameters, 'dem')">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1062 <dc:call-macro name="flood-map-dem"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1063 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1064 <dc:when test="dc:contains($parameters, 'hws')">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1065 <hws>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1066 <dc:call-macro name="flood-map-hws-lines"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1067 <dc:call-macro name="flood-map-hws-points"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1068 </hws>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1069 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1070 <dc:otherwise>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1071 <dc:call-macro name="flood-map-complete"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1072 </dc:otherwise>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1073 </dc:choose>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1074 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1075 <dc:when test="$out = 'computed_discharge_curve'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1076 <dc:call-macro name="discharge_computed"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1077 <dc:call-macro name="basedata_2_fixations_wqkms"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1078
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1079 <dc:call-macro name="basedata_5_flood-protections"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1080
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1081 <!-- former waterlevels -->
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1082 <dc:call-macro name="basedata_0"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1083
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1084 <dc:call-macro name="basedata_1_additionals"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1085
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1086 <!-- former flood-water-marks -->
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1087 <dc:call-macro name="basedata_4_heightmarks-points"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1088 <computed_discharge_curve>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1089 <dc:call-macro name="mainvalues"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1090 </computed_discharge_curve>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1091 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1092 <dc:when test="$out = 'minfo-heights'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1093 <dc:call-macro name="minfo-heights"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1094 <dc:macro name="minfo-heights">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1095 <bedheights>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1096 <dc:call-macro name="bed-heights-single"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1097 <dc:call-macro name="bed-heights-epoch"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1098 </bedheights>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1099 </dc:macro>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1100 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1101 <dc:when test="$out = 'minfo-heights-epoch'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1102 <bedheights>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1103 <dc:call-macro name="bed-heights-epoch"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1104 </bedheights>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1105 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1106 </dc:choose>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1107 </dc:iterate>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1108 </dc:otherwise>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1109 </dc:choose>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1110
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1111
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1112 <dc:if test="dc:contains($artifact-outs, 'floodmap') or dc:contains($artifact-outs, 'floodmap-hws')">
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1113 <dc:macro name="flood-map-recommended">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1114 <dc:comment>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1115 FIXME: Following two macros look identical to me.
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1116 </dc:comment>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1117 <kilometrage>
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1118 <riveraxis factory="riveraxis" ids="{$river_id}:OUT={$OUT}"/>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1119 </kilometrage>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1120 <rastermap>
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1121 <background factory="wmsbackground" ids="{$river_id}:OUT={$OUT}"/>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1122 </rastermap>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1123 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1124
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1125 <dc:macro name="flood-map-dem">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1126 <dems>
5477
ae60bb7b8085 Add proper handling of multiple river_axes for datacage and rivermapfile
Andre Heinecke <aheinecke@intevation.de>
parents: 5474
diff changeset
1127 <dc:context>
ae60bb7b8085 Add proper handling of multiple river_axes for datacage and rivermapfile
Andre Heinecke <aheinecke@intevation.de>
parents: 5474
diff changeset
1128 <dc:statement>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1129 SELECT d.id AS dem_id,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1130 r.a AS dem_lower,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1131 r.b AS dem_upper,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1132 d.name AS name,
5625
a8cc4ebdd0bb Update dem info string
Andre Heinecke <aheinecke@intevation.de>
parents: 5619
diff changeset
1133 t.start_time AS start_time,
a8cc4ebdd0bb Update dem info string
Andre Heinecke <aheinecke@intevation.de>
parents: 5619
diff changeset
1134 t.stop_time AS stop_time,
5627
2d9eb188fa51 Flys Issue 759 write longer strings and explicitly break the lines
Andre Heinecke <aheinecke@intevation.de>
parents: 5625
diff changeset
1135 'Projektion: ' || d.projection || '$' ||
2d9eb188fa51 Flys Issue 759 write longer strings and explicitly break the lines
Andre Heinecke <aheinecke@intevation.de>
parents: 5625
diff changeset
1136 'Rasterweite: ' || d.resolution || 'm$' ||
2d9eb188fa51 Flys Issue 759 write longer strings and explicitly break the lines
Andre Heinecke <aheinecke@intevation.de>
parents: 5625
diff changeset
1137 'Format: ' || d.format || '$' ||
2d9eb188fa51 Flys Issue 759 write longer strings and explicitly break the lines
Andre Heinecke <aheinecke@intevation.de>
parents: 5625
diff changeset
1138 'Zeitraum: '
5625
a8cc4ebdd0bb Update dem info string
Andre Heinecke <aheinecke@intevation.de>
parents: 5619
diff changeset
1139 AS info
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1140 FROM dem d
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1141 JOIN ranges r ON d.range_id = r.id
5529
52876daf97b0 Use left join on time intervals as they can be NULL
Tom Gottfried <tom@intevation.de>
parents: 5524
diff changeset
1142 LEFT JOIN time_intervals t ON d.time_interval_id = t.id
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1143 WHERE d.river_id = ${river_id}
5515
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1144 </dc:statement>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
1145 <dc:for-each>
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1146 <dem factory="demfactory"
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1147 ids="{$dem_id}:OUT={$OUT}"
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1148 name="{$name}"
5627
2d9eb188fa51 Flys Issue 759 write longer strings and explicitly break the lines
Andre Heinecke <aheinecke@intevation.de>
parents: 5625
diff changeset
1149 info="{dc:replace($info, '$', '&lt;BR&gt;')}{dc:date-format('yyyy', $start_time)} - {dc:date-format('yyyy', $stop_time)}"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
1150 </dc:for-each>
5515
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1151 </dc:context>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1152 </dems>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1153 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1154
5524
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1155 <dc:macro name="filter_hws_ddg">
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1156 <dc:macro name="durchlass_damm_graben">
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1157 <dc:macro name="ddg_factory">
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1158 <dc:for-each>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1159 <hws factory="hwsfactory" name="{$hws_name}"/>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1160 </dc:for-each>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1161 </dc:macro>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1162
5605
6372fd8bfb00 It's hws_kind not kws_kind
Andre Heinecke <aheinecke@intevation.de>
parents: 5598
diff changeset
1163 <dc:filter expr="$hws_kind=1">
5524
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1164 <dc:if test="dc:has-result()">
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1165 <Durchlass><dc:call-macro name="ddg_factory"/></Durchlass>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1166 </dc:if>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1167 </dc:filter>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1168
5605
6372fd8bfb00 It's hws_kind not kws_kind
Andre Heinecke <aheinecke@intevation.de>
parents: 5598
diff changeset
1169 <dc:filter expr="$hws_kind=2">
5524
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1170 <dc:if test="dc:has-result()">
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1171 <Damm><dc:call-macro name="ddg_factory"/></Damm>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1172 </dc:if>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1173 </dc:filter>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1174
5605
6372fd8bfb00 It's hws_kind not kws_kind
Andre Heinecke <aheinecke@intevation.de>
parents: 5598
diff changeset
1175 <dc:filter expr="$hws_kind=3">
5524
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1176 <dc:if test="dc:has-result()">
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1177 <Graben><dc:call-macro name="ddg_factory"/></Graben>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1178 </dc:if>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1179 </dc:filter>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1180 </dc:macro>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1181
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1182 <dc:filter expr="$hws_official=1">
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1183 <dc:if test="dc:has-result()">
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1184 <official>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1185 <dc:call-macro name="durchlass_damm_graben"/>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1186 </official>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1187 </dc:if>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1188 </dc:filter>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1189
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1190 <dc:filter expr="$hws_official=0">
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1191 <dc:if test="dc:has-result()">
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1192 <inofficial>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1193 <dc:call-macro name="durchlass_damm_graben"/>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1194 </inofficial>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1195 </dc:if>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1196 </dc:filter>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1197 </dc:macro>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1198
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1199 <dc:macro name="flood-map-hws-lines">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1200 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1201 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1202 SELECT DISTINCT
5524
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1203 name AS hws_name,
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1204 official AS hws_official,
5524
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1205 kind_id AS hws_kind
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1206 FROM hws_lines
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1207 WHERE river_id = ${river_id}
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1208 </dc:statement>
5524
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1209 <dc:if test="dc:has-result()">
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1210 <lines>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1211 <dc:call-macro name="filter_hws_ddg"/>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1212 </lines>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1213 </dc:if>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1214 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1215 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1216
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1217 <dc:macro name="flood-map-hws-points">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1218 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1219 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1220 SELECT DISTINCT
5524
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1221 name AS hws_name,
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1222 official AS hws_official,
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1223 kind_id AS hws_kind
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1224 FROM hws_points
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1225 WHERE river_id = ${river_id}
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1226 </dc:statement>
5524
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1227 <dc:if test="dc:has-result()">
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1228 <points>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1229 <dc:call-macro name="filter_hws_ddg"/>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1230 </points>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1231 </dc:if>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1232 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1233 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1234
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1235 <dc:macro name="flood-map-km">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1236 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1237 <dc:statement>
5548
9840c2e65e28 Fix distinction for kilometrage.
Andre Heinecke <aheinecke@intevation.de>
parents: 5547
diff changeset
1238 SELECT DISTINCT 1 FROM river_axes_km WHERE river_id = ${river_id}
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1239 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1240 <dc:for-each>
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1241 <kilometrage factory="wmskmfactory" ids="{$river_id}:OUT={$OUT}"/>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1242 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1243 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1244 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1245
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1246 <dc:macro name="flood-map-qps">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1247 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1248 <dc:comment>Grab only the actual first</dc:comment>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1249 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1250 SELECT DISTINCT
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1251 cs.kind_id AS kind_id,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1252 ck.name AS kind_name
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1253 FROM cross_section_tracks cs
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1254 JOIN cross_section_track_kinds ck on cs.kind_id = ck.id
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1255 WHERE river_id = ${river_id}
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1256 AND kind_id=1
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1257 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1258 <dc:if test="dc:has-result()">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1259 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1260 <actual description="{$kind_name}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1261 factory="wmsqpsfactory"
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1262 ids="{$river_id};{$kind_name};{$kind_id}:OUT={$OUT}"/>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1263 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1264 </dc:if>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1265 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1266 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1267 <dc:comment>Now the other tracks</dc:comment>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1268 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1269 SELECT DISTINCT
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1270 cs.kind_id AS kind_id,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1271 ck.name AS kind_name,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1272 cs.name AS layer_name
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1273 FROM cross_section_tracks cs
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1274 JOIN cross_section_track_kinds ck on cs.kind_id = ck.id
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1275 WHERE river_id = ${river_id}
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1276 AND kind_id=0
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1277 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1278 <dc:if test="dc:has-result()">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1279 <other>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1280 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1281 <misc-qps description="{$layer_name}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1282 factory="wmsqpsfactory"
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1283 ids="{$river_id};{$layer_name};{$kind_id}:OUT={$OUT}"/>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1284 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1285 </other>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1286 </dc:if>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1287 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1288 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1289
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1290 <dc:macro name="flood-map-riveraxis">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1291 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1292 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1293 SELECT DISTINCT
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1294 ax.kind_id AS kind_id,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1295 ak.name AS kind_name
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1296 FROM river_axes ax
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1297 JOIN axis_kinds ak on ax.kind_id = ak.id
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1298 WHERE river_id = ${river_id}
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1299 AND kind_id=1
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1300 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1301 <dc:if test="dc:has-result()">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1302 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1303 <actual description="{$kind_name}"
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1304 ids="{$river_id};{$kind_name};{$kind_id}:OUT={$OUT}"
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1305 factory="riveraxis"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1306 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1307 </dc:if>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1308 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1309 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1310 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1311 SELECT DISTINCT
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1312 ak.name AS kind_name,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1313 ax.kind_id AS kind_id,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1314 ax.name AS layer_name
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1315 FROM river_axes ax
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1316 JOIN axis_kinds ak on ax.kind_id = ak.id
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1317 WHERE river_id = ${river_id}
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1318 AND kind_id &lt;&gt; 1
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1319 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1320 <dc:if test="dc:has-result()">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1321 <other>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1322 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1323 <misc-axis description="{$layer_name}"
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1324 ids="{$river_id};{$layer_name};{$kind_id}:OUT={$OUT}"
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1325 factory="riveraxis"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1326 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1327 </other>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1328 </dc:if>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1329 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1330 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1331
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1332 <dc:macro name="flood-map-hydr-boundaries-state">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1333 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1334 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1335 SELECT DISTINCT
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1336 name
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1337 FROM hydr_boundaries
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1338 WHERE river_id = ${river_id}
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1339 AND kind = 2
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1340 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1341 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1342 <line factory="wmshydrboundariesfactory"
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1343 ids="{$river_id};{$name};2:OUT={$OUT}"
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1344 name="{$name}"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1345 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1346 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1347 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1348 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1349 SELECT DISTINCT
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1350 name
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1351 FROM hydr_boundaries_poly
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1352 WHERE river_id = ${river_id}
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1353 AND kind = 2
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1354 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1355 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1356 <line factory="wmshydrboundariespolyfactory"
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1357 ids="{$river_id};{$name};2:OUT={$OUT}"
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1358 name="{$name}"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1359 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1360 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1361 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1362
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1363 <dc:macro name="flood-map-hydr-boundaries-lines">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1364 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1365 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1366 SELECT DISTINCT
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1367 name
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1368 FROM hydr_boundaries
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1369 WHERE river_id = ${river_id}
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1370 AND kind = 1
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1371 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1372 <dc:comment> What about all other line kinds?</dc:comment>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1373 <dc:if test="dc:has-result()">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1374 <lines>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1375 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1376 <line factory="wmshydrboundariesfactory"
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1377 ids="{$river_id};{$name};1:OUT={$OUT}"
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1378 name="{$name}"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1379 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1380 </lines>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1381 </dc:if>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1382 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1383 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1384
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1385 <dc:macro name="flood-map-hydr-boundaries-poly">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1386 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1387 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1388 SELECT DISTINCT
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1389 b.sectie AS sectie_id,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1390 sk.name AS sectie
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1391 FROM hydr_boundaries_poly b
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1392 JOIN sectie_kinds sk ON b.sectie = sk.id
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1393 WHERE b.river_id = ${river_id}
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1394 AND b.kind = 1
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1395 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1396 <dc:if test="dc:has-result()">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1397 <sobek_areas>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1398 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1399 <boundary name="{$sectie}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1400 factory="wmshydrboundariespolyfactory"
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1401 ids="{$river_id};{$sectie};1;{$sectie_id};-1:OUT={$OUT}"/>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1402 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1403 </sobek_areas>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1404 </dc:if>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1405 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1406 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1407 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1408 SELECT DISTINCT
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1409 b.sobek AS sobek_id,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1410 sk.name AS sobek
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1411 FROM hydr_boundaries_poly b
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1412 JOIN sobek_kinds sk ON b.sobek = sk.id
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1413 WHERE b.river_id = ${river_id}
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1414 AND b.kind = 1
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1415 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1416 <dc:if test="dc:has-result()">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1417 <sobek_flooded>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1418 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1419 <boundary name="{$sobek}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1420 factory="wmshydrboundariespolyfactory"
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1421 ids="{$river_id};{$sobek};1;-1;{$sobek_id}:OUT={$OUT}"/>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1422 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1423 </sobek_flooded>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1424 </dc:if>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1425 </dc:context>
5760
dc5f81885918 Add hydroboundaries where sectie and sobek is null
Andre Heinecke <aheinecke@intevation.de>
parents: 5758
diff changeset
1426 <dc:context>
dc5f81885918 Add hydroboundaries where sectie and sobek is null
Andre Heinecke <aheinecke@intevation.de>
parents: 5758
diff changeset
1427 <dc:statement>
dc5f81885918 Add hydroboundaries where sectie and sobek is null
Andre Heinecke <aheinecke@intevation.de>
parents: 5758
diff changeset
1428 SELECT DISTINCT
dc5f81885918 Add hydroboundaries where sectie and sobek is null
Andre Heinecke <aheinecke@intevation.de>
parents: 5758
diff changeset
1429 b.name AS name
dc5f81885918 Add hydroboundaries where sectie and sobek is null
Andre Heinecke <aheinecke@intevation.de>
parents: 5758
diff changeset
1430 FROM hydr_boundaries_poly b
dc5f81885918 Add hydroboundaries where sectie and sobek is null
Andre Heinecke <aheinecke@intevation.de>
parents: 5758
diff changeset
1431 WHERE b.river_id = ${river_id}
dc5f81885918 Add hydroboundaries where sectie and sobek is null
Andre Heinecke <aheinecke@intevation.de>
parents: 5758
diff changeset
1432 AND b.kind = 1
dc5f81885918 Add hydroboundaries where sectie and sobek is null
Andre Heinecke <aheinecke@intevation.de>
parents: 5758
diff changeset
1433 AND b.sobek IS NULL
dc5f81885918 Add hydroboundaries where sectie and sobek is null
Andre Heinecke <aheinecke@intevation.de>
parents: 5758
diff changeset
1434 AND b.sectie is NULL
dc5f81885918 Add hydroboundaries where sectie and sobek is null
Andre Heinecke <aheinecke@intevation.de>
parents: 5758
diff changeset
1435 </dc:statement>
dc5f81885918 Add hydroboundaries where sectie and sobek is null
Andre Heinecke <aheinecke@intevation.de>
parents: 5758
diff changeset
1436 <dc:for-each>
dc5f81885918 Add hydroboundaries where sectie and sobek is null
Andre Heinecke <aheinecke@intevation.de>
parents: 5758
diff changeset
1437 <boundary name="{$name}"
dc5f81885918 Add hydroboundaries where sectie and sobek is null
Andre Heinecke <aheinecke@intevation.de>
parents: 5758
diff changeset
1438 factory="wmshydrboundariespolyfactory"
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1439 ids="{$river_id};{$name}:OUT={$OUT}"/>
5760
dc5f81885918 Add hydroboundaries where sectie and sobek is null
Andre Heinecke <aheinecke@intevation.de>
parents: 5758
diff changeset
1440 </dc:for-each>
dc5f81885918 Add hydroboundaries where sectie and sobek is null
Andre Heinecke <aheinecke@intevation.de>
parents: 5758
diff changeset
1441 </dc:context>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1442 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1443
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1444 <dc:macro name="flood-map-hydr-boundaries">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1445 <bfg_model>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1446 <areas>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1447 <dc:call-macro name="flood-map-hydr-boundaries-poly"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1448 </areas>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1449 <dc:call-macro name="flood-map-hydr-boundaries-lines"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1450 </bfg_model>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1451 <federal>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1452 <dc:call-macro name="flood-map-hydr-boundaries-state"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1453 </federal>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1454 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1455
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1456 <dc:macro name="flood-map-floodplain">
5619
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1457 <floodplain>
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1458 <dc:context>
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1459 <dc:statement>
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1460 SELECT DISTINCT
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1461 fp.kind_id AS kind_id,
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1462 flk.name AS kind_name
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1463 FROM floodplain fp
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1464 JOIN floodplain_kinds flk on fp.kind_id = flk.id
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1465 WHERE river_id = ${river_id}
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1466 AND kind_id=1
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1467 </dc:statement>
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1468 <dc:if test="dc:has-result()">
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
1469 <dc:for-each>
5496
23d8f2700b38 Add support for multiple floodplains and add them to the datacage accordingly
Andre Heinecke <aheinecke@intevation.de>
parents: 5477
diff changeset
1470 <floody factory="wmsfloodplainfactory"
5619
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1471 description="{$kind_name}"
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1472 ids="{$river_id};{$kind_name};{$kind_id}:OUT={$OUT}"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
1473 </dc:for-each>
5619
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1474 </dc:if>
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1475 </dc:context>
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1476 <dc:context>
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1477 <dc:statement>
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1478 SELECT DISTINCT
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1479 flk.name AS kind_name,
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1480 fp.kind_id AS kind_id,
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1481 fp.name AS layer_name
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1482 FROM floodplain fp
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1483 JOIN floodplain_kinds flk on fp.kind_id = flk.id
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1484 WHERE river_id = ${river_id}
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1485 AND kind_id &lt;&gt; 1
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1486 </dc:statement>
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1487 <dc:if test="dc:has-result()">
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1488 <other>
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1489 <dc:for-each>
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1490 <floody factory="wmsfloodplainfactory"
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1491 description="{$layer_name}"
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1492 ids="{$river_id};{$layer_name};{$kind_id}:OUT={$OUT}"/>
5619
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1493 </dc:for-each>
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1494 </other>
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1495 </dc:if>
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1496 </dc:context>
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1497 </floodplain>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1498 </dc:macro>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1499
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1500 <dc:macro name="hwslines_by_kind">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1501 <dc:comment>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1502 Call from a context where fed_name hws_kind hws_name and river_id is
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1503 availble
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1504 </dc:comment>
5524
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1505
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1506 <dc:macro name="hwslines_by_kind_factory">
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1507 <dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1508 <hws factory="wmshwslinesfactory"
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1509 ids="{$river_id};{$hws_name}:OUT={$OUT}"
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1510 name="{$hws_name}"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1511 </dc:for-each>
5524
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1512 </dc:macro>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1513
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1514 <dc:filter expr="$hws_kind=1">
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1515 <dc:if test="dc:has-result()">
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1516 <Durchlass>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1517 <dc:call-macro name="hwslines_by_kind_factory"/>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1518 </Durchlass>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1519 </dc:if>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1520 </dc:filter>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1521
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1522 <dc:filter expr="$hws_kind=2">
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1523 <dc:if test="dc:has-result()">
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1524 <Damm>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1525 <dc:call-macro name="hwslines_by_kind_factory"/>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1526 </Damm>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1527 </dc:if>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1528 </dc:filter>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1529
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1530 <dc:filter expr="$hws_kind=3">
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1531 <dc:if test="dc:has-result()">
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1532 <Graben>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1533 <dc:call-macro name="hwslines_by_kind_factory"/>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1534 </Graben>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1535 </dc:if>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1536 </dc:filter>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1537 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1538
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1539 <dc:macro name="hwslines">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1540 <hws_lines>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1541 <official>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1542 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1543 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1544 SELECT DISTINCT
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1545 fs.name AS fed_name,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1546 fs.id AS fed_id
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1547 FROM hws_lines hws
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1548 JOIN fed_states fs ON hws.fed_state_id = fs.id
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1549 WHERE river_id = ${river_id}
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1550 AND hws.official=1
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1551 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1552 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1553 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1554 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1555 SELECT DISTINCT
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1556 name AS hws_name,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1557 kind_id AS hws_kind
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1558 FROM hws_lines
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1559 WHERE river_id = ${river_id}
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1560 AND official=1
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1561 AND fed_state_id = ${fed_id} ORDER BY name
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1562 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1563 <fedstate description="{$fed_name}">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1564 <dc:call-macro name="hwslines_by_kind"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1565 </fedstate>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1566 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1567 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1568 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1569 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1570 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1571 SELECT distinct
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1572 name AS hws_name,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1573 kind_id AS hws_kind
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1574 FROM hws_lines
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1575 WHERE river_id = ${river_id}
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1576 AND official=1
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1577 AND fed_state_id IS NULL
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1578 ORDER BY name
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1579 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1580 <hws_fed_unknown>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1581 <dc:call-macro name="hwslines_by_kind"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1582 </hws_fed_unknown>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1583 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1584 </official>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1585 <inofficial>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1586 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1587 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1588 SELECT DISTINCT
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1589 fs.name AS fed_name,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1590 fs.id AS fed_id
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1591 FROM hws_lines hws
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1592 JOIN fed_states fs ON hws.fed_state_id = fs.id
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1593 WHERE river_id = ${river_id}
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1594 AND hws.official=0
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1595 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1596 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1597 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1598 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1599 SELECT DISTINCT
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1600 name AS hws_name,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1601 kind_id AS hws_kind
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1602 FROM hws_lines
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1603 WHERE river_id = ${river_id}
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1604 AND official=0
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1605 AND fed_state_id = ${fed_id} ORDER BY name
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1606 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1607 <fedstate description="{$fed_name}">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1608 <dc:call-macro name="hwslines_by_kind"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1609 </fedstate>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1610 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1611 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1612 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1613 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1614 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1615 SELECT distinct
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1616 name AS hws_name,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1617 kind_id AS hws_kind
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1618 FROM hws_lines
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1619 WHERE river_id = ${river_id}
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1620 AND official=0
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1621 AND fed_state_id IS NULL ORDER BY name
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1622 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1623 <hws_fed_unknown>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1624 <dc:call-macro name="hwslines_by_kind"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1625 </hws_fed_unknown>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1626 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1627 </inofficial>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1628 </hws_lines>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1629 </dc:macro>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1630
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1631 <dc:macro name="hwspoints_by_kind">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1632 <dc:comment>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1633 Call from a context where fed_name hws_kind hws_name and river_id is
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1634 availble
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1635 </dc:comment>
5524
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1636
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1637 <dc:macro name="hwspoints_by_kind_factory">
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1638 <dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1639 <hws factory="wmshwspointsfactory"
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1640 ids="{$river_id};{$hws_name}:OUT={$OUT}"
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1641 name="{$hws_name}"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1642 </dc:for-each>
5524
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1643 </dc:macro>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1644
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1645 <dc:filter expr="$hws_kind=1">
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1646 <dc:if test="dc:has-result()">
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1647 <Durchlass>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1648 <dc:call-macro name="hwspoints_by_kind_factory"/>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1649 </Durchlass>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1650 </dc:if>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1651 </dc:filter>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1652
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1653 <dc:filter expr="$hws_kind=2">
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1654 <dc:if test="dc:has-result()">
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1655 <Damm>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1656 <dc:call-macro name="hwspoints_by_kind_factory"/>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1657 </Damm>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1658 </dc:if>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1659 </dc:filter>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1660
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1661 <dc:filter expr="$hws_kind=3">
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1662 <dc:if test="dc:has-result()">
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1663 <Graben>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1664 <dc:call-macro name="hwspoints_by_kind_factory"/>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1665 </Graben>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1666 </dc:if>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1667 </dc:filter>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1668 </dc:macro>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1669
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1670 <dc:macro name="hwspoints">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1671 <hws_points>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1672 <official>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1673 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1674 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1675 SELECT DISTINCT
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1676 fs.name AS fed_name,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1677 fs.id AS fed_id
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1678 FROM hws_points hws
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1679 JOIN fed_states fs ON hws.fed_state_id = fs.id
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1680 WHERE river_id = ${river_id}
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1681 AND hws.official=1
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1682 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1683 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1684 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1685 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1686 SELECT DISTINCT
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1687 name AS hws_name,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1688 kind_id AS hws_kind
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1689 FROM hws_points
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1690 WHERE river_id = ${river_id}
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1691 AND official=1
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1692 AND fed_state_id = ${fed_id} ORDER BY name
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1693 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1694 <fedstate description="{$fed_name}">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1695 <dc:call-macro name="hwspoints_by_kind"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1696 </fedstate>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1697 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1698 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1699 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1700 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1701 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1702 SELECT distinct
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1703 name AS hws_name,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1704 kind_id AS hws_kind
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1705 FROM hws_points
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1706 WHERE river_id = ${river_id}
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1707 AND official=1
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1708 AND fed_state_id IS NULL
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1709 ORDER BY name
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1710 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1711 <hws_fed_unknown>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1712 <dc:call-macro name="hwspoints_by_kind"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1713 </hws_fed_unknown>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1714 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1715 </official>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1716 <inofficial>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1717 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1718 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1719 SELECT DISTINCT
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1720 fs.name AS fed_name,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1721 fs.id AS fed_id
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1722 FROM hws_points hws
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1723 JOIN fed_states fs ON hws.fed_state_id = fs.id
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1724 WHERE river_id = ${river_id}
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1725 AND hws.official=0
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1726 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1727 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1728 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1729 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1730 SELECT DISTINCT
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1731 name AS hws_name,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1732 kind_id AS hws_kind
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1733 FROM hws_points
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1734 WHERE river_id = ${river_id}
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1735 AND official=0
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1736 AND fed_state_id = ${fed_id} ORDER BY name
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1737 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1738 <fedstate description="{$fed_name}">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1739 <dc:call-macro name="hwspoints_by_kind"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1740 </fedstate>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1741 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1742 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1743 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1744 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1745 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1746 SELECT distinct
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1747 name AS hws_name,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1748 kind_id AS hws_kind
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1749 FROM hws_points
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1750 WHERE river_id = ${river_id}
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1751 AND official=0
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1752 AND fed_state_id IS NULL ORDER BY name
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1753 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1754 <hws_fed_unknown>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1755 <dc:call-macro name="hwspoints_by_kind"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1756 </hws_fed_unknown>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1757 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1758 </inofficial>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1759 </hws_points>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1760 </dc:macro>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1761
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1762 <dc:macro name="flood-map-buildings">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1763 <dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1764 <dc:statement>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1765 SELECT DISTINCT
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1766 b.kind_id AS building_kind_id,
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1767 bk.name AS building_kind
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1768 FROM buildings b
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1769 JOIN building_kinds bk ON b.kind_id = bk.id
5435
70026e3b6af3 Add buildings of kind 0 to data cage
Andre Heinecke <aheinecke@intevation.de>
parents: 5405
diff changeset
1770 WHERE b.river_id = ${river_id}
5467
6aa04b30f7ff Do not use != in sql statement
Andre Heinecke <aheinecke@intevation.de>
parents: 5466
diff changeset
1771 AND b.kind_id &lt;&gt; 0
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1772 </dc:statement>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
1773 <dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1774 <buildings description="{$building_kind}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1775 factory="wmsbuildingsfactory"
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1776 ids="{$river_id};{$building_kind};{$building_kind_id}:OUT={$OUT}"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
1777 </dc:for-each>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1778 </dc:context>
5435
70026e3b6af3 Add buildings of kind 0 to data cage
Andre Heinecke <aheinecke@intevation.de>
parents: 5405
diff changeset
1779 <dc:context>
70026e3b6af3 Add buildings of kind 0 to data cage
Andre Heinecke <aheinecke@intevation.de>
parents: 5405
diff changeset
1780 <dc:statement>
70026e3b6af3 Add buildings of kind 0 to data cage
Andre Heinecke <aheinecke@intevation.de>
parents: 5405
diff changeset
1781 SELECT DISTINCT
70026e3b6af3 Add buildings of kind 0 to data cage
Andre Heinecke <aheinecke@intevation.de>
parents: 5405
diff changeset
1782 b.name AS building_name,
5796
53cff50918b1 Fix other buildings.
Andre Heinecke <aheinecke@intevation.de>
parents: 5772
diff changeset
1783 bk.name AS building_kind,
53cff50918b1 Fix other buildings.
Andre Heinecke <aheinecke@intevation.de>
parents: 5772
diff changeset
1784 b.kind_id AS building_kind_id
5435
70026e3b6af3 Add buildings of kind 0 to data cage
Andre Heinecke <aheinecke@intevation.de>
parents: 5405
diff changeset
1785 FROM buildings b
70026e3b6af3 Add buildings of kind 0 to data cage
Andre Heinecke <aheinecke@intevation.de>
parents: 5405
diff changeset
1786 JOIN building_kinds bk ON b.kind_id = bk.id
70026e3b6af3 Add buildings of kind 0 to data cage
Andre Heinecke <aheinecke@intevation.de>
parents: 5405
diff changeset
1787 WHERE river_id = ${river_id}
5796
53cff50918b1 Fix other buildings.
Andre Heinecke <aheinecke@intevation.de>
parents: 5772
diff changeset
1788 AND kind_id = 0
5435
70026e3b6af3 Add buildings of kind 0 to data cage
Andre Heinecke <aheinecke@intevation.de>
parents: 5405
diff changeset
1789 </dc:statement>
5796
53cff50918b1 Fix other buildings.
Andre Heinecke <aheinecke@intevation.de>
parents: 5772
diff changeset
1790 <dc:if test="dc:has-result()">
53cff50918b1 Fix other buildings.
Andre Heinecke <aheinecke@intevation.de>
parents: 5772
diff changeset
1791 <other>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
1792 <dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1793 <buildings description="{$building_name}"
5796
53cff50918b1 Fix other buildings.
Andre Heinecke <aheinecke@intevation.de>
parents: 5772
diff changeset
1794 factory="wmsbuildingsfactory"
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1795 ids="{$river_id};{$building_name}:OUT={$OUT}"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
1796 </dc:for-each>
5796
53cff50918b1 Fix other buildings.
Andre Heinecke <aheinecke@intevation.de>
parents: 5772
diff changeset
1797 </other>
53cff50918b1 Fix other buildings.
Andre Heinecke <aheinecke@intevation.de>
parents: 5772
diff changeset
1798 </dc:if>
5435
70026e3b6af3 Add buildings of kind 0 to data cage
Andre Heinecke <aheinecke@intevation.de>
parents: 5405
diff changeset
1799 </dc:context>
5437
b582df0c7b00 Add Jetties to floodmap
Andre Heinecke <aheinecke@intevation.de>
parents: 5435
diff changeset
1800 <dc:context>
b582df0c7b00 Add Jetties to floodmap
Andre Heinecke <aheinecke@intevation.de>
parents: 5435
diff changeset
1801 <dc:statement>
b582df0c7b00 Add Jetties to floodmap
Andre Heinecke <aheinecke@intevation.de>
parents: 5435
diff changeset
1802 SELECT DISTINCT
b582df0c7b00 Add Jetties to floodmap
Andre Heinecke <aheinecke@intevation.de>
parents: 5435
diff changeset
1803 j.kind_id AS jetty_kind_id,
b582df0c7b00 Add Jetties to floodmap
Andre Heinecke <aheinecke@intevation.de>
parents: 5435
diff changeset
1804 jk.name AS jetty_kind
b582df0c7b00 Add Jetties to floodmap
Andre Heinecke <aheinecke@intevation.de>
parents: 5435
diff changeset
1805 FROM jetties j
b582df0c7b00 Add Jetties to floodmap
Andre Heinecke <aheinecke@intevation.de>
parents: 5435
diff changeset
1806 JOIN jetty_kinds jk ON j.kind_id = jk.id
b582df0c7b00 Add Jetties to floodmap
Andre Heinecke <aheinecke@intevation.de>
parents: 5435
diff changeset
1807 WHERE river_id = ${river_id}
b582df0c7b00 Add Jetties to floodmap
Andre Heinecke <aheinecke@intevation.de>
parents: 5435
diff changeset
1808 </dc:statement>
b582df0c7b00 Add Jetties to floodmap
Andre Heinecke <aheinecke@intevation.de>
parents: 5435
diff changeset
1809 <dc:if test="dc:has-result()">
b582df0c7b00 Add Jetties to floodmap
Andre Heinecke <aheinecke@intevation.de>
parents: 5435
diff changeset
1810 <jetties>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
1811 <dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1812 <jetty description="{$jetty_kind}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1813 factory="wmsjettiesfactory"
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1814 ids="{$river_id};{$jetty_kind};{$jetty_kind_id}:OUT={$OUT}"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
1815 </dc:for-each>
5437
b582df0c7b00 Add Jetties to floodmap
Andre Heinecke <aheinecke@intevation.de>
parents: 5435
diff changeset
1816 </jetties>
b582df0c7b00 Add Jetties to floodmap
Andre Heinecke <aheinecke@intevation.de>
parents: 5435
diff changeset
1817 </dc:if>
b582df0c7b00 Add Jetties to floodmap
Andre Heinecke <aheinecke@intevation.de>
parents: 5435
diff changeset
1818 </dc:context>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1819 </dc:macro>
5464
f2bcf0fb1efd Add externalwms for Catchments to datacage config
Andre Heinecke <aheinecke@intevation.de>
parents: 5463
diff changeset
1820
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1821 <dc:macro name="flood-map-fixpoints">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1822 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1823 <dc:statement>
5533
65fa2b22dc46 Remove useless km_exists statements
Andre Heinecke <aheinecke@intevation.de>
parents: 5529
diff changeset
1824 SELECT name AS name
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1825 FROM fixpoints WHERE river_id = ${river_id} GROUP BY name
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1826 </dc:statement>
5533
65fa2b22dc46 Remove useless km_exists statements
Andre Heinecke <aheinecke@intevation.de>
parents: 5529
diff changeset
1827 <dc:for-each>
5614
15476d76b6f9 Remove uneccessary complication fixpoints are always fixpoints
Andre Heinecke <aheinecke@intevation.de>
parents: 5613
diff changeset
1828 <fixpoints factory="wmsfixpointsfactory"
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1829 ids="{$river_id};{$name}:OUT={$OUT}"/>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1830 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1831 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1832 </dc:macro>
5466
ba1bf40a9787 Restructure datacage to have a route_data folder
Andre Heinecke <aheinecke@intevation.de>
parents: 5464
diff changeset
1833
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1834 <dc:macro name="flood-map-gaugelocations">
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1835 <gauge_points factory="externalwmsfactory" ids="http://www.pegelonline.wsv.de/webservices/gis/wms;Pegelpunkte;Pegelpunkte (WSV):OUT={$OUT}"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1836 <gauge_names factory="externalwmsfactory" ids="http://www.pegelonline.wsv.de/webservices/gis/wms;Pegelnamen;Pegelnamen (WSV):OUT={$OUT}"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1837 <gauge_level factory="externalwmsfactory" ids="http://www.pegelonline.wsv.de/webservices/gis/wms;Pegelwasserstand;Aktueller Wasserstand (WSV):OUT={$OUT}"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1838 <gauge_tendency factory="externalwmsfactory" ids="http://www.pegelonline.wsv.de/webservices/gis/wms;TendenzWasserstand;Tendenz des Wasserstands (WSV):OUT={$OUT}"/>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1839 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1840
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1841 <dc:macro name="flood-map-uesk">
5534
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1842 <dc:context>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1843 <dc:statement>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1844 SELECT DISTINCT 1 from floodmaps where river_id = ${river_id}
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1845 </dc:statement>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1846 <dc:if test="dc:has-result()">
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1847 <uesk>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1848 <calculations>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1849 <dc:context>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1850 <dc:statement>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1851 SELECT DISTINCT 1 from floodmaps where river_id = ${river_id}
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1852 AND (kind = 112 OR kind = 111)
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1853 </dc:statement>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1854 <dc:if test="dc:has-result()">
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1855 <current>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1856 <dc:context>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1857 <dc:statement>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1858 SELECT DISTINCT name AS name
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1859 FROM floodmaps
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1860 WHERE river_id = ${river_id} AND kind = 111
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1861 </dc:statement>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1862 <dc:if test="dc:has-result()">
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1863 <bfg>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1864 <dc:for-each>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1865 <floodmaps factory="wmsfloodmapsfactory"
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1866 ids="{$river_id};{$name}:OUT={$OUT}"
5534
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1867 name="{$name}"/>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1868 </dc:for-each>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1869 </bfg>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1870 </dc:if>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1871 </dc:context>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1872 <dc:context>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1873 <dc:statement>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1874 SELECT DISTINCT name AS name
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1875 FROM floodmaps
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1876 WHERE river_id = ${river_id} AND kind = 112
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1877 </dc:statement>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1878 <dc:if test="dc:has-result()">
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1879 <federal>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1880 <dc:for-each>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1881 <floodmaps factory="wmsfloodmapsfactory"
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1882 ids="{$river_id};{$name}:OUT={$OUT}"
5534
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1883 name="{$name}"/>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1884 </dc:for-each>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1885 </federal>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1886 </dc:if>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1887 </dc:context>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1888 </current>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1889 </dc:if>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1890 </dc:context>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1891 <dc:context>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1892 <dc:statement>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1893 SELECT DISTINCT 1 from floodmaps where river_id = ${river_id}
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1894 AND (kind = 122 OR kind = 121)
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1895 </dc:statement>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1896 <dc:if test="dc:has-result()">
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1897 <potential>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1898 <dc:context>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1899 <dc:statement>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1900 SELECT DISTINCT name AS name
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1901 FROM floodmaps
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1902 WHERE river_id = ${river_id} AND kind = 121
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1903 </dc:statement>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1904 <dc:if test="dc:has-result()">
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1905 <bfg>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1906 <dc:for-each>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1907 <floodmaps factory="wmsfloodmapsfactory"
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1908 ids="{$river_id};{$name}:OUT={$OUT}"
5534
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1909 name="{$name}"/>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1910 </dc:for-each>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1911 </bfg>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1912 </dc:if>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1913 </dc:context>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1914 <dc:context>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1915 <dc:statement>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1916 SELECT DISTINCT
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1917 name AS name
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1918 FROM floodmaps
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1919 WHERE river_id = ${river_id} AND kind = 122
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1920 </dc:statement>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1921 <dc:if test="dc:has-result()">
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1922 <federal>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1923 <dc:for-each>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1924 <floodmaps factory="wmsfloodmapsfactory"
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1925 ids="{$river_id};{$name}:OUT={$OUT}"
5534
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1926 name="{$name}"/>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1927 </dc:for-each>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1928 </federal>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1929 </dc:if>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1930 </dc:context>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1931 </potential>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1932 </dc:if>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1933 </dc:context>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1934 </calculations>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1935 <dc:context>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1936 <dc:statement>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1937 SELECT DISTINCT
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1938 source AS source
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1939 FROM floodmaps
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1940 WHERE river_id = ${river_id} AND kind = 200
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1941 </dc:statement>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1942 <dc:if test="dc:has-result()">
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1943 <measurements>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1944 <dc:for-each>
5534
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1945 <year name="{$source}">
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1946 <dc:context>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1947 <dc:statement>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1948 SELECT DISTINCT
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1949 name AS name
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1950 FROM floodmaps
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1951 WHERE river_id = ${river_id} AND kind = 200 AND source =
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1952 ${source}
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1953 </dc:statement>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1954 <dc:for-each>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1955 <floodmaps factory="wmsfloodmapsfactory"
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1956 ids="{$river_id};{$name}:OUT={$OUT}"
5534
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1957 name="{$name}"/>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1958 </dc:for-each>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1959 </dc:context>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1960 </year>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1961 </dc:for-each>
5534
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1962 </measurements>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1963 </dc:if>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1964 </dc:context>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1965 </uesk>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1966 </dc:if>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1967 </dc:context>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1968 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1969
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1970 <dc:macro name="flood-map-routing">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1971 <qps>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1972 <dc:call-macro name="flood-map-qps"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1973 </qps>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1974 <dc:call-macro name="flood-map-fixpoints"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1975 <dc:call-macro name="flood-map-km"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1976 <axis>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1977 <dc:call-macro name="flood-map-riveraxis"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1978 </axis>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1979 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1980
5547
38713f32a785 Add Floodmarks and all specified WMS services to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5534
diff changeset
1981 <dc:macro name="floodmarks">
38713f32a785 Add Floodmarks and all specified WMS services to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5534
diff changeset
1982 <dc:context>
38713f32a785 Add Floodmarks and all specified WMS services to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5534
diff changeset
1983 <dc:statement>
38713f32a785 Add Floodmarks and all specified WMS services to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5534
diff changeset
1984 SELECT DISTINCT
38713f32a785 Add Floodmarks and all specified WMS services to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5534
diff changeset
1985 coalesce(CAST (year AS VARCHAR(64)), 'Unbekanntes Jahr') as year
38713f32a785 Add Floodmarks and all specified WMS services to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5534
diff changeset
1986 FROM flood_marks
38713f32a785 Add Floodmarks and all specified WMS services to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5534
diff changeset
1987 WHERE river_id = ${river_id}
38713f32a785 Add Floodmarks and all specified WMS services to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5534
diff changeset
1988 </dc:statement>
38713f32a785 Add Floodmarks and all specified WMS services to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5534
diff changeset
1989 <dc:if test="dc:has-result()">
38713f32a785 Add Floodmarks and all specified WMS services to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5534
diff changeset
1990 <floodmarks>
38713f32a785 Add Floodmarks and all specified WMS services to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5534
diff changeset
1991 <dc:for-each>
38713f32a785 Add Floodmarks and all specified WMS services to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5534
diff changeset
1992 <floodmark name="{$year}"
38713f32a785 Add Floodmarks and all specified WMS services to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5534
diff changeset
1993 factory="wmsfloodmarkfactory"
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1994 ids="{$river_id};{$year};{$year}:OUT={$OUT}"/>
5547
38713f32a785 Add Floodmarks and all specified WMS services to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5534
diff changeset
1995 </dc:for-each>
38713f32a785 Add Floodmarks and all specified WMS services to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5534
diff changeset
1996 </floodmarks>
38713f32a785 Add Floodmarks and all specified WMS services to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5534
diff changeset
1997 </dc:if>
38713f32a785 Add Floodmarks and all specified WMS services to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5534
diff changeset
1998 </dc:context>
38713f32a785 Add Floodmarks and all specified WMS services to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5534
diff changeset
1999 </dc:macro>
38713f32a785 Add Floodmarks and all specified WMS services to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5534
diff changeset
2000
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2001 <dc:macro name="flood-map-complete">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2002 <buildings>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2003 <dc:call-macro name="flood-map-buildings"/>
5761
4416dd518103 Remove OSM Intevation.de background layer from datacage :(
Andre Heinecke <aheinecke@intevation.de>
parents: 5760
diff changeset
2004 </buildings>
4416dd518103 Remove OSM Intevation.de background layer from datacage :(
Andre Heinecke <aheinecke@intevation.de>
parents: 5760
diff changeset
2005 <catchments>
4416dd518103 Remove OSM Intevation.de background layer from datacage :(
Andre Heinecke <aheinecke@intevation.de>
parents: 5760
diff changeset
2006 <catchment_wms factory="externalwmsfactory"
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2007 ids="http://geoportal.bafg.de/wmsproxy/INSPIRE/DrainageBasin;HY.PHYSICALWATERS.CATCHMENTS;Einzugsgebiete (WMS):OUT={$OUT}" />
5761
4416dd518103 Remove OSM Intevation.de background layer from datacage :(
Andre Heinecke <aheinecke@intevation.de>
parents: 5760
diff changeset
2008 <gaugelocations>
4416dd518103 Remove OSM Intevation.de background layer from datacage :(
Andre Heinecke <aheinecke@intevation.de>
parents: 5760
diff changeset
2009 <dc:call-macro name="flood-map-gaugelocations"/>
4416dd518103 Remove OSM Intevation.de background layer from datacage :(
Andre Heinecke <aheinecke@intevation.de>
parents: 5760
diff changeset
2010 </gaugelocations>
4416dd518103 Remove OSM Intevation.de background layer from datacage :(
Andre Heinecke <aheinecke@intevation.de>
parents: 5760
diff changeset
2011 </catchments>
5547
38713f32a785 Add Floodmarks and all specified WMS services to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5534
diff changeset
2012 <dc:call-macro name="floodmarks"/>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2013 <hws>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2014 <dc:call-macro name="hwslines"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2015 <dc:call-macro name="hwspoints"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2016 </hws>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2017 <route_data>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2018 <dc:call-macro name="flood-map-routing"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2019 </route_data>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2020 <hydrboundaries>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2021 <dc:call-macro name="flood-map-floodplain"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2022 <dc:call-macro name="flood-map-hydr-boundaries"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2023 </hydrboundaries>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2024 <dc:call-macro name="flood-map-uesk"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2025 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2026
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
2027 </dc:if>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2028
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
2029 <dc:macro name="bed-heights-single">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
2030 <single>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
2031 <dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
2032 <dc:statement>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2033 SELECT id AS bedh_id,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2034 year AS bedh_year,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2035 description AS bedh_descr
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2036 FROM bed_height_single WHERE river_id = ${river_id}
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
2037 </dc:statement>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
2038 <dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2039 <height factory="bedheight"
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2040 ids="bedheight-single-{$bedh_id}-{$bedh_year}:OUT={$OUT}"
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2041 description="{$bedh_descr}"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
2042 </dc:for-each>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
2043 </dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
2044 </single>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
2045 </dc:macro>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2046
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
2047 <dc:macro name="bed-heights-epoch">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
2048 <epoch>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
2049 <dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
2050 <dc:statement>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
2051 SELECT id AS bedh_id,
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
2052 time_interval_id AS bedh_interval_id,
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
2053 description AS bedh_descr
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
2054 FROM bed_height_epoch WHERE river_id = ${river_id}
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
2055 </dc:statement>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
2056 <dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2057 <height factory="bedheight"
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2058 ids="bedheight-epoch-{$bedh_id}-{$bedh_interval_id}:OUT={$OUT}"
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2059 description="{$bedh_descr}"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
2060 </dc:for-each>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
2061 </dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
2062 </epoch>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
2063 </dc:macro>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2064
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
2065 </dc:for-each>
1181
dd59431d648f Repaired datacage configuration. The system specific stuff is also displayed if a user-id is given.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 1097
diff changeset
2066 </dc:context>
dd59431d648f Repaired datacage configuration. The system specific stuff is also displayed if a user-id is given.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 1097
diff changeset
2067 </dc:macro>
dd59431d648f Repaired datacage configuration. The system specific stuff is also displayed if a user-id is given.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 1097
diff changeset
2068
1046
0a5eff5511b1 Fixed flys/issue262: Unified user and system datacage template
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
2069 <dc:choose>
0a5eff5511b1 Fixed flys/issue262: Unified user and system datacage template
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
2070 <dc:comment>
0a5eff5511b1 Fixed flys/issue262: Unified user and system datacage template
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
2071 User specific part
0a5eff5511b1 Fixed flys/issue262: Unified user and system datacage template
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
2072 ------------------
0a5eff5511b1 Fixed flys/issue262: Unified user and system datacage template
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
2073 </dc:comment>
5598
989c0d196bfe Do not show old calculations in hws datacage selection
Andre Heinecke <aheinecke@intevation.de>
parents: 5597
diff changeset
2074 <dc:when test="dc:contains($parameters, 'user-id') and
989c0d196bfe Do not show old calculations in hws datacage selection
Andre Heinecke <aheinecke@intevation.de>
parents: 5597
diff changeset
2075 not(dc:contains($artifact-outs, 'floodmap-hws'))">
1657
91d038c7aae5 Bugfix: #328 Improved datacage configuration and labels for selected waterlevels.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 1186
diff changeset
2076
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2077 <old_calculations>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2078
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2079 <dc:comment><!-- <dc:macro name="load-user">--></dc:comment>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2080 <dc:call-macro name="user-range">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2081 <dc:context connection="user">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2082 <dc:comment> Get the user and collection-id. </dc:comment>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2083 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2084 SELECT u.id AS user_id, c.id AS collection_id, c.name AS collection_name
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2085 FROM collections c JOIN users u ON c.user_id = u.id
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2086 WHERE u.gid = CAST(${user-id} AS uuid)
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2087 ORDER BY c.creation DESC
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2088 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2089
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2090 <dc:macro name="range-filter">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2091 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2092 SELECT m.id AS a_id,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2093 m.state AS a_state,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2094 m.gid AS a_gid,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2095 m.creation AS a_creation,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2096 COALESCE(ld_mode, '') AS ld_m,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2097 COALESCE(ld_locations, '') AS ld_l,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2098 COALESCE(ld_from, '') AS ld_f,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2099 COALESCE(ld_to, '') AS ld_t
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2100 FROM master_artifacts_range m
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2101 WHERE m.collection_id = ${collection_id} AND m.gid &lt;&gt; CAST(${artifact-id} AS uuid)
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2102 AND EXISTS (
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2103 SELECT id FROM artifact_data ad WHERE ad.artifact_id = m.id AND k = 'river' AND v = ${river})
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2104 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2105 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2106 <dc:variable name="from" type="number" expr="dc:fromValue($ld_m, $ld_l, $ld_f)"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2107 <dc:variable name="to" type="number" expr="dc:toValue($ld_m, $ld_l, $ld_t)"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2108 <dc:if test="($from &gt;= $fromkm and $from &lt;= $tokm) or ($to &lt;= $tokm and $to &gt;= $fromkm) or ($from &lt;= $fromkm and $to &gt;= $tokm)">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2109 <dc:macro-body/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2110 </dc:if>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2111 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2112 </dc:macro>
5670
40e909e52e4e Cosmetics.
Raimund Renkert <rrenkert@intevation.de>
parents: 5669
diff changeset
2113
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2114 <!-- OFFICIAL LINES -->
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2115 <dc:macro name="officiallines_user">
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2116 <dc:comment comment=".wst -------------------------------"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2117 <officiallines>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2118 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2119 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2120 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2121 SELECT m.id AS a_id,
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2122 m.state AS a_state,
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2123 m.gid AS a_gid,
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2124 m.creation AS a_creation,
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2125 ardg.v AS gaugy,
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2126 arv.v AS wqsingle
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2127 FROM master_artifacts m,
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2128 artifact_data ardg,
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2129 artifact_data arv
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2130 WHERE m.collection_id = ${collection_id}
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2131 AND m.gid = CAST(${artifact-id} AS uuid)
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2132 AND ardg.artifact_id = m.id
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2133 AND ardg.k = 'ld_gaugename'
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2134 AND arv.artifact_id = m.id
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2135 AND arv.k = 'wq_single'
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2136 AND EXISTS (
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2137 SELECT id
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2138 FROM artifact_data ad
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2139 WHERE ad.artifact_id = m.id
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2140 AND k = 'river'
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2141 AND v = ${river})
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2142 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2143 <dc:for-each>
3307
81a98f360553 Very basic official lines in dc, malplaced.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3283
diff changeset
2144 <dc:context connection="system">
81a98f360553 Very basic official lines in dc, malplaced.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3283
diff changeset
2145 <dc:statement>
81a98f360553 Very basic official lines in dc, malplaced.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3283
diff changeset
2146 SELECT ol.wst_id AS wstid, ol.wst_column_pos AS wstcolpos, ol.name AS olname, ol.value AS oval
81a98f360553 Very basic official lines in dc, malplaced.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3283
diff changeset
2147 FROM official_q_values ol
81a98f360553 Very basic official lines in dc, malplaced.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3283
diff changeset
2148 WHERE ol.value = CAST(${wqsingle} AS NUMERIC(10,2)) AND ol.gauge_name = ${gaugy}
81a98f360553 Very basic official lines in dc, malplaced.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3283
diff changeset
2149 </dc:statement>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
2150 <dc:for-each>
3307
81a98f360553 Very basic official lines in dc, malplaced.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3283
diff changeset
2151 <dc:element name="${olname}">
81a98f360553 Very basic official lines in dc, malplaced.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3283
diff changeset
2152 <dc:attribute name="name" value="${olname}"/>
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2153 <dc:attribute name="ids" value="additionals-wstv-${wstcolpos}-${wstid}:OUT=${out}"/>
3307
81a98f360553 Very basic official lines in dc, malplaced.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3283
diff changeset
2154 <dc:attribute name="factory" value="staticwkms"/>
81a98f360553 Very basic official lines in dc, malplaced.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3283
diff changeset
2155 </dc:element>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
2156 </dc:for-each>
3307
81a98f360553 Very basic official lines in dc, malplaced.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3283
diff changeset
2157 </dc:context>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2158 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2159 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2160 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2161 </officiallines>
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2162 </dc:macro>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2163 <!-- END OFFICIAL LINES -->
1657
91d038c7aae5 Bugfix: #328 Improved datacage configuration and labels for selected waterlevels.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 1186
diff changeset
2164
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2165 <dc:comment>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2166 SHOW W-DIFFERENCES
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2167 </dc:comment>
1657
91d038c7aae5 Bugfix: #328 Improved datacage configuration and labels for selected waterlevels.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 1186
diff changeset
2168
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2169 <dc:macro name="differences">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2170 <differences>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2171 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2172 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2173 <dc:call-macro name="range-filter">
1879
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2174 <dc:context>
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2175 <dc:statement>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2176 SELECT a.gid AS aid, f.id AS fid, f.name AS facet_name, f.num AS facet_num, f.description AS facet_description
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2177 FROM outs AS o, facets AS f, artifacts AS a
1879
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2178 WHERE f.name = 'w_differences' and f.out_id = o.id and o.artifact_id = ${a_id} and a.id = ${a_id}
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2179 </dc:statement>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
2180 <dc:for-each>
1879
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2181 <dc:element name="${facet_name}">
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2182 <dc:attribute name="description" value="${facet_description}"/>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2183 <dc:attribute name="factory" value="winfo"/>
1879
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2184 <dc:attribute name="artifact-id" value="${aid}"/>
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2185 <dc:attribute name="ids" value="${aid}:OUT=${out}"/>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2186 <dc:attribute name="out" value="w_differences"/>
1879
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2187 </dc:element>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
2188 </dc:for-each>
1879
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2189 </dc:context>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2190 </dc:call-macro>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2191 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2192 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2193 </differences>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2194 </dc:macro>
1657
91d038c7aae5 Bugfix: #328 Improved datacage configuration and labels for selected waterlevels.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 1186
diff changeset
2195
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2196 <dc:comment>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2197 SHOW REFERENCE CURVE
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2198 </dc:comment>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2199
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2200 <dc:macro name="reference-curves">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2201 <reference_curves>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2202 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2203 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2204 <dc:call-macro name="user-range">
2722
36631f23acdf Allow loading of previous reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2721
diff changeset
2205 <dc:context>
36631f23acdf Allow loading of previous reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2721
diff changeset
2206 <dc:statement>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2207 SELECT a.gid AS aid, f.id AS fid, f.name AS facet_name, f.num AS facet_num, f.description AS facet_description
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2208 FROM outs AS o, facets AS f, artifacts AS a
2722
36631f23acdf Allow loading of previous reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2721
diff changeset
2209 WHERE f.name = 'reference_curve' and f.out_id = o.id and o.artifact_id = ${a_id} and a.id = ${a_id}
36631f23acdf Allow loading of previous reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2721
diff changeset
2210 </dc:statement>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
2211 <dc:for-each>
2722
36631f23acdf Allow loading of previous reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2721
diff changeset
2212 <dc:element name="${facet_name}">
36631f23acdf Allow loading of previous reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2721
diff changeset
2213 <dc:attribute name="description" value="${facet_description}"/>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2214 <dc:attribute name="factory" value="winfo"/>
2722
36631f23acdf Allow loading of previous reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2721
diff changeset
2215 <dc:attribute name="artifact-id" value="${aid}"/>
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2216 <dc:attribute name="ids" value="${aid}:OUT=${out}"/>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2217 <dc:attribute name="out" value="reference_curve"/>
2722
36631f23acdf Allow loading of previous reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2721
diff changeset
2218 </dc:element>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
2219 </dc:for-each>
2722
36631f23acdf Allow loading of previous reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2721
diff changeset
2220 </dc:context>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2221 </dc:call-macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2222 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2223 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2224 </reference_curves>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2225 </dc:macro>
2722
36631f23acdf Allow loading of previous reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2721
diff changeset
2226
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2227 <dc:comment>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2228 SHOW COMPUTED DISCHARGE CURVES
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2229 </dc:comment>
2722
36631f23acdf Allow loading of previous reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2721
diff changeset
2230
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2231 <dc:macro name="computed-discharge-curve">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2232 <computed_discharge_curves>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2233 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2234 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2235 <dc:call-macro name="range-filter">
1880
ebd16028efa3 Include computed discharge curves in dc conf.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1879
diff changeset
2236 <dc:context>
ebd16028efa3 Include computed discharge curves in dc conf.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1879
diff changeset
2237 <dc:statement>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2238 SELECT a.gid AS aid, f.id AS fid, f.name AS facet_name, f.num AS facet_num, f.description AS facet_description
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2239 FROM outs AS o, facets AS f, artifacts AS a
1880
ebd16028efa3 Include computed discharge curves in dc conf.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1879
diff changeset
2240 WHERE f.name = 'computed_discharge_curve.q' and f.out_id = o.id and o.artifact_id = ${a_id} and a.id = ${a_id}
ebd16028efa3 Include computed discharge curves in dc conf.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1879
diff changeset
2241 </dc:statement>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
2242 <dc:for-each>
1880
ebd16028efa3 Include computed discharge curves in dc conf.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1879
diff changeset
2243 <dc:element name="${facet_name}">
ebd16028efa3 Include computed discharge curves in dc conf.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1879
diff changeset
2244 <dc:attribute name="description" value="${facet_description}"/>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2245 <dc:attribute name="factory" value="winfo"/>
1880
ebd16028efa3 Include computed discharge curves in dc conf.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1879
diff changeset
2246 <dc:attribute name="artifact-id" value="${aid}"/>
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2247 <dc:attribute name="ids" value="${aid}:OUT=${out}"/>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2248 <dc:attribute name="out" value="computed_discharge_curve"/>
1880
ebd16028efa3 Include computed discharge curves in dc conf.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1879
diff changeset
2249 </dc:element>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
2250 </dc:for-each>
1880
ebd16028efa3 Include computed discharge curves in dc conf.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1879
diff changeset
2251 </dc:context>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2252 </dc:call-macro>
3579
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2253 </dc:context>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2254 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2255 </computed_discharge_curves>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2256 </dc:macro>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2257
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2258 <dc:comment>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2259 CROSS SECTION
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2260 </dc:comment>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2261
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2262 <dc:macro name="waterlevels">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2263 <waterlevels>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2264 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2265 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2266 <dc:call-macro name="range-filter">
2690
15c6f79ca3e2 Add duration_curve.q loading via datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2689
diff changeset
2267 <dc:context>
15c6f79ca3e2 Add duration_curve.q loading via datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2689
diff changeset
2268 <dc:statement>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2269 SELECT id AS out_id
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2270 FROM outs
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2271 WHERE artifact_id = ${a_id} AND name = 'cross_section'
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2272 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2273 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2274 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2275 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2276 SELECT name AS facet_name, num AS facet_num, description AS facet_description
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2277 FROM facets
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2278 WHERE out_id = ${out_id}
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2279 ORDER BY num ASC, name DESC
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2280 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2281 <longitudinal_section_columns description="{$river} {$a_creation}">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2282 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2283 <dc:element name="${facet_name}">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2284 <dc:attribute name="description" value="${facet_description}"/>
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2285 <dc:attribute name="ids" value="${facet_num}:OUT=${out}"/>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2286 <dc:attribute name="factory" value="winfo"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2287 <dc:attribute name="artifact-id" value="${a_gid}"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2288 <dc:attribute name="out" value="cross_section"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2289 </dc:element>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2290 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2291 </longitudinal_section_columns>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2292 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2293 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2294 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2295 </dc:call-macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2296 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2297 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2298 </waterlevels>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2299 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2300
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2301 <dc:macro name="longitudinal">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2302 <waterlevels>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2303 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2304 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2305 <dc:call-macro name="range-filter">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2306 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2307 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2308 SELECT id AS out_id
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2309 FROM outs
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2310 WHERE artifact_id = ${a_id} AND name = 'longitudinal_section'
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2311 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2312 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2313 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2314 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2315 SELECT name AS facet_name, num AS facet_num, description AS facet_description
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2316 FROM facets
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2317 WHERE out_id = ${out_id}
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2318 ORDER BY num ASC, name DESC
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2319 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2320 <longitudinal_section_columns description="{$river} {$a_creation}">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2321 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2322 <dc:element name="${facet_name}">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2323 <dc:attribute name="description" value="${facet_description}"/>
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2324 <dc:attribute name="ids" value="${facet_num}:OUT=${out}"/>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2325 <dc:attribute name="factory" value="winfo"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2326 <dc:attribute name="artifact-id" value="${a_gid}"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2327 <dc:attribute name="out" value="longitudinal_section"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2328 </dc:element>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2329 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2330 </longitudinal_section_columns>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2331 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2332 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2333 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2334 </dc:call-macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2335 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2336 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2337 </waterlevels>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2338 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2339
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2340 <dc:macro name="longitudinal-section">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2341 <waterlevels>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2342 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2343 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2344 <dc:call-macro name="range-filter">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2345 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2346 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2347 SELECT id AS out_id
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2348 FROM outs
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2349 WHERE artifact_id = ${a_id} AND name = 'fix_longitudinal_section_curve'
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2350 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2351 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2352 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2353 <dc:comment><!-- average und deviation ls_0 . ls_1 ...--></dc:comment>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2354 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2355 SELECT name AS facet_name, num AS facet_num, description AS facet_description
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2356 FROM facets
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2357 WHERE out_id = ${out_id} AND (
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2358 name LIKE 'fix_deviation_ls%' OR
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2359 name LIKE 'fix_sector_average_ls%' OR
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2360 name LIKE 'fix_analysis_events_ls%' OR
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2361 name LIKE 'fix_reference_events_ls%' )
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2362 ORDER BY num ASC, name DESC
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2363 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2364 <waterlevels description="{$river} {$a_creation} {$collection_name}">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2365 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2366 <dc:element name="${facet_name}">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2367 <dc:attribute name="description" value="${facet_description}"/>
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2368 <dc:attribute name="ids" value="${facet_num}:OUT=${out}"/>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2369 <dc:attribute name="factory" value="fixanalysis"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2370 <dc:attribute name="artifact-id" value="${a_gid}"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2371 <dc:attribute name="out" value="fix_longitudinal_section_curve"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2372 </dc:element>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2373 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2374 </waterlevels>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2375 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2376 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2377 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2378 </dc:call-macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2379 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2380 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2381 </waterlevels>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2382 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2383
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2384 <dc:macro name="delta-wt">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2385 <waterlevels>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2386 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2387 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2388 <dc:call-macro name="range-filter">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2389 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2390 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2391 SELECT id AS out_id
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2392 FROM outs
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2393 WHERE artifact_id = ${a_id} AND name = 'fix_deltawt_curve'
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2394 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2395 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2396 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2397 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2398 SELECT name AS facet_name, num AS facet_num, description AS facet_description
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2399 FROM facets
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2400 WHERE out_id = ${out_id} and (
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2401 name LIKE 'fix_sector_average_dwt%' OR
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2402 name LIKE 'fix_deviation_dwt%' OR
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2403 name = 'fix_analysis_events_dwt' OR
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2404 name = 'fix_reference_events_dwt' OR
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2405 name = 'fix_analysis_periods_dwt' )
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2406 ORDER BY num ASC, name DESC
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2407 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2408 <waterlevels description="{$river} {$a_creation} {$collection_name}">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2409 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2410 <dc:element name="${facet_name}">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2411 <dc:attribute name="description" value="${facet_description}"/>
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2412 <dc:attribute name="ids" value="${facet_num}:OUT=${out}"/>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2413 <dc:attribute name="factory" value="fixanalysis"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2414 <dc:attribute name="artifact-id" value="${a_gid}"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2415 <dc:attribute name="out" value="fix_deltawt_curve"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2416 </dc:element>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2417 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2418 </waterlevels>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2419 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2420 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2421 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2422 </dc:call-macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2423 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2424 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2425 </waterlevels>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2426 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2427
5758
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2428 <dc:macro name="delta-wt-ls">
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2429 <waterlevels>
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2430 <dc:for-each>
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2431 <dc:context>
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2432 <dc:call-macro name="range-filter">
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2433 <dc:context>
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2434 <dc:statement>
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2435 SELECT id AS out_id
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2436 FROM outs
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2437 WHERE artifact_id = ${a_id} AND name = 'fix_deltawt_curve'
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2438 </dc:statement>
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2439 <dc:for-each>
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2440 <dc:context>
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2441 <dc:statement>
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2442 SELECT name AS facet_name, num AS facet_num, description AS facet_description
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2443 FROM facets
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2444 WHERE out_id = ${out_id} and (
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2445 name LIKE 'fix_sector_average_dwt%' OR
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2446 name LIKE 'fix_deviation_dwt%')
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2447 ORDER BY num ASC, name DESC
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2448 </dc:statement>
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2449 <waterlevels description="{$river} {$a_creation} {$collection_name}">
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2450 <dc:for-each>
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2451 <dc:element name="${facet_name}">
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2452 <dc:attribute name="description" value="${facet_description}"/>
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2453 <dc:attribute name="ids" value="${facet_num}:OUT=${out}"/>
5758
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2454 <dc:attribute name="factory" value="fixanalysis"/>
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2455 <dc:attribute name="artifact-id" value="${a_gid}"/>
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2456 <dc:attribute name="out" value="fix_deltawt_curve"/>
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2457 </dc:element>
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2458 </dc:for-each>
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2459 </waterlevels>
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2460 </dc:context>
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2461 </dc:for-each>
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2462 </dc:context>
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2463 </dc:call-macro>
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2464 </dc:context>
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2465 </dc:for-each>
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2466 </waterlevels>
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2467 </dc:macro>
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2468
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2469 <dc:macro name="fix-derivate-curve">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2470 <waterlevels>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2471 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2472 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2473 <dc:call-macro name="range-filter">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2474 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2475 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2476 SELECT id AS out_id
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2477 FROM outs
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2478 WHERE artifact_id = ${a_id} AND name = 'fix_derivate_curve'
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2479 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2480 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2481 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2482 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2483 SELECT name AS facet_name, num AS facet_num, description AS facet_description
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2484 FROM facets
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2485 WHERE out_id = ${out_id} and name = 'fix_derivate_curve'
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2486 ORDER BY num ASC, name DESC
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2487 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2488 <waterlevels description="{$river} {$a_creation} {$collection_name}">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2489 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2490 <dc:element name="${facet_name}">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2491 <dc:attribute name="description" value="${facet_description}"/>
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2492 <dc:attribute name="ids" value="${facet_num}:OUT=${out}"/>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2493 <dc:attribute name="factory" value="fixanalysis"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2494 <dc:attribute name="artifact-id" value="${a_gid}"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2495 <dc:attribute name="out" value="fix_derivate_curve"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2496 </dc:element>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2497 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2498 </waterlevels>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2499 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2500 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2501 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2502 </dc:call-macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2503 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2504 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2505 </waterlevels>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2506 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2507
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2508 <dc:macro name="fix-wq-curve">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2509 <waterlevels>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2510 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2511 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2512 <dc:call-macro name="range-filter">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2513 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2514 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2515 SELECT id AS out_id
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2516 FROM outs
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2517 WHERE artifact_id = ${a_id} AND name = 'fix_wq_curve'
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2518 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2519 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2520 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2521 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2522 SELECT name AS facet_name, num AS facet_num, description AS facet_description
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2523 FROM facets
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2524 WHERE out_id = ${out_id} and (
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2525 name LIKE 'fix_sector_average_wq%' OR
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2526 name = 'fix_wq_curve' OR
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2527 name LIKE 'fix_analysis_events_wq%' OR
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2528 name LIKE 'fix_reference_events_wq%' )
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2529 ORDER BY num ASC, name DESC
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2530 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2531 <waterlevels description="{$river} {$a_creation} {$collection_name}">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2532 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2533 <dc:element name="${facet_name}">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2534 <dc:attribute name="description" value="${facet_description}"/>
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2535 <dc:attribute name="ids" value="${facet_num}:OUT=${out}"/>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2536 <dc:attribute name="factory" value="fixanalysis"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2537 <dc:attribute name="artifact-id" value="${a_gid}"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2538 <dc:attribute name="out" value="fix_wq_curve"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2539 </dc:element>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2540 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2541 </waterlevels>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2542 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2543 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2544 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2545 </dc:call-macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2546 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2547 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2548 </waterlevels>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2549 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2550
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2551 <dc:macro name="duration-curve">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2552 <computed_discharge_curves>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2553 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2554 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2555 <dc:call-macro name="range-filter">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2556 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2557 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2558 SELECT a.gid AS aid,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2559 f.id AS fid,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2560 f.name AS facet_name,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2561 f.num AS facet_num,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2562 f.description AS facet_description
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2563 FROM outs AS o, facets AS f, artifacts AS a
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2564 WHERE
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2565 (f.name = 'duration_curve.q' OR f.name = 'duration_curve.w') AND
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2566 f.out_id = o.id AND
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2567 o.artifact_id = ${a_id} AND
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2568 a.id = ${a_id}
2690
15c6f79ca3e2 Add duration_curve.q loading via datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2689
diff changeset
2569 </dc:statement>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
2570 <dc:for-each>
2690
15c6f79ca3e2 Add duration_curve.q loading via datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2689
diff changeset
2571 <dc:element name="${facet_name}">
15c6f79ca3e2 Add duration_curve.q loading via datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2689
diff changeset
2572 <dc:attribute name="description" value="${facet_description}"/>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2573 <dc:attribute name="factory" value="winfo"/>
2690
15c6f79ca3e2 Add duration_curve.q loading via datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2689
diff changeset
2574 <dc:attribute name="artifact-id" value="${aid}"/>
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2575 <dc:attribute name="ids" value="${aid}:OUT=${out}"/>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2576 <dc:attribute name="out" value="duration_curve"/>
2690
15c6f79ca3e2 Add duration_curve.q loading via datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2689
diff changeset
2577 </dc:element>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
2578 </dc:for-each>
2690
15c6f79ca3e2 Add duration_curve.q loading via datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2689
diff changeset
2579 </dc:context>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2580 </dc:call-macro>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2581 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2582 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2583 </computed_discharge_curves>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2584 </dc:macro>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2585
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2586 <dc:comment>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2587 WATERLEVELS - ONLY SHOW Ws
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2588 </dc:comment>
1879
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2589
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2590 <dc:comment><!-- TODO doesnt work nicely for fix/wq-diags. --></dc:comment>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2591
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2592 <dc:macro name="waterlevels-fix">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2593 <waterlevels>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2594 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2595 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2596 <dc:call-macro name="range-filter">
2096
bf598599782a Made old calculation results available for floodmaps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2086
diff changeset
2597 <dc:context>
bf598599782a Made old calculation results available for floodmaps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2086
diff changeset
2598 <dc:statement>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2599 SELECT id AS out_id
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2600 FROM outs
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2601 WHERE artifact_id = ${a_id} AND name = 'longitudinal_section'
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2602 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2603 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2604 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2605 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2606 SELECT name AS facet_name, num AS facet_num, description AS facet_description
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2607 FROM facets
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2608 WHERE out_id = ${out_id} and name = 'longitudinal_section.w'
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2609 ORDER BY num ASC, name DESC
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2610 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2611 <waterlevels description="{$river} {$a_creation} {$collection_name}">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2612 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2613 <dc:element name="${facet_name}">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2614 <dc:attribute name="description" value="${facet_description}"/>
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2615 <dc:attribute name="ids" value="${facet_num}:OUT=${out}"/>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2616 <dc:attribute name="factory" value="winfo"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2617 <dc:attribute name="artifact-id" value="${a_gid}"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2618 <dc:attribute name="out" value="longitudinal_section"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2619 </dc:element>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2620 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2621 </waterlevels>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2622 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2623 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2624 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2625 </dc:call-macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2626 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2627 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2628 </waterlevels>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2629 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2630
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2631 <dc:comment>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2632 SHOW FLOODMAPS
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2633 </dc:comment>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2634
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2635 <dc:macro name="flood-map">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2636 <floodmap>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2637 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2638 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2639 <dc:call-macro name="range-filter">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2640 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2641 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2642 SELECT a.gid AS aid,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2643 f.id AS fid,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2644 f.name AS facet_name,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2645 f.num AS facet_num,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2646 f.description AS facet_description
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2647 FROM outs AS o, facets AS f, artifacts AS a
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2648 WHERE f.name = 'floodmap.wsplgen' AND
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2649 f.out_id = o.id AND
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2650 o.artifact_id = ${a_id} AND
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2651 a.id = ${a_id}
2096
bf598599782a Made old calculation results available for floodmaps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2086
diff changeset
2652 </dc:statement>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
2653 <dc:for-each>
2096
bf598599782a Made old calculation results available for floodmaps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2086
diff changeset
2654 <dc:element name="${facet_name}">
bf598599782a Made old calculation results available for floodmaps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2086
diff changeset
2655 <dc:attribute name="description" value="${facet_description}"/>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2656 <dc:attribute name="factory" value="winfo"/>
2096
bf598599782a Made old calculation results available for floodmaps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2086
diff changeset
2657 <dc:attribute name="artifact-id" value="${aid}"/>
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2658 <dc:attribute name="ids" value="${aid}:OUT=${out}"/>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2659 <dc:attribute name="out" value="floodmap"/>
2096
bf598599782a Made old calculation results available for floodmaps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2086
diff changeset
2660 </dc:element>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
2661 </dc:for-each>
2096
bf598599782a Made old calculation results available for floodmaps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2086
diff changeset
2662 </dc:context>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2663 </dc:call-macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2664 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2665 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2666 </floodmap>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2667 </dc:macro>
2096
bf598599782a Made old calculation results available for floodmaps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2086
diff changeset
2668
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2669 <dc:comment>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2670 MINFO bedheight middle
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2671 </dc:comment>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2672
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2673 <dc:macro name="bed-height">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2674 <fix_vollmer_wq_curve>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2675 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2676 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2677 <dc:call-macro name="range-filter">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2678 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2679 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2680 SELECT a.gid AS aid,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2681 f.id AS fid,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2682 f.name AS facet_name,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2683 f.num AS facet_num,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2684 f.description AS facet_description
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2685 FROM outs AS o, facets AS f, artifacts AS a
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2686 WHERE (
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2687 f.name = 'longitudinal_section.w' OR
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2688 f.name = 'heightmarks_points'
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2689 ) AND f.out_id = o.id AND o.artifact_id = ${a_id} AND a.id = ${a_id}
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2690 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2691 <fix_vollmer_wq_curve description="{$river} {$a_creation} {$collection_name}">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2692 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2693 <dc:element name="${facet_name}">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2694 <dc:attribute name="description" value="${facet_description}"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2695 <dc:attribute name="factory" value="fixanalysis"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2696 <dc:attribute name="artifact-id" value="${aid}"/>
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2697 <dc:attribute name="ids" value="${facet_num}:OUT=${out}"/>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2698 <dc:attribute name="out" value="longitudinal_section"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2699 </dc:element>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2700 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2701 </fix_vollmer_wq_curve>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2702 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2703 </dc:call-macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2704 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2705 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2706 </fix_vollmer_wq_curve>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2707 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2708
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2709 <dc:macro name="floodmap-hws-user">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2710 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2711 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2712 SELECT id AS out_id
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2713 FROM outs
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2714 WHERE artifact_id = ${a_id} AND name = 'floodmap'
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2715 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2716 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2717 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2718 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2719 SELECT name AS facet_name,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2720 num AS facet_num,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2721 description AS facet_description
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2722 FROM facets
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2723 WHERE out_id = ${out_id} AND name = 'floodmap.usershape'
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2724 ORDER BY num ASC, name DESC
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2725 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2726 <own-hws>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2727 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2728 <dc:element name="${facet_name}">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2729 <dc:attribute name="description" value="${facet_description}"/>
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2730 <dc:attribute name="ids" value="${facet_num}:OUT=${out}"/>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2731 <dc:attribute name="factory" value="winfo"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2732 <dc:attribute name="artifact-id" value="${a_gid}"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2733 <dc:attribute name="out" value="floodmap"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2734 </dc:element>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2735 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2736 </own-hws>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2737 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2738 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2739 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2740 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2741
5549
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2742 <dc:macro name="bedquality-bed">
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2743 <bed_quality_bed>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2744 <dc:for-each>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2745 <dc:context>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2746 <dc:call-macro name="range-filter">
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2747 <dc:context>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2748 <dc:statement>
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2749 SELECT id AS oid
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2750 FROM outs AS o
5549
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2751 WHERE
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2752 o.artifact_id = ${a_id} AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2753 o.name='bed_longitudinal_section'
5549
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2754 </dc:statement>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2755 <dc:for-each>
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2756 <quality-bed description="{$river} {$a_creation} {$collection_name}">
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2757 <dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2758 <dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2759 SELECT a.gid AS aid,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2760 f.id AS fid,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2761 f.name AS facet_name,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2762 f.num AS facet_num,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2763 f.description AS facet_description
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2764 FROM outs AS o, facets AS f, artifacts AS a
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2765 WHERE
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2766 (f.name = 'bed_longitudinal_section.bed_diameter_toplayer'
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2767 OR f.name = 'bed_longitudinal_section.bed_diameter_sublayer') AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2768 f.out_id = o.id AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2769 o.artifact_id = ${a_id} AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2770 a.id = ${a_id}
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2771 </dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2772 <dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2773 <dc:element name="${facet_name}">
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2774 <dc:attribute name="factory" value="minfo"/>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2775 <dc:attribute name="description" value="${facet_description}"/>
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2776 <dc:attribute name="ids" value="${facet_num}-${facet_name}:OUT=${out}"/>
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2777 <dc:attribute name="artifact-id" value="${aid}"/>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2778 <dc:attribute name="out" value="bed_longitudinal_section"/>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2779 </dc:element>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2780 </dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2781 </dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2782 </quality-bed>
5549
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2783 </dc:for-each>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2784 </dc:context>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2785 </dc:call-macro>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2786 </dc:context>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2787 </dc:for-each>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2788 </bed_quality_bed>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2789 </dc:macro>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2790
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2791 <dc:macro name="bedquality-load">
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2792 <bed_quality_load>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2793 <dc:for-each>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2794 <dc:context>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2795 <dc:call-macro name="range-filter">
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2796 <dc:context>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2797 <dc:statement>
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2798 SELECT id AS oid
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2799 FROM outs AS o
5549
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2800 WHERE
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2801 o.artifact_id = ${a_id} AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2802 o.name='bed_longitudinal_section'
5549
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2803 </dc:statement>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2804 <dc:for-each>
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2805 <quality-load description="{$river} {$a_creation} {$collection_name}">
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2806 <dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2807 <dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2808 SELECT a.gid AS aid,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2809 f.id AS fid,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2810 f.name AS facet_name,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2811 f.num AS facet_num,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2812 f.description AS facet_description
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2813 FROM outs AS o, facets AS f, artifacts AS a
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2814 WHERE
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2815 f.name = 'bed_longitudinal_section.bedload_diameter' AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2816 f.out_id = o.id AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2817 o.artifact_id = ${a_id} AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2818 a.id = ${a_id}
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2819 </dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2820 <dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2821 <dc:element name="${facet_name}">
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2822 <dc:attribute name="factory" value="minfo"/>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2823 <dc:attribute name="description" value="${facet_description}"/>
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2824 <dc:attribute name="ids" value="${facet_num}-${facet_name}:OUT=${out}"/>
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2825 <dc:attribute name="artifact-id" value="${aid}"/>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2826 <dc:attribute name="out" value="bed_longitudinal_section"/>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2827 </dc:element>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2828 </dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2829 </dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2830 </quality-load>
5549
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2831 </dc:for-each>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2832 </dc:context>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2833 </dc:call-macro>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2834 </dc:context>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2835 </dc:for-each>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2836 </bed_quality_load>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2837 </dc:macro>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2838
5591
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2839 <dc:macro name="bedquality-density">
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2840 <bed_quality_density>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2841 <dc:for-each>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2842 <dc:context>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2843 <dc:call-macro name="range-filter">
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2844 <dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2845 <dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2846 SELECT id AS oid
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2847 FROM outs AS o
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2848 WHERE
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2849 o.artifact_id = ${a_id} AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2850 o.name='bed_longitudinal_section'
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2851 </dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2852 <dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2853 <density description="{$river} {$a_creation} {$collection_name}">
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2854 <dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2855 <dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2856 SELECT a.gid AS aid,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2857 f.id AS fid,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2858 f.name AS facet_name,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2859 f.num AS facet_num,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2860 f.description AS facet_description
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2861 FROM outs AS o, facets AS f, artifacts AS a
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2862 WHERE
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2863 (f.name = 'bed_longitudinal_section.sediment_density_toplayer' OR
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2864 f.name = 'bed_longitudinal_section.sediment_density_sublayer') AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2865 f.out_id = o.id AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2866 o.artifact_id = ${a_id} AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2867 a.id = ${a_id}
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2868 </dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2869 <dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2870 <dc:element name="${facet_name}">
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2871 <dc:attribute name="factory" value="minfo"/>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2872 <dc:attribute name="description" value="${facet_description}"/>
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2873 <dc:attribute name="ids" value="${facet_num}-${facet_name}:OUT=${out}"/>
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2874 <dc:attribute name="artifact-id" value="${aid}"/>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2875 <dc:attribute name="out" value="bed_longitudinal_section"/>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2876 </dc:element>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2877 </dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2878 </dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2879 </density>
5591
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2880 </dc:for-each>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2881 </dc:context>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2882 </dc:call-macro>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2883 </dc:context>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2884 </dc:for-each>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2885 </bed_quality_density>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2886 </dc:macro>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2887
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2888 <dc:macro name="bedquality-porosity">
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2889 <bed_quality_porosity>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2890 <dc:for-each>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2891 <dc:context>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2892 <dc:call-macro name="range-filter">
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2893 <dc:context>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2894 <dc:statement>
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2895 SELECT id AS oid
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2896 FROM outs AS o
5591
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2897 WHERE
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2898 o.artifact_id = ${a_id} AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2899 o.name='bed_longitudinal_section'
5591
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2900 </dc:statement>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2901 <dc:for-each>
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2902 <porosity description="{$river} {$a_creation} {$collection_name}">
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2903 <dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2904 <dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2905 SELECT a.gid AS aid,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2906 f.id AS fid,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2907 f.name AS facet_name,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2908 f.num AS facet_num,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2909 f.description AS facet_description
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2910 FROM outs AS o, facets AS f, artifacts AS a
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2911 WHERE
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2912 (f.name = 'bed_longitudinal_section.porosity_toplayer' OR
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2913 f.name = 'bed_longitudinal_section.porosity_sublayer') AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2914 f.out_id = o.id AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2915 o.artifact_id = ${a_id} AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2916 a.id = ${a_id}
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2917 </dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2918 <dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2919 <dc:element name="${facet_name}">
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2920 <dc:attribute name="factory" value="minfo"/>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2921 <dc:attribute name="description" value="${facet_description}"/>
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2922 <dc:attribute name="ids" value="${facet_num}-${facet_name}:OUT=${out}"/>
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2923 <dc:attribute name="artifact-id" value="${aid}"/>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2924 <dc:attribute name="out" value="bed_longitudinal_section"/>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2925 </dc:element>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2926 </dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2927 </dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2928 </porosity>
5591
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2929 </dc:for-each>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2930 </dc:context>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2931 </dc:call-macro>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2932 </dc:context>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2933 </dc:for-each>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2934 </bed_quality_porosity>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2935 </dc:macro>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2936
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2937 <dc:macro name="flow-velocity">
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2938 <flow-velocity>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2939 <dc:for-each>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2940 <dc:context>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2941 <dc:call-macro name="range-filter">
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2942 <dc:context>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2943 <dc:statement>
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2944 SELECT id AS oid
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2945 FROM outs AS o
5591
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2946 WHERE
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2947 o.artifact_id = ${a_id} and o.name='flow_velocity'
5591
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2948 </dc:statement>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2949 <dc:for-each>
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2950 <flow description="{$river} {$a_creation} {$collection_name}">
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2951 <dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2952 <dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2953 SELECT a.gid AS aid,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2954 f.id AS fid,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2955 f.name AS facet_name,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2956 f.num AS facet_num,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2957 f.description AS facet_description
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2958 FROM outs AS o, facets AS f, artifacts AS a
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2959 WHERE
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2960 (f.name = 'flow_velocity.totalchannel' OR
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2961 f.name = 'flow_velocity.mainchannel' OR
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2962 f.name = 'flow_velocity.totalchannel.filtered' OR
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2963 f.name = 'flow_velocity.mainchannel.filtered') AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2964 f.out_id = o.id AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2965 o.artifact_id = ${a_id} AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2966 a.id = ${a_id}
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2967 </dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2968 <dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2969 <dc:element name="${facet_name}">
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2970 <dc:attribute name="factory" value="minfo"/>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2971 <dc:attribute name="description" value="${facet_description}"/>
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2972 <dc:attribute name="ids" value="${facet_num}-${facet_name}:OUT=${out}"/>
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2973 <dc:attribute name="artifact-id" value="${aid}"/>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2974 <dc:attribute name="out" value="flow_velocity"/>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2975 </dc:element>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2976 </dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2977 </dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2978 </flow>
5591
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2979 </dc:for-each>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2980 </dc:context>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2981 </dc:call-macro>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2982 </dc:context>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2983 </dc:for-each>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2984 </flow-velocity>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2985 </dc:macro>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2986
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2987 <dc:macro name="sediment-load">
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2988 <sediment-load>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2989 <dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2990 <dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2991 <dc:call-macro name="range-filter">
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2992 <dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2993 <dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2994 SELECT id AS oid
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2995 FROM outs AS o
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2996 WHERE
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2997 o.artifact_id = ${a_id} and o.name='sedimentload_ls'
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2998 </dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2999 <dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3000 <load description="{$river} {$a_creation} {$collection_name}">
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3001 <dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3002 <dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3003 SELECT a.gid AS aid,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3004 f.id AS fid,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3005 f.name AS facet_name,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3006 f.num AS facet_num,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3007 f.description AS facet_description
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3008 FROM outs AS o, facets AS f, artifacts AS a
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3009 WHERE f.name LIKE 'sedimentload%' AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3010 f.out_id = o.id AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3011 o.artifact_id = ${a_id} AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3012 a.id = ${a_id}
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3013 </dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3014 <dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3015 <dc:element name="${facet_name}">
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3016 <dc:attribute name="factory" value="minfo"/>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3017 <dc:attribute name="description" value="${facet_description}"/>
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3018 <dc:attribute name="ids" value="${facet_num}-${facet_name}:OUT=${out}"/>
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3019 <dc:attribute name="artifact-id" value="${aid}"/>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3020 <dc:attribute name="out" value="sedimentload_ls"/>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3021 </dc:element>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3022 </dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3023 </dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3024 </load>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3025 </dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3026 </dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3027 </dc:call-macro>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3028 </dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3029 </dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3030 </sediment-load>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3031 </dc:macro>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3032
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3033 <dc:macro name="bedheight-differences">
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3034 <bedheight-differences>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3035 <dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3036 <dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3037 <dc:call-macro name="range-filter">
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3038 <dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3039 <dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3040 SELECT id AS oid,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3041 name AS o_name
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3042 FROM outs AS o
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3043 WHERE
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3044 o.artifact_id = ${a_id} AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3045 (o.name = 'bed_difference_year' OR
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3046 o.name = 'bed_differnece_epoch')
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3047 </dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3048 <dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3049 <difference description="{$river} {$a_creation} {$collection_name}">
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3050 <dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3051 <dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3052 SELECT a.gid AS aid,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3053 f.id AS fid,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3054 f.name AS facet_name,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3055 f.num AS facet_num,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3056 f.description AS facet_description
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3057 FROM outs AS o, facets AS f, artifacts AS a
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3058 WHERE (f.name LIKE 'bedheight_difference.year%' OR
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3059 f.name LIKE 'bedheight_difference.epoch%') AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3060 f.out_id = o.id AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3061 o.artifact_id = ${a_id} AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3062 a.id = ${a_id}
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3063 </dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3064 <dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3065 <dc:element name="${facet_name}">
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3066 <dc:attribute name="factory" value="minfo"/>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3067 <dc:attribute name="description" value="${facet_description}"/>
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3068 <dc:attribute name="ids" value="${facet_num}-${facet_name}:OUT=${out}"/>
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3069 <dc:attribute name="artifact-id" value="${aid}"/>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3070 <dc:choose>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3071 <dc:when test="dc:contains($o_name, 'bed_difference_year')">
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3072 <dc:attribute name="out" value="bed_difference_year"/>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3073 </dc:when>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3074 <dc:otherwise>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3075 <dc:attribute name="out" value="bed_difference_epoch"/>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3076 </dc:otherwise>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3077 </dc:choose>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3078 </dc:element>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3079 </dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3080 </dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3081 </difference>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3082 </dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3083 </dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3084 </dc:call-macro>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3085 </dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3086 </dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3087 </bedheight-differences>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3088 </dc:macro>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3089
5669
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3090 <dc:macro name="fixings-year">
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3091 <fixings>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3092 <dc:for-each>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3093 <dc:context>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3094 <dc:call-macro name="range-filter">
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3095 <dc:context>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3096 <dc:statement>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3097 SELECT ou.id AS oid
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3098 FROM outs AS ou, artifacts AS ar
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3099 WHERE
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3100 ar.state = 'state.fix.vollmer.compute' AND
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3101 ou.name = 'longitudinal_section'
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3102 </dc:statement>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3103 <dc:for-each>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3104 <fix description="{$river} {$a_id} {$a_creation} {$collection_name}">
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3105 <dc:context>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3106 <dc:statement>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3107 SELECT a.gid AS aid,
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3108 f.id AS fid,
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3109 f.name AS facet_name,
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3110 f.num AS facet_num,
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3111 f.description AS facet_description
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3112 FROM outs AS o, facets AS f, artifacts AS a
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3113 WHERE f.name = 'longitudinal_section.w' AND
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3114 f.out_id = o.id AND
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3115 o.artifact_id = ${a_id} AND
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3116 a.id = ${a_id}
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3117 </dc:statement>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3118 <dc:for-each>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3119 <dc:element name="${facet_name}">
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3120 <dc:attribute name="factory" value="fixanalysis"/>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3121 <dc:attribute name="description" value="${facet_description}"/>
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3122 <dc:attribute name="ids" value="${facet_num}-${facet_name}:OUT=${out}"/>
5669
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3123 <dc:attribute name="artifact-id" value="${aid}"/>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3124 <dc:attribute name="out" value="longitudinal_section"/>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3125 </dc:element>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3126 </dc:for-each>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3127 </dc:context>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3128 </fix>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3129 </dc:for-each>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3130 </dc:context>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3131 </dc:call-macro>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3132 </dc:context>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3133 </dc:for-each>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3134 </fixings>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3135 </dc:macro>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3136
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3137 <dc:macro name="waterlevels-discharge">
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3138 <waterlevels-discharge>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3139 <dc:for-each>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3140 <dc:context>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3141 <dc:call-macro name="range-filter">
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3142 <dc:context>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3143 <dc:statement>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3144 SELECT id AS oid
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3145 FROM outs AS o
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3146 WHERE
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3147 o.artifact_id = ${a_id} AND
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3148 o.name = 'discharge_longitudinal_section'
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3149 </dc:statement>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3150 <dc:for-each>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3151 <discharge description="{$oid} {$river} {$a_id} {$a_creation} {$collection_name}">
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3152 <dc:context>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3153 <dc:statement>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3154 SELECT a.gid AS aid,
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3155 f.id AS fid,
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3156 f.name AS facet_name,
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3157 f.num AS facet_num,
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3158 f.description AS facet_description
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3159 FROM outs AS o, facets AS f, artifacts AS a
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3160 WHERE f.name = 'discharge_longitudinal_section.w' AND
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3161 f.out_id = o.id AND
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3162 o.artifact_id = ${a_id} AND
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3163 a.id = ${a_id}
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3164 </dc:statement>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3165 <dc:for-each>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3166 <dc:element name="${facet_name}">
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3167 <dc:attribute name="factory" value="winfo"/>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3168 <dc:attribute name="description" value="${facet_description}"/>
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3169 <dc:attribute name="ids" value="${facet_num}-${facet_name}:OUT=${out}"/>
5669
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3170 <dc:attribute name="artifact-id" value="${aid}"/>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3171 <dc:attribute name="out" value="longitudinal_section"/>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3172 </dc:element>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3173 </dc:for-each>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3174 </dc:context>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3175 </discharge>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3176 </dc:for-each>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3177 </dc:context>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3178 </dc:call-macro>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3179 </dc:context>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3180 </dc:for-each>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3181 </waterlevels-discharge>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3182 </dc:macro>
5549
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
3183
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3184 <dc:iterate var="out" container="artifact-outs">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3185 <dc:choose>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3186 <dc:when test="$out = 'longitudinal_section'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3187 <dc:call-macro name="longitudinal"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3188 <dc:call-macro name="differences"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3189 <dc:call-macro name="officiallines_user"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3190 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3191 <dc:when test="$out = 'discharge_longitudinal_section'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3192 <dc:call-macro name="longitudinal"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3193 <dc:call-macro name="differences"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3194 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3195 <dc:when test="$out = 'w_differences'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3196 <dc:call-macro name="longitudinal"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3197 <dc:call-macro name="differences"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3198 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3199 <dc:when test="$out = 'fix_deltawt_curve'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3200 <dc:call-macro name="delta-wt"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3201 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3202 <dc:when test="$out = 'reference_curve'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3203 <dc:call-macro name="reference-curves"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3204 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3205 <dc:when test="$out = 'computed_discharge_curve'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3206 <dc:call-macro name="computed-discharge-curve"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3207 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3208 <dc:when test="$out = 'cross_section'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3209 <dc:call-macro name="waterlevels"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3210 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3211 <dc:when test="$out = 'fix_longitudinal_section_curve'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3212 <dc:call-macro name="longitudinal-section"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3213 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3214 <dc:when test="$out = 'fix_derivate_curve'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3215 <dc:call-macro name="fix-derivate-curve"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3216 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3217 <dc:when test="$out = 'fix_wq_curve'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3218 <dc:call-macro name="fix-wq-curve"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3219 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3220 <dc:when test="$out = 'duration_curve'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3221 <dc:call-macro name="duration-curve"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3222 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3223 <dc:when test="$out = 'waterlevels'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3224 <!-- base data -->
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3225 <dc:call-macro name="basedata_0"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3226 <!-- extra-longitudinal-sections -->
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3227 <dc:call-macro name="basedata_1_additionals"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3228 <!-- fixations -->
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3229 <dc:call-macro name="basedata_2_fixations"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3230 <!-- flood water marks-->
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3231 <dc:call-macro name="basedata_4_heightmarks-points"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3232 <!-- flood protection -->
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3233 <dc:call-macro name="basedata_5_flood-protections"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3234 <dc:call-macro name="waterlevels-fix"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3235 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3236 <dc:when test="$out = 'fix_wq_curve'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3237 <dc:call-macro name="waterlevels-fix"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3238 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3239 <dc:when test="$out = 'floodmap'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3240 <dc:call-macro name="flood-map"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3241 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3242 <dc:when test="$out = 'map'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3243 <dc:call-macro name="flood-map"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3244 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3245 <dc:when test="$out = 'bedheight_middle'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3246 <dc:call-macro name="waterlevels-discharge"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3247 <dc:call-macro name="waterlevels-fix"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3248 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3249 <dc:when test="$out = 'floodmap-hws'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3250 <dc:call-macro name="floodmap-hws-user"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3251 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3252 <dc:when test="$out = 'flow_velocity'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3253 <dc:call-macro name="bedquality-bed"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3254 <dc:call-macro name="bedquality-load"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3255 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3256 <dc:when test="$out = 'bed_longitudinal_section'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3257 <dc:call-macro name="bedquality-bed"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3258 <dc:call-macro name="bedquality-load"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3259 <dc:call-macro name="bedquality-density"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3260 <dc:call-macro name="bedquality-porosity"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3261 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3262 <dc:when test="$out = 'sedimentload_ls'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3263 <dc:call-macro name="differences"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3264 <dc:call-macro name="bedheight-differences"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3265 <dc:call-macro name="flow-velocity"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3266 <dc:call-macro name="sediment-load"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3267 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3268 <dc:when test="$out = 'bed_difference_year'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3269 <dc:call-macro name="waterlevels-discharge"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3270 <dc:call-macro name="bedheight-differences"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3271 <dc:call-macro name="differences"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3272 <dc:call-macro name="waterlevels-fix"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3273 <dc:call-macro name="delta-wt-ls"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3274 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3275 <dc:when test="$out = 'bed_difference_epoch'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3276 <dc:call-macro name="waterlevels-discharge"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3277 <dc:call-macro name="bedheight-differences"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3278 <dc:call-macro name="differences"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3279 <dc:call-macro name="waterlevels-fix"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3280 <dc:call-macro name="delta-wt-ls"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3281 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3282 </dc:choose>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3283 </dc:iterate>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
3284 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
3285 </dc:call-macro>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
3286
1046
0a5eff5511b1 Fixed flys/issue262: Unified user and system datacage template
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
3287 </old_calculations>
1657
91d038c7aae5 Bugfix: #328 Improved datacage configuration and labels for selected waterlevels.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 1186
diff changeset
3288
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
3289 <dc:if test="dc:contains($parameters,'load-system')">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
3290 <dc:comment>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
3291 Include System specific part when 'load-system' is in parameters.
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
3292 -----------------------------------------------------------------
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
3293 </dc:comment>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
3294 <dc:call-macro name="load-system"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
3295 </dc:if>
1046
0a5eff5511b1 Fixed flys/issue262: Unified user and system datacage template
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
3296 </dc:when>
1657
91d038c7aae5 Bugfix: #328 Improved datacage configuration and labels for selected waterlevels.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 1186
diff changeset
3297
1046
0a5eff5511b1 Fixed flys/issue262: Unified user and system datacage template
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
3298 <dc:otherwise>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
3299 <dc:comment>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
3300 Include System specific part only if no user ID is given.
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
3301 ---------------------------------------------------------
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
3302 </dc:comment>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
3303 <dc:call-macro name="load-system"/>
1046
0a5eff5511b1 Fixed flys/issue262: Unified user and system datacage template
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
3304 </dc:otherwise>
0a5eff5511b1 Fixed flys/issue262: Unified user and system datacage template
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
3305 </dc:choose>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
3306
1046
0a5eff5511b1 Fixed flys/issue262: Unified user and system datacage template
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
3307 </datacage>
0a5eff5511b1 Fixed flys/issue262: Unified user and system datacage template
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
3308 </dc:template>

http://dive4elements.wald.intevation.org