annotate artifacts/doc/conf/meta-data.xml @ 6021:5f34e4cb8095 3.0.4

Use the out attribute everywhere where there is a factory This removes the ID's hack with outs and resolves problems created by that. Where the out was already set previously the dynamic out has been commented out.
author Andre Heinecke <aheinecke@intevation.de>
date Tue, 14 May 2013 18:55:55 +0200
parents f049f9521a51
children 725ae04f7cad
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}"
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
83 ids="base_data-wstv-{$prot_rel_pos}-{$prot_id}"
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
84 factory="staticwqkms" 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
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}"
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
111 ids="base_data-wstv-{$prot_rel_pos}-{$prot_id}"
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
112 factory="wqinterpol" 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
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}"
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
139 ids="additionalsmarks-wstv-{$prot_rel_pos}-{$prot_id}"
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
140 factory="staticwkms" 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
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}"
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
166 ids="additionals-wstv-{$prot_rel_pos}-{$prot_id}"
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
167 factory="staticwqkms" 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
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}"
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
194 ids="additionals-wstv-{$prot_rel_pos}-{$prot_id}"
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
195 factory="staticwkms" 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
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}"
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
222 ids="fixations-wstv-{$prot_rel_pos}-{$prot_id}"
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
223 factory="wqinterpol" 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
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}"
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
250 ids="fixations-wstv-{$prot_rel_pos}-{$prot_id}"
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
251 factory="staticwqkms" 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
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}"
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
278 ids="fixations-wstv-{$prot_rel_pos}-{$prot_id}"
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
279 factory="staticwkms" 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
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}"
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
306 ids="additionals-wstv-{$prot_rel_pos}-{$prot_id}"
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
307 factory="staticwqkms" 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
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}"
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
333 ids="heightmarks_points-wstv-{$prot_rel_pos}-{$prot_id}"
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
334 factory="staticwkms" 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
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}"
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
360 ids="heightmarks_points-wstv-{$prot_rel_pos}-{$prot_id}"
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
361 factory="staticwkms" 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
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
2751
e50cc06c6c4c Serve heightmarks and floodprotection in dc conf for duration curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2749
diff changeset
372 <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
373 <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
374 <flood_protections id="flood-protections-{$river_id}">
5015
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 = 5 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>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
382 <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
383 db-id="{$prot_id}"
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
384 factory="staticwkms" 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
385 <columns>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
386 <dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
387 <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
388 <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
389 <column name="{$prot_column_name}"
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
390 ids="flood_protection-wstv-{$prot_rel_pos}-{$prot_id}"
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
391 factory="staticwkms" 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
392 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
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 </columns>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
396 </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
397 </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
398 </dc:context></flood_protections>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
399 </dc:call-macro>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
400 </dc:macro>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
401
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
402 <dc:macro name="basedata_5_flood-protections">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
403 <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
404 <flood_protections id="flood-protections-{$river_id}">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
405 <dc:context connection="system">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
406 <dc:statement>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
407 SELECT id AS prot_id,
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
408 description AS prot_description
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
409 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
410 </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
411 <dc:for-each>
5746
1dab240f9f55 remove prefixed directory names from descriptions in data cage
Tom Gottfried <tom@intevation.de>
parents: 5682
diff changeset
412 <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
413 db-id="{$prot_id}"
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
414 factory="staticwkms" out="{$OUT}">
2751
e50cc06c6c4c Serve heightmarks and floodprotection in dc conf for duration curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2749
diff changeset
415 <dc:context>
4894
5741970e2c58 meta-data.xml: Replace wst_columns queries by macro call.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4892
diff changeset
416 <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
417 <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
418 <column name="{$prot_column_name}"
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
419 ids="flood_protection-wstv-{$prot_rel_pos}-{$prot_id}"
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
420 factory="staticwkms" 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
421 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
422 </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
423 </dc:context>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
424 </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
425 </dc:for-each>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
426 </dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
427 </flood_protections>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
428 </dc:call-macro>
1905
d025009fec73 Recommend fixations for computed discharge curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1880
diff changeset
429 </dc:macro>
d025009fec73 Recommend fixations for computed discharge curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1880
diff changeset
430
1851
67aa74efc024 Recommend mainvalues for Duration Curve Diagrams, minor refactoring.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1841
diff changeset
431 <dc:macro name="mainvalues">
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
432 <wmainvalue factory="mainvalue" out="{$OUT}" ids="{$river_id}:w"/>
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
433 <qmainvalue factory="mainvalue" out="{$OUT}" ids="{$river_id}:q"/>
1851
67aa74efc024 Recommend mainvalues for Duration Curve Diagrams, minor refactoring.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1841
diff changeset
434 </dc:macro>
1865
ba6659083fa0 Revert/apply accidental/corrected commit.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1857
diff changeset
435
3574
416288f88763 Add more qsectory infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3570
diff changeset
436 <dc:macro name="qsectors">
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
437 <qsector factory="qsectors" out="{$OUT}" ids="{$river_id}"/>
3574
416288f88763 Add more qsectory infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3570
diff changeset
438 </dc:macro>
416288f88763 Add more qsectory infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3570
diff changeset
439
1865
ba6659083fa0 Revert/apply accidental/corrected commit.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1857
diff changeset
440 <dc:macro name="annotations">
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
441 <annotation factory="annotations" out="{$OUT}" ids="{$river_id}"/>
1865
ba6659083fa0 Revert/apply accidental/corrected commit.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1857
diff changeset
442 </dc:macro>
ba6659083fa0 Revert/apply accidental/corrected commit.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1857
diff changeset
443
4014
e5e1331d0440 Show 'per-type' annotations in longitudinal-section DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3975
diff changeset
444 <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
445 <annotations>
e5e1331d0440 Show 'per-type' annotations in longitudinal-section DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3975
diff changeset
446 <dc:context>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
447 <all_annotations factory="annotations" out="{$OUT}" ids="{$river_id}"/>
4014
e5e1331d0440 Show 'per-type' annotations in longitudinal-section DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3975
diff changeset
448 <dc:statement>
e5e1331d0440 Show 'per-type' annotations in longitudinal-section DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3975
diff changeset
449 SELECT id AS anno_id,
e5e1331d0440 Show 'per-type' annotations in longitudinal-section DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3975
diff changeset
450 name AS anno_description
e5e1331d0440 Show 'per-type' annotations in longitudinal-section DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3975
diff changeset
451 FROM annotation_types
e5e1331d0440 Show 'per-type' annotations in longitudinal-section DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3975
diff changeset
452 </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
453 <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
454 <annotation name="{$anno_description}"
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
455 factory="annotations" out="{$OUT}"
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
456 ids="{$river_id}:{$anno_description}"/>
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
457 </dc:for-each>
4014
e5e1331d0440 Show 'per-type' annotations in longitudinal-section DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3975
diff changeset
458 </dc:context>
e5e1331d0440 Show 'per-type' annotations in longitudinal-section DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3975
diff changeset
459 </annotations>
e5e1331d0440 Show 'per-type' annotations in longitudinal-section DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3975
diff changeset
460 </dc:macro>
e5e1331d0440 Show 'per-type' annotations in longitudinal-section DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3975
diff changeset
461
1978
4c10a4cb978f Recommend cross sections if they can be shown.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1916
diff changeset
462 <dc:macro name="cross_sections">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
463 <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
464 <cross_sections id="flood-protections-{$river_id}">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
465 <dc:context connection="system">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
466 <dc:statement>
5164
8c65acf01adc Fixed datacage to be oracle compatible.
Raimund Renkert <rrenkert@intevation.de>
parents: 5145
diff changeset
467 SELECT DISTINCT
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
468 cs.id AS prot_id,
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
469 cs.description AS prot_description
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
470 FROM cross_sections cs
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
471 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
472 WHERE cs.river_id = ${river_id}
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
473 AND csl.km BETWEEN ${fromkm} AND ${tokm}
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
474 </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
475 <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
476 <cross_section name="{$prot_description}"
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
477 ids="{$prot_id}"
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
478 factory="crosssections" 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
479 </dc:for-each>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
480 </dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
481 </cross_sections>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
482 </dc:call-macro>
1978
4c10a4cb978f Recommend cross sections if they can be shown.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1916
diff changeset
483 </dc:macro>
4c10a4cb978f Recommend cross sections if they can be shown.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1916
diff changeset
484
2140
3d73109005b8 Recommend hyks if hit by cross section out.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2114
diff changeset
485 <dc:macro name="hyks">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
486 <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
487 <hyks id="hyk-{$river_id}">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
488 <dc:context connection="system">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
489 <dc:statement>
5164
8c65acf01adc Fixed datacage to be oracle compatible.
Raimund Renkert <rrenkert@intevation.de>
parents: 5145
diff changeset
490 SELECT DISTINCT
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
491 h.id AS hyk_id,
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
492 h.description AS hyk_description
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
493 FROM hyks h
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
494 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
495 WHERE river_id = ${river_id}
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
496 AND he.km BETWEEN ${fromkm} AND ${tokm}
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
497 </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
498 <dc:for-each>
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
499 <hyk name="{$hyk_description}"
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
500 ids="{$hyk_id}"
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
501 factory="hyk" 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
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 </dc:context></hyks>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
504 </dc:call-macro>
2140
3d73109005b8 Recommend hyks if hit by cross section out.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2114
diff changeset
505 </dc:macro>
1869
8f7bc6acd48d Adjusted DC for heightmarks (and other) in discharge longitudinal sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1868
diff changeset
506
4455
06c07cb478a8 meta-data.xml: Add annotations and flow velocity measurements to the DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4449
diff changeset
507 <dc:macro name="flow_velocity_measurements">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
508 <dc:call-macro name="user-range">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
509 <flowvelocitymeasurement>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
510 <dc:context connection="system">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
511 <dc:statement>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
512 SELECT id AS fvmid,
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
513 description AS fvmd
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
514 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
515 </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
516 <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
517 <flow_velocity_measurement name="{$fvmd}"
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
518 ids="{$fvmid}"
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
519 factory="flowvelocity" out="{$OUT}">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
520 <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
521 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
522 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
523 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
524 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
525 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
526 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
527 <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
528 <measurement_value name="{$description} - {$station} - {$datetime}"
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
529 ids="{$id}"
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
530 factory="flowvelocity" 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
531 </dc:for-each>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
532 </dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
533 </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
534 </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
535 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
536 </flowvelocitymeasurement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
537 </dc:call-macro>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
538 </dc:macro>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
539
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
540 <dc:macro name="sounding-width">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
541 <soundings_width>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
542 <dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
543 <dc:statement>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
544 SELECT id AS bedh_id,
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
545 year AS bedh_year,
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
546 description AS bedh_descr
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
547 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
548 </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
549 <dc:for-each>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
550 <height factory="bedheight" out="{$OUT}"
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
551 ids="bedheight-singlevalues-{$bedh_id}-{$bedh_year}"
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
552 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
553 </dc:for-each>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
554 </dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
555 </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
556 </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
557
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
558 <dc:macro name="morph_width">
5766
a6dc4c232da2 Datacage config and out generator for morphologic width.
Raimund Renkert <rrenkert@intevation.de>
parents: 5761
diff changeset
559 <morph_width>
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
560 <dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
561 <dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
562 SELECT id AS width_id
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
563 FROM morphologic_width
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
564 WHERE river_id = ${river_id}
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
565 </dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
566 <dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
567 <dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
568 <dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
569 SELECT min(station) AS from,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
570 max(station) AS to
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
571 FROM morphologic_width_values
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
572 WHERE morphologic_width_id = ${width_id}
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
573 </dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
574 <dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
575 <morphologic-width name="{$from} - {$to}"
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
576 ids="{$width_id}"
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
577 factory="morph-width"/>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
578 </dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
579 </dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
580 </dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
581 </dc:context>
5766
a6dc4c232da2 Datacage config and out generator for morphologic width.
Raimund Renkert <rrenkert@intevation.de>
parents: 5761
diff changeset
582 </morph_width>
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
583 </dc:macro>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
584
4595
0b48085f93aa meta-data.xml: Added 'prototype-macro for longitudinal_sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4538
diff changeset
585 <dc:macro name="longitudinal-section-prototype">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
586 <dc:call-macro name="basedata_0"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
587 <dc:call-macro name="basedata_1_additionals"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
588 <dc:comment comment=" FIXATIONS ---------------------------"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
589 <dc:call-macro name="basedata_2_fixations"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
590 <dc:comment comment=" HOEHENMARKEN ---------------------------"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
591 <dc:call-macro name="basedata_4_heightmarks-points"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
592 <dc:comment comment=" AMTL LINIEN ---------------------------"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
593 <dc:call-macro name="basedata_3_officials"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
594 <dc:call-macro name="basedata_5_flood-protections"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
595 <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
596 </dc:macro>
0b48085f93aa meta-data.xml: Added 'prototype-macro for longitudinal_sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4538
diff changeset
597
5980
f33d717aae5c Revert changes in metadata.xml from r5978:ebd6e8e234e0.
Raimund Renkert <rrenkert@intevation.de>
parents: 5979
diff changeset
598 <dc:macro name="discharge_table_gauge">
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
599 <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
600 <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
601 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
602 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
603 SELECT id AS gauge_id,
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
604 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
605 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
606 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
607 <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
608 <gauge name="{$gauge_name}"
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
609 db-id="{$gauge_id}"
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
610 factory="gaugedischarge" out="{$OUT}"
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
611 from="{$g_start}"
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
612 to="{$g_stop}"
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
613 ids="{$gauge_name}"/>
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
614 </dc:for-each>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
615 </dc:context>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
616 </discharge_table_gauge>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
617 </discharge_table_nn>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
618 </dc:macro>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
619
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
620 <dc:macro name="discharge_computed">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
621 <discharge_table_nn>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
622 <discharge_table_gauge>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
623 <dc:context>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
624 <dc:statement>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
625 SELECT id AS gauge_id,
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
626 name AS gauge_name
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
627 FROM gauges WHERE river_id = ${river_id}
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
628 </dc:statement>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
629 <dc:for-each>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
630 <gauge name="{$gauge_name}"
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
631 db-id="{$gauge_id}"
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
632 factory="gaugedischarge" out="{$OUT}"
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
633 from="{$g_start}"
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
634 to="{$g_stop}"
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
635 ids="{$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
636 <dc:comment>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
637 <!--
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
638 <gauge>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
639 <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
640 <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
641 <dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
642 <dc:statement>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
643 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
644 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
645 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
646 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
647 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
648 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
649 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
650 </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
651 <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
652 <historical>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
653 <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
654 <dc:attribute name="factory" value="gaugedischarge"/>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
655 <dc:attribute name="out" value="${out}"/>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
656 <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
657 <dc:attribute name="to" value="${g_stop}"/>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
658 <dc:attribute name="ids" value="${discharge_id}-${g_start}-${g_stop}"/>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
659 </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
660 </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
661 </dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
662 </gauge>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
663 -->
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
664 </dc:comment>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
665 </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
666 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
667 </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
668 </discharge_table_nn>
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
669 </dc:macro>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
670
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
671 <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
672 <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
673 <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
674 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
675 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
676 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
677 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
678 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
679 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
680 <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
681 <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
682 db-id="{$gauge_id}"
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
683 factory="gaugedischarge" 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
684 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
685 to="{$g_stop}"
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
686 ids="{$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
687 </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
688 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
689 </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
690 </discharge_table_nn>
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
691 </dc:macro>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
692
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
693 <dc:choose>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
694 <dc:when test="dc:contains($parameters, 'recommended')">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
695 <dc:comment>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
696 Recommendations (client shall load immediately).
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
697 </dc:comment>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
698 <dc:iterate var="out" container="artifact-outs">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
699 <dc:choose>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
700 <dc:when test="$out = 'w_differences'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
701 <dc:call-macro name="annotations"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
702 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
703 <dc:when test="$out = 'discharge_longitudinal_section'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
704 <dc:call-macro name="annotations"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
705 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
706 <dc:when test="$out = 'historical_discharge_wq'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
707 <dc:call-macro name="mainvalues"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
708 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
709 <dc:when test="$out = 'cross_section'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
710 <dc:call-macro name="cross_sections"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
711 <dc:call-macro name="hyks"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
712 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
713 <dc:when test="$out = 'computed_discharge_curve'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
714 <dc:call-macro name="mainvalues"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
715 <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
716 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
717 <dc:when test="$out = 'duration_curve'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
718 <dc:call-macro name="mainvalues"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
719 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
720 <dc:when test="$out = 'reference_curve'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
721 <dc:call-macro name="annotations"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
722 <dc:call-macro name="mainvalues"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
723 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
724 <dc:when test="$out = 'fix_wq_curve'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
725 <dc:call-macro name="qsectors"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
726 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
727 <dc:when test="$out = 'longitudinal_section'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
728 <dc:call-macro name="annotations"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
729 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
730 <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
731 <dc:call-macro name="annotations"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
732 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
733 <dc:when test="$out = 'bed_difference_epoch'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
734 <dc:call-macro name="annotations"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
735 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
736 <dc:when test="$out = 'bed_difference_year'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
737 <dc:call-macro name="annotations"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
738 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
739 <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
740 <dc:call-macro name="annotations"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
741 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
742 <dc:when test="$out = 'floodmap'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
743 <dc:call-macro name="flood-map-recommended"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
744 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
745 <dc:when test="$out = 'floodmap-hws'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
746 <dc:call-macro name="flood-map-recommended"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
747 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
748 <dc:when test="$out = 'minfo-heights'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
749 <dc:call-macro name="minfo-heights"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
750 <dc:macro name="minfo-heights">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
751 <bedheights>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
752 <dc:call-macro name="bed-heights-single"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
753 <dc:call-macro name="bed-heights-epoch"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
754 </bedheights>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
755 </dc:macro>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
756 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
757 <dc:when test="$out = 'minfo-heights-epoch'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
758 <bedheights>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
759 <dc:call-macro name="bed-heights-epoch"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
760 </bedheights>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
761 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
762 </dc:choose>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
763 </dc:iterate>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
764 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
765 <dc:otherwise>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
766 <dc:comment>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
767 Non - Recommendations.
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
768 </dc:comment>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
769 <dc:iterate var="out" container="artifact-outs">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
770 <dc:choose>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
771 <dc:when test="$out = 'cross_section'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
772 <dc:call-macro name="basedata_0"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
773 <dc:call-macro name="basedata_1_additionals"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
774 <dc:call-macro name="basedata_2_fixations"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
775 <dc:call-macro name="basedata_3_officials"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
776 <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
777 <dc:call-macro name="cross_sections"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
778 <dc:call-macro name="hyks"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
779 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
780 <dc:when test="$out = 'longitudinal_section'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
781 <dc:call-macro name="longitudinal-section-prototype"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
782 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
783 <dc:when test="$out = 'w_differences'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
784 <dc:call-macro name="longitudinal-section-prototype"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
785 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
786 <dc:when test="$out = 'discharge_longitudinal_section'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
787 <dc:call-macro name="longitudinal-section-prototype"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
788 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
789 <dc:when test="$out = 'duration_curve'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
790 <dc:call-macro name="mainvalues"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
791 <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
792 <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
793 <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
794 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
795 <dc:when test="$out = 'reference_curve'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
796 <dc:call-macro name="annotations"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
797 <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
798 <dc:comment comment=" FIXATIONS ---------------------------"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
799 <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
800 <dc:comment comment=" HOEHENMARKEN ---------------------------"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
801 <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
802 <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
803 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
804 <dc:when test="$out = 'fix_wq_curve'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
805 <dc:call-macro name="basedata_0_wq"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
806 <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
807 <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
808 <dc:call-macro name="basedata_3_officials"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
809 <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
810 <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
811 <dc:call-macro name="discharge_table_gauge"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
812 <dc:call-macro name="discharge_fix_wq"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
813 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
814 <dc:when test="$out = 'fix_deltawt_curve'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
815 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
816 <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
817 <dc:call-macro name="annotations"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
818 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
819 <dc:when test="$out = 'map'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
820 <dc:call-macro name="flood-map-complete"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
821 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
822 <dc:when test="$out = 'flow_velocity'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
823 <dc:call-macro name="annotations_per_type"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
824 <dc:call-macro name="flow_velocity_measurements"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
825 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
826 <dc:when test="$out = 'bed_longitudinal_section'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
827 <dc:call-macro name="annotations_per_type"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
828 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
829 <dc:when test="$out = 'sedimentload_ls'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
830 <dc:call-macro name="annotations_per_type"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
831 <dc:call-macro name="morph_width"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
832 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
833 <dc:comment>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
834 MINFO bedheight middle
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
835 </dc:comment>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
836 <dc:when test="$out = 'bedheight_middle'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
837 <dc:call-macro name="sounding-width"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
838 <dc:call-macro name="basedata_0"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
839 <dc:call-macro name="basedata_1_additionals"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
840 <dc:call-macro name="basedata_2_fixations"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
841 <dc:call-macro name="basedata_3_officials"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
842 <dc:call-macro name="annotations_per_type"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
843 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
844 <dc:when test="$out = 'bed_difference_year'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
845 <dc:call-macro name="basedata_0"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
846 <dc:call-macro name="basedata_1_additionals"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
847 <dc:call-macro name="basedata_2_fixations"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
848 <dc:call-macro name="basedata_3_officials"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
849 <dc:call-macro name="annotations_per_type"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
850 <dc:call-macro name="morph_width"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
851 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
852 <dc:when test="$out = 'bed_difference_epoch'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
853 <dc:call-macro name="basedata_0"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
854 <dc:call-macro name="basedata_1_additionals"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
855 <dc:call-macro name="basedata_2_fixations"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
856 <dc:call-macro name="basedata_3_officials"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
857 <dc:call-macro name="annotations_per_type"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
858 <dc:call-macro name="morph_width"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
859 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
860 <dc:when test="$out = 'floodmap'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
861 <dc:choose>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
862 <dc:when test="dc:contains($parameters, 'dem')">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
863 <dc:call-macro name="flood-map-dem"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
864 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
865 <dc:when test="dc:contains($parameters, 'hws')">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
866 <hws>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
867 <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
868 <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
869 </hws>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
870 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
871 <dc:otherwise>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
872 <dc:call-macro name="flood-map-complete"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
873 </dc:otherwise>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
874 </dc:choose>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
875 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
876 <dc:when test="$out = 'floodmap-hws'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
877 <dc:choose>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
878 <dc:when test="dc:contains($parameters, 'dem')">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
879 <dc:call-macro name="flood-map-dem"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
880 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
881 <dc:when test="dc:contains($parameters, 'hws')">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
882 <hws>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
883 <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
884 <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
885 </hws>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
886 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
887 <dc:otherwise>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
888 <dc:call-macro name="flood-map-complete"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
889 </dc:otherwise>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
890 </dc:choose>
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 = 'computed_discharge_curve'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
893 <dc:call-macro name="discharge_computed"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
894 <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
895
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
896 <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
897
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
898 <!-- former waterlevels -->
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
899 <dc:call-macro name="basedata_0"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
900
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
901 <dc:call-macro name="basedata_1_additionals"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
902
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
903 <!-- former flood-water-marks -->
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
904 <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
905 <computed_discharge_curve>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
906 <dc:call-macro name="mainvalues"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
907 </computed_discharge_curve>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
908 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
909 <dc:when test="$out = 'minfo-heights'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
910 <dc:call-macro name="minfo-heights"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
911 <dc:macro name="minfo-heights">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
912 <bedheights>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
913 <dc:call-macro name="bed-heights-single"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
914 <dc:call-macro name="bed-heights-epoch"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
915 </bedheights>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
916 </dc:macro>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
917 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
918 <dc:when test="$out = 'minfo-heights-epoch'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
919 <bedheights>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
920 <dc:call-macro name="bed-heights-epoch"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
921 </bedheights>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
922 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
923 </dc:choose>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
924 </dc:iterate>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
925 </dc:otherwise>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
926 </dc:choose>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
927
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
928
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
929 <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
930 <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
931 <dc:comment>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
932 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
933 </dc:comment>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
934 <kilometrage>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
935 <riveraxis factory="riveraxis" out="{$OUT}" ids="{$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
936 </kilometrage>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
937 <rastermap>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
938 <background factory="wmsbackground" out="{$OUT}" ids="{$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
939 </rastermap>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
940 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
941
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
942 <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
943 <dems>
5477
ae60bb7b8085 Add proper handling of multiple river_axes for datacage and rivermapfile
Andre Heinecke <aheinecke@intevation.de>
parents: 5474
diff changeset
944 <dc:context>
ae60bb7b8085 Add proper handling of multiple river_axes for datacage and rivermapfile
Andre Heinecke <aheinecke@intevation.de>
parents: 5474
diff changeset
945 <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
946 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
947 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
948 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
949 d.name AS name,
5625
a8cc4ebdd0bb Update dem info string
Andre Heinecke <aheinecke@intevation.de>
parents: 5619
diff changeset
950 t.start_time AS start_time,
a8cc4ebdd0bb Update dem info string
Andre Heinecke <aheinecke@intevation.de>
parents: 5619
diff changeset
951 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
952 'Projektion: ' || d.projection || '$' ||
2d9eb188fa51 Flys Issue 759 write longer strings and explicitly break the lines
Andre Heinecke <aheinecke@intevation.de>
parents: 5625
diff changeset
953 '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
954 'Format: ' || d.format || '$' ||
2d9eb188fa51 Flys Issue 759 write longer strings and explicitly break the lines
Andre Heinecke <aheinecke@intevation.de>
parents: 5625
diff changeset
955 'Zeitraum: '
5625
a8cc4ebdd0bb Update dem info string
Andre Heinecke <aheinecke@intevation.de>
parents: 5619
diff changeset
956 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
957 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
958 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
959 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
960 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
961 </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
962 <dc:for-each>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
963 <dem factory="demfactory" out="{$OUT}"
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
964 ids="{$dem_id}"
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
965 name="{$name}"
5627
2d9eb188fa51 Flys Issue 759 write longer strings and explicitly break the lines
Andre Heinecke <aheinecke@intevation.de>
parents: 5625
diff changeset
966 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
967 </dc:for-each>
5515
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
968 </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
969 </dems>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
970 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
971
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
972 <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
973 <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
974 <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
975 <dc:for-each>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
976 <hws factory="hwsfactory" out="{$OUT}" name="{$hws_name}"/>
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
977 </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
978 </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
979
5605
6372fd8bfb00 It's hws_kind not kws_kind
Andre Heinecke <aheinecke@intevation.de>
parents: 5598
diff changeset
980 <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
981 <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
982 <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
983 </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
984 </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
985
5605
6372fd8bfb00 It's hws_kind not kws_kind
Andre Heinecke <aheinecke@intevation.de>
parents: 5598
diff changeset
986 <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
987 <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
988 <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
989 </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
990 </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
991
5605
6372fd8bfb00 It's hws_kind not kws_kind
Andre Heinecke <aheinecke@intevation.de>
parents: 5598
diff changeset
992 <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
993 <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
994 <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
995 </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
996 </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
997 </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
998
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
999 <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
1000 <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
1001 <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
1002 <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
1003 </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
1004 </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
1005 </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
1006
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
1007 <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
1008 <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
1009 <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
1010 <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
1011 </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
1012 </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
1013 </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
1014 </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
1015
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1016 <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
1017 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1018 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1019 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
1020 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
1021 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
1022 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
1023 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
1024 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
1025 </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
1026 <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
1027 <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
1028 <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
1029 </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
1030 </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
1031 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1032 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1033
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1034 <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
1035 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1036 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1037 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
1038 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
1039 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
1040 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
1041 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
1042 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
1043 </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
1044 <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
1045 <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
1046 <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
1047 </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
1048 </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
1049 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1050 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1051
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1052 <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
1053 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1054 <dc:statement>
5548
9840c2e65e28 Fix distinction for kilometrage.
Andre Heinecke <aheinecke@intevation.de>
parents: 5547
diff changeset
1055 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
1056 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1057 <dc:for-each>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
1058 <kilometrage factory="wmskmfactory" out="{$OUT}" ids="{$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
1059 </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
1060 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1061 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1062
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1063 <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
1064 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1065 <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
1066 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1067 SELECT DISTINCT
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1068 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
1069 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
1070 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
1071 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
1072 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
1073 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
1074 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1075 <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
1076 <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
1077 <actual description="{$kind_name}"
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
1078 factory="wmsqpsfactory" out="{$OUT}"
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
1079 ids="{$river_id};{$kind_name};{$kind_id}"/>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1080 </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
1081 </dc:if>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1082 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1083 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1084 <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
1085 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1086 SELECT DISTINCT
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1087 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
1088 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
1089 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
1090 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
1091 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
1092 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
1093 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
1094 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1095 <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
1096 <other>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1097 <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
1098 <misc-qps description="{$layer_name}"
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
1099 factory="wmsqpsfactory" out="{$OUT}"
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
1100 ids="{$river_id};{$layer_name};{$kind_id}"/>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1101 </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
1102 </other>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1103 </dc:if>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1104 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1105 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1106
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1107 <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
1108 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1109 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1110 SELECT DISTINCT
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1111 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
1112 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
1113 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
1114 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
1115 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
1116 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
1117 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1118 <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
1119 <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
1120 <actual description="{$kind_name}"
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
1121 ids="{$river_id};{$kind_name};{$kind_id}"
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
1122 factory="riveraxis" 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
1123 </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
1124 </dc:if>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1125 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1126 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1127 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1128 SELECT DISTINCT
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1129 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
1130 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
1131 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
1132 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
1133 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
1134 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
1135 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
1136 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1137 <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
1138 <other>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1139 <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
1140 <misc-axis description="{$layer_name}"
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
1141 ids="{$river_id};{$layer_name};{$kind_id}"
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
1142 factory="riveraxis" 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
1143 </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
1144 </other>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1145 </dc:if>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1146 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1147 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1148
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1149 <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
1150 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1151 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1152 SELECT DISTINCT
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1153 name
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1154 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
1155 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
1156 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
1157 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1158 <dc:for-each>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
1159 <line factory="wmshydrboundariesfactory" out="{$OUT}"
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
1160 ids="{$river_id};{$name};2"
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1161 name="{$name}"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1162 </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
1163 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1164 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1165 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1166 SELECT DISTINCT
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1167 name
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1168 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
1169 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
1170 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
1171 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1172 <dc:for-each>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
1173 <line factory="wmshydrboundariespolyfactory" out="{$OUT}"
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
1174 ids="{$river_id};{$name};2"
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1175 name="{$name}"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1176 </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
1177 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1178 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1179
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1180 <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
1181 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1182 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1183 SELECT DISTINCT
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1184 name
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1185 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
1186 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
1187 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
1188 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1189 <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
1190 <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
1191 <lines>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1192 <dc:for-each>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
1193 <line factory="wmshydrboundariesfactory" out="{$OUT}"
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
1194 ids="{$river_id};{$name};1"
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1195 name="{$name}"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1196 </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
1197 </lines>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1198 </dc:if>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1199 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1200 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1201
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1202 <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
1203 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1204 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1205 SELECT DISTINCT
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1206 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
1207 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
1208 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
1209 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
1210 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
1211 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
1212 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1213 <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
1214 <sobek_areas>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1215 <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
1216 <boundary name="{$sectie}"
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
1217 factory="wmshydrboundariespolyfactory" out="{$OUT}"
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
1218 ids="{$river_id};{$sectie};1;{$sectie_id};-1"/>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1219 </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
1220 </sobek_areas>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1221 </dc:if>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1222 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1223 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1224 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1225 SELECT DISTINCT
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1226 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
1227 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
1228 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
1229 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
1230 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
1231 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
1232 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1233 <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
1234 <sobek_flooded>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1235 <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
1236 <boundary name="{$sobek}"
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
1237 factory="wmshydrboundariespolyfactory" out="{$OUT}"
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
1238 ids="{$river_id};{$sobek};1;-1;{$sobek_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:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1240 </sobek_flooded>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1241 </dc:if>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1242 </dc:context>
5760
dc5f81885918 Add hydroboundaries where sectie and sobek is null
Andre Heinecke <aheinecke@intevation.de>
parents: 5758
diff changeset
1243 <dc:context>
dc5f81885918 Add hydroboundaries where sectie and sobek is null
Andre Heinecke <aheinecke@intevation.de>
parents: 5758
diff changeset
1244 <dc:statement>
dc5f81885918 Add hydroboundaries where sectie and sobek is null
Andre Heinecke <aheinecke@intevation.de>
parents: 5758
diff changeset
1245 SELECT DISTINCT
dc5f81885918 Add hydroboundaries where sectie and sobek is null
Andre Heinecke <aheinecke@intevation.de>
parents: 5758
diff changeset
1246 b.name AS name
dc5f81885918 Add hydroboundaries where sectie and sobek is null
Andre Heinecke <aheinecke@intevation.de>
parents: 5758
diff changeset
1247 FROM hydr_boundaries_poly b
dc5f81885918 Add hydroboundaries where sectie and sobek is null
Andre Heinecke <aheinecke@intevation.de>
parents: 5758
diff changeset
1248 WHERE b.river_id = ${river_id}
dc5f81885918 Add hydroboundaries where sectie and sobek is null
Andre Heinecke <aheinecke@intevation.de>
parents: 5758
diff changeset
1249 AND b.kind = 1
dc5f81885918 Add hydroboundaries where sectie and sobek is null
Andre Heinecke <aheinecke@intevation.de>
parents: 5758
diff changeset
1250 AND b.sobek IS NULL
dc5f81885918 Add hydroboundaries where sectie and sobek is null
Andre Heinecke <aheinecke@intevation.de>
parents: 5758
diff changeset
1251 AND b.sectie is NULL
dc5f81885918 Add hydroboundaries where sectie and sobek is null
Andre Heinecke <aheinecke@intevation.de>
parents: 5758
diff changeset
1252 </dc:statement>
dc5f81885918 Add hydroboundaries where sectie and sobek is null
Andre Heinecke <aheinecke@intevation.de>
parents: 5758
diff changeset
1253 <dc:for-each>
dc5f81885918 Add hydroboundaries where sectie and sobek is null
Andre Heinecke <aheinecke@intevation.de>
parents: 5758
diff changeset
1254 <boundary name="{$name}"
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
1255 factory="wmshydrboundariespolyfactory" out="{$OUT}"
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
1256 ids="{$river_id};{$name}"/>
5760
dc5f81885918 Add hydroboundaries where sectie and sobek is null
Andre Heinecke <aheinecke@intevation.de>
parents: 5758
diff changeset
1257 </dc:for-each>
dc5f81885918 Add hydroboundaries where sectie and sobek is null
Andre Heinecke <aheinecke@intevation.de>
parents: 5758
diff changeset
1258 </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
1259 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1260
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1261 <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
1262 <bfg_model>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1263 <areas>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1264 <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
1265 </areas>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1266 <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
1267 </bfg_model>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1268 <federal>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1269 <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
1270 </federal>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1271 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1272
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1273 <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
1274 <floodplain>
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1275 <dc:context>
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1276 <dc:statement>
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1277 SELECT DISTINCT
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1278 fp.kind_id AS kind_id,
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1279 flk.name AS kind_name
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1280 FROM floodplain fp
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1281 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
1282 WHERE river_id = ${river_id}
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1283 AND kind_id=1
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1284 </dc:statement>
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1285 <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
1286 <dc:for-each>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
1287 <floody factory="wmsfloodplainfactory" out="{$OUT}"
5619
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1288 description="{$kind_name}"
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
1289 ids="{$river_id};{$kind_name};{$kind_id}"/>
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
1290 </dc:for-each>
5619
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1291 </dc:if>
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1292 </dc:context>
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1293 <dc:context>
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1294 <dc:statement>
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1295 SELECT DISTINCT
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1296 flk.name AS kind_name,
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1297 fp.kind_id AS kind_id,
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1298 fp.name AS layer_name
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1299 FROM floodplain fp
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1300 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
1301 WHERE river_id = ${river_id}
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1302 AND kind_id &lt;&gt; 1
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1303 </dc:statement>
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1304 <dc:if test="dc:has-result()">
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1305 <other>
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1306 <dc:for-each>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
1307 <floody factory="wmsfloodplainfactory" out="{$OUT}"
5619
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1308 description="{$layer_name}"
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
1309 ids="{$river_id};{$layer_name};{$kind_id}"/>
5619
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1310 </dc:for-each>
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1311 </other>
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1312 </dc:if>
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1313 </dc:context>
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1314 </floodplain>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1315 </dc:macro>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1316
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1317 <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
1318 <dc:comment>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1319 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
1320 availble
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1321 </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
1322
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
1323 <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
1324 <dc:for-each>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
1325 <hws factory="wmshwslinesfactory" out="{$OUT}"
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
1326 ids="{$river_id};{$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
1327 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
1328 </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
1329 </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
1330
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
1331 <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
1332 <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
1333 <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
1334 <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
1335 </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
1336 </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
1337 </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
1338
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
1339 <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
1340 <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
1341 <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
1342 <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
1343 </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
1344 </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
1345 </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
1346
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
1347 <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
1348 <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
1349 <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
1350 <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
1351 </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
1352 </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
1353 </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
1354 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1355
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1356 <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
1357 <hws_lines>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1358 <official>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1359 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1360 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1361 SELECT DISTINCT
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1362 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
1363 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
1364 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
1365 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
1366 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
1367 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
1368 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1369 <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
1370 <dc:context>
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 SELECT DISTINCT
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1373 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
1374 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
1375 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
1376 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
1377 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
1378 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
1379 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1380 <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
1381 <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
1382 </fedstate>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1383 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1384 </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
1385 </dc:context>
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 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
1390 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
1391 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
1392 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
1393 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
1394 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
1395 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
1396 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1397 <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
1398 <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
1399 </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
1400 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1401 </official>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1402 <inofficial>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1403 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1404 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1405 SELECT DISTINCT
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1406 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
1407 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
1408 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
1409 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
1410 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
1411 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
1412 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1413 <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
1414 <dc:context>
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 SELECT DISTINCT
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1417 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
1418 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
1419 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
1420 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
1421 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
1422 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
1423 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1424 <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
1425 <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
1426 </fedstate>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1427 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1428 </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
1429 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1430 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1431 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1432 SELECT distinct
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1433 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
1434 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
1435 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
1436 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
1437 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
1438 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
1439 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1440 <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
1441 <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
1442 </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
1443 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1444 </inofficial>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1445 </hws_lines>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1446 </dc:macro>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1447
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1448 <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
1449 <dc:comment>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1450 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
1451 availble
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1452 </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
1453
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
1454 <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
1455 <dc:for-each>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
1456 <hws factory="wmshwspointsfactory" out="{$OUT}"
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
1457 ids="{$river_id};{$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
1458 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
1459 </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
1460 </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
1461
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
1462 <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
1463 <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
1464 <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
1465 <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
1466 </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
1467 </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
1468 </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
1469
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
1470 <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
1471 <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
1472 <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
1473 <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
1474 </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
1475 </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
1476 </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
1477
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
1478 <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
1479 <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
1480 <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
1481 <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
1482 </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
1483 </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
1484 </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
1485 </dc:macro>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1486
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1487 <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
1488 <hws_points>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1489 <official>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1490 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1491 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1492 SELECT DISTINCT
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1493 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
1494 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
1495 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
1496 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
1497 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
1498 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
1499 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1500 <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
1501 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1502 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1503 SELECT DISTINCT
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1504 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
1505 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
1506 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
1507 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
1508 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
1509 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
1510 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1511 <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
1512 <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
1513 </fedstate>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1514 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1515 </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
1516 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1517 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1518 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1519 SELECT distinct
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1520 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
1521 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
1522 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
1523 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
1524 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
1525 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
1526 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
1527 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1528 <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
1529 <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
1530 </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
1531 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1532 </official>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1533 <inofficial>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1534 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1535 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1536 SELECT DISTINCT
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1537 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
1538 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
1539 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
1540 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
1541 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
1542 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
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 <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
1545 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1546 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1547 SELECT DISTINCT
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1548 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
1549 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
1550 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
1551 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
1552 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
1553 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
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 <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
1556 <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
1557 </fedstate>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1558 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1559 </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
1560 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1561 <dc:context>
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 SELECT distinct
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1564 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
1565 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
1566 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
1567 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
1568 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
1569 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
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 <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
1572 <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
1573 </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
1574 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1575 </inofficial>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1576 </hws_points>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1577 </dc:macro>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1578
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1579 <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
1580 <dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1581 <dc:statement>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1582 SELECT DISTINCT
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1583 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
1584 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
1585 FROM buildings b
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1586 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
1587 WHERE b.river_id = ${river_id}
5467
6aa04b30f7ff Do not use != in sql statement
Andre Heinecke <aheinecke@intevation.de>
parents: 5466
diff changeset
1588 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
1589 </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
1590 <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
1591 <buildings description="{$building_kind}"
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
1592 factory="wmsbuildingsfactory" out="{$OUT}"
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
1593 ids="{$river_id};{$building_kind};{$building_kind_id}"/>
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
1594 </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
1595 </dc:context>
5435
70026e3b6af3 Add buildings of kind 0 to data cage
Andre Heinecke <aheinecke@intevation.de>
parents: 5405
diff changeset
1596 <dc:context>
70026e3b6af3 Add buildings of kind 0 to data cage
Andre Heinecke <aheinecke@intevation.de>
parents: 5405
diff changeset
1597 <dc:statement>
70026e3b6af3 Add buildings of kind 0 to data cage
Andre Heinecke <aheinecke@intevation.de>
parents: 5405
diff changeset
1598 SELECT DISTINCT
70026e3b6af3 Add buildings of kind 0 to data cage
Andre Heinecke <aheinecke@intevation.de>
parents: 5405
diff changeset
1599 b.name AS building_name,
5796
53cff50918b1 Fix other buildings.
Andre Heinecke <aheinecke@intevation.de>
parents: 5772
diff changeset
1600 bk.name AS building_kind,
53cff50918b1 Fix other buildings.
Andre Heinecke <aheinecke@intevation.de>
parents: 5772
diff changeset
1601 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
1602 FROM buildings b
70026e3b6af3 Add buildings of kind 0 to data cage
Andre Heinecke <aheinecke@intevation.de>
parents: 5405
diff changeset
1603 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
1604 WHERE river_id = ${river_id}
5796
53cff50918b1 Fix other buildings.
Andre Heinecke <aheinecke@intevation.de>
parents: 5772
diff changeset
1605 AND kind_id = 0
5435
70026e3b6af3 Add buildings of kind 0 to data cage
Andre Heinecke <aheinecke@intevation.de>
parents: 5405
diff changeset
1606 </dc:statement>
5796
53cff50918b1 Fix other buildings.
Andre Heinecke <aheinecke@intevation.de>
parents: 5772
diff changeset
1607 <dc:if test="dc:has-result()">
53cff50918b1 Fix other buildings.
Andre Heinecke <aheinecke@intevation.de>
parents: 5772
diff changeset
1608 <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
1609 <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
1610 <buildings description="{$building_name}"
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
1611 factory="wmsbuildingsfactory" out="{$OUT}"
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
1612 ids="{$river_id};{$building_name}"/>
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
1613 </dc:for-each>
5796
53cff50918b1 Fix other buildings.
Andre Heinecke <aheinecke@intevation.de>
parents: 5772
diff changeset
1614 </other>
53cff50918b1 Fix other buildings.
Andre Heinecke <aheinecke@intevation.de>
parents: 5772
diff changeset
1615 </dc:if>
5435
70026e3b6af3 Add buildings of kind 0 to data cage
Andre Heinecke <aheinecke@intevation.de>
parents: 5405
diff changeset
1616 </dc:context>
5437
b582df0c7b00 Add Jetties to floodmap
Andre Heinecke <aheinecke@intevation.de>
parents: 5435
diff changeset
1617 <dc:context>
b582df0c7b00 Add Jetties to floodmap
Andre Heinecke <aheinecke@intevation.de>
parents: 5435
diff changeset
1618 <dc:statement>
b582df0c7b00 Add Jetties to floodmap
Andre Heinecke <aheinecke@intevation.de>
parents: 5435
diff changeset
1619 SELECT DISTINCT
b582df0c7b00 Add Jetties to floodmap
Andre Heinecke <aheinecke@intevation.de>
parents: 5435
diff changeset
1620 j.kind_id AS jetty_kind_id,
b582df0c7b00 Add Jetties to floodmap
Andre Heinecke <aheinecke@intevation.de>
parents: 5435
diff changeset
1621 jk.name AS jetty_kind
b582df0c7b00 Add Jetties to floodmap
Andre Heinecke <aheinecke@intevation.de>
parents: 5435
diff changeset
1622 FROM jetties j
b582df0c7b00 Add Jetties to floodmap
Andre Heinecke <aheinecke@intevation.de>
parents: 5435
diff changeset
1623 JOIN jetty_kinds jk ON j.kind_id = jk.id
b582df0c7b00 Add Jetties to floodmap
Andre Heinecke <aheinecke@intevation.de>
parents: 5435
diff changeset
1624 WHERE river_id = ${river_id}
b582df0c7b00 Add Jetties to floodmap
Andre Heinecke <aheinecke@intevation.de>
parents: 5435
diff changeset
1625 </dc:statement>
b582df0c7b00 Add Jetties to floodmap
Andre Heinecke <aheinecke@intevation.de>
parents: 5435
diff changeset
1626 <dc:if test="dc:has-result()">
b582df0c7b00 Add Jetties to floodmap
Andre Heinecke <aheinecke@intevation.de>
parents: 5435
diff changeset
1627 <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
1628 <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
1629 <jetty description="{$jetty_kind}"
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
1630 factory="wmsjettiesfactory" out="{$OUT}"
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
1631 ids="{$river_id};{$jetty_kind};{$jetty_kind_id}"/>
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
1632 </dc:for-each>
5437
b582df0c7b00 Add Jetties to floodmap
Andre Heinecke <aheinecke@intevation.de>
parents: 5435
diff changeset
1633 </jetties>
b582df0c7b00 Add Jetties to floodmap
Andre Heinecke <aheinecke@intevation.de>
parents: 5435
diff changeset
1634 </dc:if>
b582df0c7b00 Add Jetties to floodmap
Andre Heinecke <aheinecke@intevation.de>
parents: 5435
diff changeset
1635 </dc:context>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1636 </dc:macro>
5464
f2bcf0fb1efd Add externalwms for Catchments to datacage config
Andre Heinecke <aheinecke@intevation.de>
parents: 5463
diff changeset
1637
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1638 <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
1639 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1640 <dc:statement>
5533
65fa2b22dc46 Remove useless km_exists statements
Andre Heinecke <aheinecke@intevation.de>
parents: 5529
diff changeset
1641 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
1642 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
1643 </dc:statement>
5533
65fa2b22dc46 Remove useless km_exists statements
Andre Heinecke <aheinecke@intevation.de>
parents: 5529
diff changeset
1644 <dc:for-each>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
1645 <fixpoints factory="wmsfixpointsfactory" out="{$OUT}"
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
1646 ids="{$river_id};{$name}"/>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1647 </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
1648 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1649 </dc:macro>
5466
ba1bf40a9787 Restructure datacage to have a route_data folder
Andre Heinecke <aheinecke@intevation.de>
parents: 5464
diff changeset
1650
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1651 <dc:macro name="flood-map-gaugelocations">
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
1652 <gauge_points factory="externalwmsfactory" out="{$OUT}" ids="http://www.pegelonline.wsv.de/webservices/gis/wms;Pegelpunkte;Pegelpunkte (WSV)"/>
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
1653 <gauge_names factory="externalwmsfactory" out="{$OUT}" ids="http://www.pegelonline.wsv.de/webservices/gis/wms;Pegelnamen;Pegelnamen (WSV)"/>
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
1654 <gauge_level factory="externalwmsfactory" out="{$OUT}" ids="http://www.pegelonline.wsv.de/webservices/gis/wms;Pegelwasserstand;Aktueller Wasserstand (WSV)"/>
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
1655 <gauge_tendency factory="externalwmsfactory" out="{$OUT}" ids="http://www.pegelonline.wsv.de/webservices/gis/wms;TendenzWasserstand;Tendenz des Wasserstands (WSV)"/>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1656 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1657
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1658 <dc:macro name="flood-map-uesk">
5534
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1659 <dc:context>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1660 <dc:statement>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1661 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
1662 </dc:statement>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1663 <dc:if test="dc:has-result()">
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1664 <uesk>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1665 <calculations>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1666 <dc:context>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1667 <dc:statement>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1668 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
1669 AND (kind = 112 OR kind = 111)
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1670 </dc:statement>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1671 <dc:if test="dc:has-result()">
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1672 <current>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1673 <dc:context>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1674 <dc:statement>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1675 SELECT DISTINCT name AS name
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1676 FROM floodmaps
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1677 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
1678 </dc:statement>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1679 <dc:if test="dc:has-result()">
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1680 <bfg>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1681 <dc:for-each>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
1682 <floodmaps factory="wmsfloodmapsfactory" out="{$OUT}"
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
1683 ids="{$river_id};{$name}"
5534
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1684 name="{$name}"/>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1685 </dc:for-each>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1686 </bfg>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1687 </dc:if>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1688 </dc:context>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1689 <dc:context>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1690 <dc:statement>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1691 SELECT DISTINCT name AS name
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1692 FROM floodmaps
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1693 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
1694 </dc:statement>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1695 <dc:if test="dc:has-result()">
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1696 <federal>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1697 <dc:for-each>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
1698 <floodmaps factory="wmsfloodmapsfactory" out="{$OUT}"
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
1699 ids="{$river_id};{$name}"
5534
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1700 name="{$name}"/>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1701 </dc:for-each>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1702 </federal>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1703 </dc:if>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1704 </dc:context>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1705 </current>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1706 </dc:if>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1707 </dc:context>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1708 <dc:context>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1709 <dc:statement>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1710 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
1711 AND (kind = 122 OR kind = 121)
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1712 </dc:statement>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1713 <dc:if test="dc:has-result()">
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1714 <potential>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1715 <dc:context>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1716 <dc:statement>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1717 SELECT DISTINCT name AS name
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1718 FROM floodmaps
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1719 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
1720 </dc:statement>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1721 <dc:if test="dc:has-result()">
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1722 <bfg>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1723 <dc:for-each>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
1724 <floodmaps factory="wmsfloodmapsfactory" out="{$OUT}"
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
1725 ids="{$river_id};{$name}"
5534
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1726 name="{$name}"/>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1727 </dc:for-each>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1728 </bfg>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1729 </dc:if>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1730 </dc:context>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1731 <dc:context>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1732 <dc:statement>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1733 SELECT DISTINCT
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1734 name AS name
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1735 FROM floodmaps
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1736 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
1737 </dc:statement>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1738 <dc:if test="dc:has-result()">
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1739 <federal>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1740 <dc:for-each>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
1741 <floodmaps factory="wmsfloodmapsfactory" out="{$OUT}"
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
1742 ids="{$river_id};{$name}"
5534
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1743 name="{$name}"/>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1744 </dc:for-each>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1745 </federal>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1746 </dc:if>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1747 </dc:context>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1748 </potential>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1749 </dc:if>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1750 </dc:context>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1751 </calculations>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1752 <dc:context>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1753 <dc:statement>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1754 SELECT DISTINCT
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1755 source AS source
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1756 FROM floodmaps
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1757 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
1758 </dc:statement>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1759 <dc:if test="dc:has-result()">
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1760 <measurements>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1761 <dc:for-each>
5534
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1762 <year name="{$source}">
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1763 <dc:context>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1764 <dc:statement>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1765 SELECT DISTINCT
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1766 name AS name
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1767 FROM floodmaps
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1768 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
1769 ${source}
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1770 </dc:statement>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1771 <dc:for-each>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
1772 <floodmaps factory="wmsfloodmapsfactory" out="{$OUT}"
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
1773 ids="{$river_id};{$name}"
5534
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1774 name="{$name}"/>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1775 </dc:for-each>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1776 </dc:context>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1777 </year>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1778 </dc:for-each>
5534
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1779 </measurements>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1780 </dc:if>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1781 </dc:context>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1782 </uesk>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1783 </dc:if>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1784 </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
1785 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1786
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1787 <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
1788 <qps>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1789 <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
1790 </qps>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1791 <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
1792 <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
1793 <axis>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1794 <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
1795 </axis>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1796 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1797
5547
38713f32a785 Add Floodmarks and all specified WMS services to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5534
diff changeset
1798 <dc:macro name="floodmarks">
38713f32a785 Add Floodmarks and all specified WMS services to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5534
diff changeset
1799 <dc:context>
38713f32a785 Add Floodmarks and all specified WMS services to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5534
diff changeset
1800 <dc:statement>
38713f32a785 Add Floodmarks and all specified WMS services to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5534
diff changeset
1801 SELECT DISTINCT
38713f32a785 Add Floodmarks and all specified WMS services to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5534
diff changeset
1802 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
1803 FROM flood_marks
38713f32a785 Add Floodmarks and all specified WMS services to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5534
diff changeset
1804 WHERE river_id = ${river_id}
38713f32a785 Add Floodmarks and all specified WMS services to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5534
diff changeset
1805 </dc:statement>
38713f32a785 Add Floodmarks and all specified WMS services to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5534
diff changeset
1806 <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
1807 <floodmarks>
38713f32a785 Add Floodmarks and all specified WMS services to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5534
diff changeset
1808 <dc:for-each>
38713f32a785 Add Floodmarks and all specified WMS services to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5534
diff changeset
1809 <floodmark name="{$year}"
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
1810 factory="wmsfloodmarkfactory" out="{$OUT}"
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
1811 ids="{$river_id};{$year};{$year}"/>
5547
38713f32a785 Add Floodmarks and all specified WMS services to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5534
diff changeset
1812 </dc:for-each>
38713f32a785 Add Floodmarks and all specified WMS services to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5534
diff changeset
1813 </floodmarks>
38713f32a785 Add Floodmarks and all specified WMS services to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5534
diff changeset
1814 </dc:if>
38713f32a785 Add Floodmarks and all specified WMS services to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5534
diff changeset
1815 </dc:context>
38713f32a785 Add Floodmarks and all specified WMS services to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5534
diff changeset
1816 </dc:macro>
38713f32a785 Add Floodmarks and all specified WMS services to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5534
diff changeset
1817
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1818 <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
1819 <buildings>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1820 <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
1821 </buildings>
4416dd518103 Remove OSM Intevation.de background layer from datacage :(
Andre Heinecke <aheinecke@intevation.de>
parents: 5760
diff changeset
1822 <catchments>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
1823 <catchment_wms factory="externalwmsfactory" out="{$OUT}"
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
1824 ids="http://geoportal.bafg.de/wmsproxy/INSPIRE/DrainageBasin;HY.PHYSICALWATERS.CATCHMENTS;Einzugsgebiete (WMS)" />
5761
4416dd518103 Remove OSM Intevation.de background layer from datacage :(
Andre Heinecke <aheinecke@intevation.de>
parents: 5760
diff changeset
1825 <gaugelocations>
4416dd518103 Remove OSM Intevation.de background layer from datacage :(
Andre Heinecke <aheinecke@intevation.de>
parents: 5760
diff changeset
1826 <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
1827 </gaugelocations>
4416dd518103 Remove OSM Intevation.de background layer from datacage :(
Andre Heinecke <aheinecke@intevation.de>
parents: 5760
diff changeset
1828 </catchments>
5547
38713f32a785 Add Floodmarks and all specified WMS services to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5534
diff changeset
1829 <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
1830 <hws>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1831 <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
1832 <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
1833 </hws>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1834 <route_data>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1835 <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
1836 </route_data>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1837 <hydrboundaries>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1838 <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
1839 <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
1840 </hydrboundaries>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1841 <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
1842 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1843
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1844 </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
1845
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1846 <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
1847 <single>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1848 <dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1849 <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
1850 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
1851 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
1852 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
1853 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
1854 </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
1855 <dc:for-each>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
1856 <height factory="bedheight" out="{$OUT}"
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
1857 ids="bedheight-single-{$bedh_id}-{$bedh_year}"
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1858 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
1859 </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
1860 </dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1861 </single>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1862 </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
1863
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1864 <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
1865 <epoch>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1866 <dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1867 <dc:statement>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1868 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
1869 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
1870 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
1871 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
1872 </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
1873 <dc:for-each>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
1874 <height factory="bedheight" out="{$OUT}"
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
1875 ids="bedheight-epoch-{$bedh_id}-{$bedh_interval_id}"
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1876 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
1877 </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
1878 </dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1879 </epoch>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1880 </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
1881
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
1882 </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
1883 </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
1884 </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
1885
1046
0a5eff5511b1 Fixed flys/issue262: Unified user and system datacage template
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
1886 <dc:choose>
0a5eff5511b1 Fixed flys/issue262: Unified user and system datacage template
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
1887 <dc:comment>
0a5eff5511b1 Fixed flys/issue262: Unified user and system datacage template
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
1888 User specific part
0a5eff5511b1 Fixed flys/issue262: Unified user and system datacage template
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
1889 ------------------
0a5eff5511b1 Fixed flys/issue262: Unified user and system datacage template
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
1890 </dc:comment>
5598
989c0d196bfe Do not show old calculations in hws datacage selection
Andre Heinecke <aheinecke@intevation.de>
parents: 5597
diff changeset
1891 <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
1892 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
1893
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1894 <old_calculations>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
1895
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1896 <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
1897 <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
1898 <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
1899 <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
1900 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1901 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
1902 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
1903 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
1904 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
1905 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1906
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1907 <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
1908 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1909 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
1910 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
1911 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
1912 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
1913 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
1914 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
1915 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
1916 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
1917 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
1918 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
1919 AND EXISTS (
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1920 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
1921 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1922 <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
1923 <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
1924 <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
1925 <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
1926 <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
1927 </dc:if>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1928 </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
1929 </dc:macro>
5670
40e909e52e4e Cosmetics.
Raimund Renkert <rrenkert@intevation.de>
parents: 5669
diff changeset
1930
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1931 <!-- OFFICIAL LINES -->
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1932 <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
1933 <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
1934 <officiallines>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1935 <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
1936 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1937 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1938 SELECT m.id AS a_id,
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1939 m.state AS a_state,
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1940 m.gid AS a_gid,
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1941 m.creation AS a_creation,
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1942 ardg.v AS gaugy,
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1943 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
1944 FROM master_artifacts m,
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1945 artifact_data ardg,
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1946 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
1947 WHERE m.collection_id = ${collection_id}
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1948 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
1949 AND ardg.artifact_id = m.id
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1950 AND ardg.k = 'ld_gaugename'
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1951 AND arv.artifact_id = m.id
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1952 AND arv.k = 'wq_single'
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1953 AND EXISTS (
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1954 SELECT id
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1955 FROM artifact_data ad
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1956 WHERE ad.artifact_id = m.id
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1957 AND k = 'river'
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1958 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
1959 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1960 <dc:for-each>
3307
81a98f360553 Very basic official lines in dc, malplaced.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3283
diff changeset
1961 <dc:context connection="system">
81a98f360553 Very basic official lines in dc, malplaced.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3283
diff changeset
1962 <dc:statement>
81a98f360553 Very basic official lines in dc, malplaced.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3283
diff changeset
1963 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
1964 FROM official_q_values ol
81a98f360553 Very basic official lines in dc, malplaced.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3283
diff changeset
1965 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
1966 </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
1967 <dc:for-each>
3307
81a98f360553 Very basic official lines in dc, malplaced.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3283
diff changeset
1968 <dc:element name="${olname}">
81a98f360553 Very basic official lines in dc, malplaced.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3283
diff changeset
1969 <dc:attribute name="name" value="${olname}"/>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
1970 <dc:attribute name="ids" value="additionals-wstv-${wstcolpos}-${wstid}"/>
3307
81a98f360553 Very basic official lines in dc, malplaced.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3283
diff changeset
1971 <dc:attribute name="factory" value="staticwkms"/>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
1972 <dc:attribute name="out" value="${out}"/>
3307
81a98f360553 Very basic official lines in dc, malplaced.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3283
diff changeset
1973 </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
1974 </dc:for-each>
3307
81a98f360553 Very basic official lines in dc, malplaced.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3283
diff changeset
1975 </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
1976 </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
1977 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1978 </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
1979 </officiallines>
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1980 </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
1981 <!-- 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
1982
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1983 <dc:comment>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1984 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
1985 </dc:comment>
1657
91d038c7aae5 Bugfix: #328 Improved datacage configuration and labels for selected waterlevels.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 1186
diff changeset
1986
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1987 <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
1988 <differences>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1989 <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
1990 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1991 <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
1992 <dc:context>
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
1993 <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
1994 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
1995 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
1996 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
1997 </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
1998 <dc:for-each>
1879
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
1999 <dc:element name="${facet_name}">
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2000 <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
2001 <dc:attribute name="factory" value="winfo"/>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
2002 <!-- <dc:attribute name="out" value="${out}"/>-->
1879
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2003 <dc:attribute name="artifact-id" value="${aid}"/>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
2004 <dc:attribute name="ids" value="${aid}"/>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2005 <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
2006 </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
2007 </dc:for-each>
1879
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2008 </dc:context>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2009 </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
2010 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2011 </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
2012 </differences>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2013 </dc:macro>
1657
91d038c7aae5 Bugfix: #328 Improved datacage configuration and labels for selected waterlevels.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 1186
diff changeset
2014
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2015 <dc:comment>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2016 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
2017 </dc:comment>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2018
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2019 <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
2020 <reference_curves>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2021 <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
2022 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2023 <dc:call-macro name="user-range">
2722
36631f23acdf Allow loading of previous reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2721
diff changeset
2024 <dc:context>
36631f23acdf Allow loading of previous reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2721
diff changeset
2025 <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
2026 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
2027 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
2028 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
2029 </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
2030 <dc:for-each>
2722
36631f23acdf Allow loading of previous reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2721
diff changeset
2031 <dc:element name="${facet_name}">
36631f23acdf Allow loading of previous reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2721
diff changeset
2032 <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
2033 <dc:attribute name="factory" value="winfo"/>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
2034 <!-- <dc:attribute name="out" value="${out}"/>-->
2722
36631f23acdf Allow loading of previous reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2721
diff changeset
2035 <dc:attribute name="artifact-id" value="${aid}"/>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
2036 <dc:attribute name="ids" value="${aid}"/>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2037 <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
2038 </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
2039 </dc:for-each>
2722
36631f23acdf Allow loading of previous reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2721
diff changeset
2040 </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
2041 </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
2042 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2043 </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
2044 </reference_curves>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2045 </dc:macro>
2722
36631f23acdf Allow loading of previous reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2721
diff changeset
2046
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2047 <dc:comment>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2048 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
2049 </dc:comment>
2722
36631f23acdf Allow loading of previous reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2721
diff changeset
2050
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2051 <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
2052 <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
2053 <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
2054 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2055 <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
2056 <dc:context>
ebd16028efa3 Include computed discharge curves in dc conf.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1879
diff changeset
2057 <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
2058 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
2059 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
2060 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
2061 </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
2062 <dc:for-each>
1880
ebd16028efa3 Include computed discharge curves in dc conf.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1879
diff changeset
2063 <dc:element name="${facet_name}">
ebd16028efa3 Include computed discharge curves in dc conf.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1879
diff changeset
2064 <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
2065 <dc:attribute name="factory" value="winfo"/>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
2066 <!-- <dc:attribute name="out" value="${out}"/>-->
1880
ebd16028efa3 Include computed discharge curves in dc conf.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1879
diff changeset
2067 <dc:attribute name="artifact-id" value="${aid}"/>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
2068 <dc:attribute name="ids" value="${aid}"/>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2069 <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
2070 </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
2071 </dc:for-each>
1880
ebd16028efa3 Include computed discharge curves in dc conf.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1879
diff changeset
2072 </dc:context>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2073 </dc:call-macro>
3579
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2074 </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
2075 </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
2076 </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
2077 </dc:macro>
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>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2080 CROSS SECTION
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2081 </dc:comment>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2082
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2083 <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
2084 <waterlevels>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2085 <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
2086 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2087 <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
2088 <dc:context>
15c6f79ca3e2 Add duration_curve.q loading via datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2689
diff changeset
2089 <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
2090 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
2091 FROM outs
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2092 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
2093 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2094 <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
2095 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2096 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2097 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
2098 FROM facets
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2099 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
2100 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
2101 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2102 <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
2103 <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
2104 <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
2105 <dc:attribute name="description" value="${facet_description}"/>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
2106 <dc:attribute name="ids" value="${facet_num}"/>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2107 <dc:attribute name="factory" value="winfo"/>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
2108 <!-- <dc:attribute name="out" value="${out}"/>-->
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2109 <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
2110 <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
2111 </dc:element>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2112 </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
2113 </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
2114 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2115 </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
2116 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2117 </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
2118 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2119 </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
2120 </waterlevels>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2121 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2122
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2123 <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
2124 <waterlevels>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2125 <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
2126 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2127 <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
2128 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2129 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2130 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
2131 FROM outs
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2132 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
2133 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2134 <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
2135 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2136 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2137 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
2138 FROM facets
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2139 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
2140 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
2141 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2142 <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
2143 <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
2144 <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
2145 <dc:attribute name="description" value="${facet_description}"/>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
2146 <dc:attribute name="ids" value="${facet_num}"/>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2147 <dc:attribute name="factory" value="winfo"/>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
2148 <!-- <dc:attribute name="out" value="${out}"/>-->
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2149 <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
2150 <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
2151 </dc:element>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2152 </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
2153 </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
2154 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2155 </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
2156 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2157 </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
2158 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2159 </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
2160 </waterlevels>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2161 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2162
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2163 <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
2164 <waterlevels>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2165 <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
2166 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2167 <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
2168 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2169 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2170 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
2171 FROM outs
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2172 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
2173 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2174 <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
2175 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2176 <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
2177 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2178 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
2179 FROM facets
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2180 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
2181 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
2182 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
2183 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
2184 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
2185 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
2186 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2187 <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
2188 <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
2189 <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
2190 <dc:attribute name="description" value="${facet_description}"/>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
2191 <dc:attribute name="ids" value="${facet_num}"/>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2192 <dc:attribute name="factory" value="fixanalysis"/>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
2193 <!-- <dc:attribute name="out" value="${out}"/>-->
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2194 <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
2195 <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
2196 </dc:element>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2197 </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
2198 </waterlevels>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2199 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2200 </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
2201 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2202 </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
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:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2205 </waterlevels>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2206 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2207
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2208 <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
2209 <waterlevels>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2210 <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
2211 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2212 <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
2213 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2214 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2215 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
2216 FROM outs
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2217 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
2218 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2219 <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
2220 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2221 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2222 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
2223 FROM facets
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2224 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
2225 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
2226 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
2227 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
2228 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
2229 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
2230 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
2231 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2232 <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
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: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
2235 <dc:attribute name="description" value="${facet_description}"/>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
2236 <dc:attribute name="ids" value="${facet_num}"/>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2237 <dc:attribute name="factory" value="fixanalysis"/>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
2238 <!-- <dc:attribute name="out" value="${out}"/>-->
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2239 <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
2240 <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
2241 </dc:element>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2242 </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
2243 </waterlevels>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2244 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2245 </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
2246 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2247 </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
2248 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2249 </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
2250 </waterlevels>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2251 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2252
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
2253 <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
2254 <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
2255 <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
2256 <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
2257 <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
2258 <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
2259 <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
2260 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
2261 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
2262 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
2263 </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
2264 <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
2265 <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
2266 <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
2267 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
2268 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
2269 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
2270 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
2271 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
2272 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
2273 </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
2274 <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
2275 <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
2276 <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
2277 <dc:attribute name="description" value="${facet_description}"/>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
2278 <dc:attribute name="ids" value="${facet_num}"/>
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
2279 <dc:attribute name="factory" value="fixanalysis"/>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
2280 <!-- <dc:attribute name="out" value="${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
2281 <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
2282 <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
2283 </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
2284 </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
2285 </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
2286 </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
2287 </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
2288 </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
2289 </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
2290 </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
2291 </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
2292 </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
2293 </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
2294
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2295 <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
2296 <waterlevels>
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 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2299 <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
2300 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2301 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2302 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
2303 FROM outs
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2304 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
2305 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2306 <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
2307 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2308 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2309 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
2310 FROM facets
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2311 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
2312 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
2313 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2314 <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
2315 <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
2316 <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
2317 <dc:attribute name="description" value="${facet_description}"/>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
2318 <dc:attribute name="ids" value="${facet_num}"/>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2319 <dc:attribute name="factory" value="fixanalysis"/>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
2320 <!-- <dc:attribute name="out" value="${out}"/>-->
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2321 <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
2322 <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
2323 </dc:element>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2324 </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
2325 </waterlevels>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2326 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2327 </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
2328 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2329 </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
2330 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2331 </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
2332 </waterlevels>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2333 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2334
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2335 <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
2336 <waterlevels>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2337 <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
2338 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2339 <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
2340 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2341 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2342 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
2343 FROM outs
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2344 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
2345 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2346 <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
2347 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2348 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2349 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
2350 FROM facets
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2351 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
2352 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
2353 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
2354 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
2355 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
2356 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
2357 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2358 <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
2359 <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
2360 <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
2361 <dc:attribute name="description" value="${facet_description}"/>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
2362 <dc:attribute name="ids" value="${facet_num}"/>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2363 <dc:attribute name="factory" value="fixanalysis"/>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
2364 <!-- <dc:attribute name="out" value="${out}"/>-->
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2365 <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
2366 <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
2367 </dc:element>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2368 </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
2369 </waterlevels>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2370 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2371 </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
2372 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2373 </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
2374 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2375 </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
2376 </waterlevels>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2377 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2378
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2379 <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
2380 <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
2381 <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
2382 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2383 <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
2384 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2385 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2386 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
2387 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
2388 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
2389 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
2390 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
2391 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
2392 WHERE
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2393 (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
2394 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
2395 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
2396 a.id = ${a_id}
2690
15c6f79ca3e2 Add duration_curve.q loading via datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2689
diff changeset
2397 </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
2398 <dc:for-each>
2690
15c6f79ca3e2 Add duration_curve.q loading via datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2689
diff changeset
2399 <dc:element name="${facet_name}">
15c6f79ca3e2 Add duration_curve.q loading via datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2689
diff changeset
2400 <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
2401 <dc:attribute name="factory" value="winfo"/>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
2402 <!-- <dc:attribute name="out" value="${out}"/>-->
2690
15c6f79ca3e2 Add duration_curve.q loading via datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2689
diff changeset
2403 <dc:attribute name="artifact-id" value="${aid}"/>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
2404 <dc:attribute name="ids" value="${aid}"/>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2405 <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
2406 </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
2407 </dc:for-each>
2690
15c6f79ca3e2 Add duration_curve.q loading via datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2689
diff changeset
2408 </dc:context>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2409 </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
2410 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2411 </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
2412 </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
2413 </dc:macro>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2414
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2415 <dc:comment>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2416 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
2417 </dc:comment>
1879
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2418
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2419 <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
2420
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2421 <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
2422 <waterlevels>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2423 <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
2424 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2425 <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
2426 <dc:context>
bf598599782a Made old calculation results available for floodmaps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2086
diff changeset
2427 <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
2428 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
2429 FROM outs
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2430 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
2431 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2432 <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
2433 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2434 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2435 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
2436 FROM facets
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2437 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
2438 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
2439 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2440 <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
2441 <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
2442 <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
2443 <dc:attribute name="description" value="${facet_description}"/>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
2444 <dc:attribute name="ids" value="${facet_num}"/>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2445 <dc:attribute name="factory" value="winfo"/>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
2446 <!-- <dc:attribute name="out" value="${out}"/>-->
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2447 <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
2448 <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
2449 </dc:element>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2450 </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
2451 </waterlevels>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2452 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2453 </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
2454 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2455 </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
2456 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2457 </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
2458 </waterlevels>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2459 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2460
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2461 <dc:comment>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2462 SHOW FLOODMAPS
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2463 </dc:comment>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2464
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2465 <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
2466 <floodmap>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2467 <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
2468 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2469 <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
2470 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2471 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2472 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
2473 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
2474 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
2475 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
2476 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
2477 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
2478 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
2479 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
2480 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
2481 a.id = ${a_id}
2096
bf598599782a Made old calculation results available for floodmaps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2086
diff changeset
2482 </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
2483 <dc:for-each>
2096
bf598599782a Made old calculation results available for floodmaps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2086
diff changeset
2484 <dc:element name="${facet_name}">
bf598599782a Made old calculation results available for floodmaps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2086
diff changeset
2485 <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
2486 <dc:attribute name="factory" value="winfo"/>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
2487 <!-- <dc:attribute name="out" value="${out}"/>-->
2096
bf598599782a Made old calculation results available for floodmaps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2086
diff changeset
2488 <dc:attribute name="artifact-id" value="${aid}"/>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
2489 <dc:attribute name="ids" value="${aid}"/>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2490 <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
2491 </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
2492 </dc:for-each>
2096
bf598599782a Made old calculation results available for floodmaps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2086
diff changeset
2493 </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
2494 </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
2495 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2496 </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
2497 </floodmap>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2498 </dc:macro>
2096
bf598599782a Made old calculation results available for floodmaps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2086
diff changeset
2499
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2500 <dc:comment>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2501 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
2502 </dc:comment>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2503
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2504 <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
2505 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2506 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2507 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
2508 FROM outs
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2509 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
2510 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2511 <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
2512 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2513 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2514 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
2515 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
2516 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
2517 FROM facets
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2518 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
2519 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
2520 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2521 <own-hws>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2522 <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
2523 <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
2524 <dc:attribute name="description" value="${facet_description}"/>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
2525 <dc:attribute name="ids" value="${facet_num}"/>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2526 <dc:attribute name="factory" value="winfo"/>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
2527 <!-- <dc:attribute name="out" value="${out}"/>-->
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2528 <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
2529 <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
2530 </dc:element>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2531 </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
2532 </own-hws>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2533 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2534 </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
2535 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2536 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2537
5549
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2538 <dc:macro name="bedquality-bed">
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2539 <bed_quality_bed>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2540 <dc:for-each>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2541 <dc:context>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2542 <dc:call-macro name="range-filter">
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2543 <dc:context>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2544 <dc:statement>
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2545 SELECT id AS oid
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2546 FROM outs AS o
5549
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2547 WHERE
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2548 o.artifact_id = ${a_id} AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2549 o.name='bed_longitudinal_section'
5549
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2550 </dc:statement>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2551 <dc:for-each>
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2552 <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
2553 <dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2554 <dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2555 SELECT a.gid AS aid,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2556 f.id AS fid,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2557 f.name AS facet_name,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2558 f.num AS facet_num,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2559 f.description AS facet_description
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2560 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
2561 WHERE
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2562 (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
2563 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
2564 f.out_id = o.id AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2565 o.artifact_id = ${a_id} AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2566 a.id = ${a_id}
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2567 </dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2568 <dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2569 <dc:element name="${facet_name}">
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2570 <dc:attribute name="factory" value="minfo"/>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
2571 <!-- <dc:attribute name="out" value="${out}"/>-->
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2572 <dc:attribute name="description" value="${facet_description}"/>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
2573 <dc:attribute name="ids" value="${facet_num}-${facet_name}"/>
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2574 <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
2575 <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
2576 </dc:element>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2577 </dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2578 </dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2579 </quality-bed>
5549
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2580 </dc:for-each>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2581 </dc:context>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2582 </dc:call-macro>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2583 </dc:context>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2584 </dc:for-each>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2585 </bed_quality_bed>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2586 </dc:macro>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2587
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2588 <dc:macro name="bedquality-load">
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2589 <bed_quality_load>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2590 <dc:for-each>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2591 <dc:context>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2592 <dc:call-macro name="range-filter">
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2593 <dc:context>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2594 <dc:statement>
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2595 SELECT id AS oid
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2596 FROM outs AS o
5549
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2597 WHERE
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2598 o.artifact_id = ${a_id} AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2599 o.name='bed_longitudinal_section'
5549
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2600 </dc:statement>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2601 <dc:for-each>
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2602 <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
2603 <dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2604 <dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2605 SELECT a.gid AS aid,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2606 f.id AS fid,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2607 f.name AS facet_name,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2608 f.num AS facet_num,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2609 f.description AS facet_description
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2610 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
2611 WHERE
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2612 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
2613 f.out_id = o.id AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2614 o.artifact_id = ${a_id} AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2615 a.id = ${a_id}
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2616 </dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2617 <dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2618 <dc:element name="${facet_name}">
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2619 <dc:attribute name="factory" value="minfo"/>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
2620 <!-- <dc:attribute name="out" value="${out}"/>-->
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2621 <dc:attribute name="description" value="${facet_description}"/>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
2622 <dc:attribute name="ids" value="${facet_num}-${facet_name}"/>
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2623 <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
2624 <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
2625 </dc:element>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2626 </dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2627 </dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2628 </quality-load>
5549
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2629 </dc:for-each>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2630 </dc:context>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2631 </dc:call-macro>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2632 </dc:context>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2633 </dc:for-each>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2634 </bed_quality_load>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2635 </dc:macro>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2636
5591
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2637 <dc:macro name="bedquality-density">
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2638 <bed_quality_density>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2639 <dc:for-each>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2640 <dc:context>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2641 <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
2642 <dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2643 <dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2644 SELECT id AS oid
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2645 FROM outs AS o
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2646 WHERE
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2647 o.artifact_id = ${a_id} AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2648 o.name='bed_longitudinal_section'
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2649 </dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2650 <dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2651 <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
2652 <dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2653 <dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2654 SELECT a.gid AS aid,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2655 f.id AS fid,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2656 f.name AS facet_name,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2657 f.num AS facet_num,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2658 f.description AS facet_description
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2659 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
2660 WHERE
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2661 (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
2662 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
2663 f.out_id = o.id AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2664 o.artifact_id = ${a_id} AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2665 a.id = ${a_id}
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2666 </dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2667 <dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2668 <dc:element name="${facet_name}">
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2669 <dc:attribute name="factory" value="minfo"/>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
2670 <!-- <dc:attribute name="out" value="${out}"/>-->
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2671 <dc:attribute name="description" value="${facet_description}"/>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
2672 <dc:attribute name="ids" value="${facet_num}-${facet_name}"/>
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2673 <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
2674 <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
2675 </dc:element>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2676 </dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2677 </dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2678 </density>
5591
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2679 </dc:for-each>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2680 </dc:context>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2681 </dc:call-macro>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2682 </dc:context>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2683 </dc:for-each>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2684 </bed_quality_density>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2685 </dc:macro>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2686
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2687 <dc:macro name="bedquality-porosity">
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2688 <bed_quality_porosity>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2689 <dc:for-each>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2690 <dc:context>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2691 <dc:call-macro name="range-filter">
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2692 <dc:context>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2693 <dc:statement>
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2694 SELECT id AS oid
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2695 FROM outs AS o
5591
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2696 WHERE
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2697 o.artifact_id = ${a_id} AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2698 o.name='bed_longitudinal_section'
5591
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2699 </dc:statement>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2700 <dc:for-each>
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2701 <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
2702 <dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2703 <dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2704 SELECT a.gid AS aid,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2705 f.id AS fid,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2706 f.name AS facet_name,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2707 f.num AS facet_num,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2708 f.description AS facet_description
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2709 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
2710 WHERE
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2711 (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
2712 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
2713 f.out_id = o.id AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2714 o.artifact_id = ${a_id} AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2715 a.id = ${a_id}
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2716 </dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2717 <dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2718 <dc:element name="${facet_name}">
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2719 <dc:attribute name="factory" value="minfo"/>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
2720 <!-- <dc:attribute name="out" value="${out}"/>-->
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2721 <dc:attribute name="description" value="${facet_description}"/>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
2722 <dc:attribute name="ids" value="${facet_num}-${facet_name}"/>
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2723 <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
2724 <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
2725 </dc:element>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2726 </dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2727 </dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2728 </porosity>
5591
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2729 </dc:for-each>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2730 </dc:context>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2731 </dc:call-macro>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2732 </dc:context>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2733 </dc:for-each>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2734 </bed_quality_porosity>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2735 </dc:macro>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2736
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2737 <dc:macro name="flow-velocity">
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2738 <flow-velocity>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2739 <dc:for-each>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2740 <dc:context>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2741 <dc:call-macro name="range-filter">
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2742 <dc:context>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2743 <dc:statement>
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2744 SELECT id AS oid
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2745 FROM outs AS o
5591
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2746 WHERE
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2747 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
2748 </dc:statement>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2749 <dc:for-each>
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2750 <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
2751 <dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2752 <dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2753 SELECT a.gid AS aid,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2754 f.id AS fid,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2755 f.name AS facet_name,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2756 f.num AS facet_num,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2757 f.description AS facet_description
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2758 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
2759 WHERE
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2760 (f.name = 'flow_velocity.totalchannel' OR
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2761 f.name = 'flow_velocity.mainchannel' OR
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2762 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
2763 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
2764 f.out_id = o.id AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2765 o.artifact_id = ${a_id} AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2766 a.id = ${a_id}
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2767 </dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2768 <dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2769 <dc:element name="${facet_name}">
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2770 <dc:attribute name="factory" value="minfo"/>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
2771 <!-- <dc:attribute name="out" value="${out}"/>-->
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2772 <dc:attribute name="description" value="${facet_description}"/>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
2773 <dc:attribute name="ids" value="${facet_num}-${facet_name}"/>
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2774 <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
2775 <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
2776 </dc:element>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2777 </dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2778 </dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2779 </flow>
5591
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2780 </dc:for-each>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2781 </dc:context>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2782 </dc:call-macro>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2783 </dc:context>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2784 </dc:for-each>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2785 </flow-velocity>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2786 </dc:macro>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2787
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2788 <dc:macro name="sediment-load">
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2789 <sediment-load>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2790 <dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2791 <dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2792 <dc:call-macro name="range-filter">
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2793 <dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2794 <dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2795 SELECT id AS oid
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2796 FROM outs AS o
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2797 WHERE
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2798 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
2799 </dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2800 <dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2801 <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
2802 <dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2803 <dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2804 SELECT a.gid AS aid,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2805 f.id AS fid,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2806 f.name AS facet_name,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2807 f.num AS facet_num,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2808 f.description AS facet_description
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2809 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
2810 WHERE f.name LIKE 'sedimentload%' AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2811 f.out_id = o.id AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2812 o.artifact_id = ${a_id} AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2813 a.id = ${a_id}
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2814 </dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2815 <dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2816 <dc:element name="${facet_name}">
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2817 <dc:attribute name="factory" value="minfo"/>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
2818 <!-- <dc:attribute name="out" value="${out}"/>-->
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2819 <dc:attribute name="description" value="${facet_description}"/>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
2820 <dc:attribute name="ids" value="${facet_num}-${facet_name}"/>
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2821 <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
2822 <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
2823 </dc:element>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2824 </dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2825 </dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2826 </load>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2827 </dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2828 </dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2829 </dc:call-macro>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2830 </dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2831 </dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2832 </sediment-load>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2833 </dc:macro>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2834
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2835 <dc:macro name="bedheight-differences">
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2836 <bedheight-differences>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2837 <dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2838 <dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2839 <dc:call-macro name="range-filter">
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2840 <dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2841 <dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2842 SELECT id AS oid,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2843 name AS o_name
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2844 FROM outs AS o
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2845 WHERE
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2846 o.artifact_id = ${a_id} AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2847 (o.name = 'bed_difference_year' OR
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2848 o.name = 'bed_differnece_epoch')
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2849 </dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2850 <dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2851 <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
2852 <dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2853 <dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2854 SELECT a.gid AS aid,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2855 f.id AS fid,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2856 f.name AS facet_name,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2857 f.num AS facet_num,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2858 f.description AS facet_description
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2859 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
2860 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
2861 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
2862 f.out_id = o.id AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2863 o.artifact_id = ${a_id} AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2864 a.id = ${a_id}
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2865 </dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2866 <dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2867 <dc:element name="${facet_name}">
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2868 <dc:attribute name="factory" value="minfo"/>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
2869 <!-- <dc:attribute name="out" value="${out}"/>-->
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2870 <dc:attribute name="description" value="${facet_description}"/>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
2871 <dc:attribute name="ids" value="${facet_num}-${facet_name}"/>
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2872 <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
2873 <dc:choose>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2874 <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
2875 <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
2876 </dc:when>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2877 <dc:otherwise>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2878 <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
2879 </dc:otherwise>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2880 </dc:choose>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2881 </dc:element>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2882 </dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2883 </dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2884 </difference>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2885 </dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2886 </dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2887 </dc:call-macro>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2888 </dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2889 </dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2890 </bedheight-differences>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2891 </dc:macro>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2892
5669
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2893 <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
2894 <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
2895 <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
2896 <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
2897 <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
2898 <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
2899 <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
2900 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
2901 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
2902 WHERE
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2903 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
2904 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
2905 </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
2906 <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
2907 <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
2908 <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
2909 <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
2910 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
2911 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
2912 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
2913 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
2914 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
2915 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
2916 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
2917 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
2918 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
2919 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
2920 </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
2921 <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
2922 <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
2923 <dc:attribute name="factory" value="winfo"/>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
2924 <!-- <dc:attribute name="out" value="${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
2925 <dc:attribute name="description" value="${facet_description}"/>
6021
5f34e4cb8095 Use the out attribute everywhere where there is a factory
Andre Heinecke <aheinecke@intevation.de>
parents: 6003
diff changeset
2926 <dc:attribute name="ids" value="${facet_num}-${facet_name}"/>
5669
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2927 <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
2928 <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
2929 </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
2930 </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
2931 </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
2932 </discharge>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2933 </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
2934 </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
2935 </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
2936 </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
2937 </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
2938 </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
2939 </dc:macro>
5549
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2940
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2941 <dc:iterate var="out" container="artifact-outs">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2942 <dc:choose>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2943 <dc:when test="$out = 'longitudinal_section'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2944 <dc:call-macro name="longitudinal"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2945 <dc:call-macro name="differences"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2946 <dc:call-macro name="officiallines_user"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2947 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2948 <dc:when test="$out = 'discharge_longitudinal_section'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2949 <dc:call-macro name="longitudinal"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2950 <dc:call-macro name="differences"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2951 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2952 <dc:when test="$out = 'w_differences'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2953 <dc:call-macro name="longitudinal"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2954 <dc:call-macro name="differences"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2955 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2956 <dc:when test="$out = 'fix_deltawt_curve'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2957 <dc:call-macro name="delta-wt"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2958 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2959 <dc:when test="$out = 'reference_curve'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2960 <dc:call-macro name="reference-curves"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2961 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2962 <dc:when test="$out = 'computed_discharge_curve'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2963 <dc:call-macro name="computed-discharge-curve"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2964 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2965 <dc:when test="$out = 'cross_section'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2966 <dc:call-macro name="waterlevels"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2967 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2968 <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
2969 <dc:call-macro name="longitudinal-section"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2970 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2971 <dc:when test="$out = 'fix_derivate_curve'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2972 <dc:call-macro name="fix-derivate-curve"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2973 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2974 <dc:when test="$out = 'fix_wq_curve'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2975 <dc:call-macro name="fix-wq-curve"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2976 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2977 <dc:when test="$out = 'duration_curve'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2978 <dc:call-macro name="duration-curve"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2979 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2980 <dc:when test="$out = 'waterlevels'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2981 <!-- base data -->
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2982 <dc:call-macro name="basedata_0"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2983 <!-- extra-longitudinal-sections -->
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2984 <dc:call-macro name="basedata_1_additionals"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2985 <!-- fixations -->
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2986 <dc:call-macro name="basedata_2_fixations"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2987 <!-- flood water marks-->
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2988 <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
2989 <!-- flood protection -->
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2990 <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
2991 <dc:call-macro name="waterlevels-fix"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2992 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2993 <dc:when test="$out = 'fix_wq_curve'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2994 <dc:call-macro name="waterlevels-fix"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2995 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2996 <dc:when test="$out = 'floodmap'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2997 <dc:call-macro name="flood-map"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2998 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
2999 <dc:when test="$out = 'map'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3000 <dc:call-macro name="flood-map"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3001 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3002 <dc:when test="$out = 'bedheight_middle'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3003 <dc:call-macro name="waterlevels-discharge"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3004 <dc:call-macro name="waterlevels-fix"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3005 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3006 <dc:when test="$out = 'floodmap-hws'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3007 <dc:call-macro name="floodmap-hws-user"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3008 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3009 <dc:when test="$out = 'flow_velocity'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3010 <dc:call-macro name="bedquality-bed"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3011 <dc:call-macro name="bedquality-load"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3012 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3013 <dc:when test="$out = 'bed_longitudinal_section'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3014 <dc:call-macro name="bedquality-bed"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3015 <dc:call-macro name="bedquality-load"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3016 <dc:call-macro name="bedquality-density"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3017 <dc:call-macro name="bedquality-porosity"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3018 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3019 <dc:when test="$out = 'sedimentload_ls'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3020 <dc:call-macro name="differences"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3021 <dc:call-macro name="bedheight-differences"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3022 <dc:call-macro name="flow-velocity"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3023 <dc:call-macro name="sediment-load"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3024 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3025 <dc:when test="$out = 'bed_difference_year'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3026 <dc:call-macro name="waterlevels-discharge"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3027 <dc:call-macro name="bedheight-differences"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3028 <dc:call-macro name="differences"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3029 <dc:call-macro name="waterlevels-fix"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3030 <dc:call-macro name="delta-wt-ls"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3031 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3032 <dc:when test="$out = 'bed_difference_epoch'">
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3033 <dc:call-macro name="waterlevels-discharge"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3034 <dc:call-macro name="bedheight-differences"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3035 <dc:call-macro name="differences"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3036 <dc:call-macro name="waterlevels-fix"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3037 <dc:call-macro name="delta-wt-ls"/>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3038 </dc:when>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3039 </dc:choose>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
3040 </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
3041 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
3042 </dc:call-macro>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
3043
1046
0a5eff5511b1 Fixed flys/issue262: Unified user and system datacage template
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
3044 </old_calculations>
1657
91d038c7aae5 Bugfix: #328 Improved datacage configuration and labels for selected waterlevels.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 1186
diff changeset
3045
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
3046 <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
3047 <dc:comment>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
3048 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
3049 -----------------------------------------------------------------
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
3050 </dc:comment>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
3051 <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
3052 </dc:if>
1046
0a5eff5511b1 Fixed flys/issue262: Unified user and system datacage template
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
3053 </dc:when>
1657
91d038c7aae5 Bugfix: #328 Improved datacage configuration and labels for selected waterlevels.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 1186
diff changeset
3054
1046
0a5eff5511b1 Fixed flys/issue262: Unified user and system datacage template
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
3055 <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
3056 <dc:comment>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
3057 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
3058 ---------------------------------------------------------
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
3059 </dc:comment>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
3060 <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
3061 </dc:otherwise>
0a5eff5511b1 Fixed flys/issue262: Unified user and system datacage template
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
3062 </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
3063
1046
0a5eff5511b1 Fixed flys/issue262: Unified user and system datacage template
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
3064 </datacage>
0a5eff5511b1 Fixed flys/issue262: Unified user and system datacage template
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
3065 </dc:template>

http://dive4elements.wald.intevation.org