annotate flys-artifacts/doc/conf/meta-data.xml @ 5516:56d18ecc7d41

Add Pegelonline-Pegelpunkte layer instead of gauge_locations
author Andre Heinecke <aheinecke@intevation.de>
date Thu, 28 Mar 2013 17:14:16 +0100
parents 87dab419b924
children eeac800eb4cd
rev   line source
1046
0a5eff5511b1 Fixed flys/issue262: Unified user and system datacage template
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
1 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
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
065a78d65007 meta-data.xml: Access wst_ranges and provide range is info-element.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4894
diff changeset
15 FROM wst_columns, wst_ranges
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
16 WHERE wst_columns.wst_id = ${prot_id}
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
17 AND wst_ranges.wst_column_id = wst_columns.id
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
18 AND (${fromkm} BETWEEN wst_ranges.a AND wst_ranges.b
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
19 OR ${tokm} BETWEEN wst_ranges.a AND wst_ranges.b
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
20 OR wst_ranges.a BETWEEN ${fromkm} AND ${tokm}
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
21 OR wst_ranges.b BETWEEN ${fromkm} AND ${tokm})
4894
5741970e2c58 meta-data.xml: Replace wst_columns queries by macro call.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4892
diff changeset
22 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
23 </dc:statement>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
24 </dc:macro>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
25
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
26 <dc:comment>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
27 Load user specific distance information from artifact.
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
28 </dc:comment>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
29 <dc:macro name="user-range">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
30 <dc:choose>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
31 <dc:when test="dc:contains($parameters, 'user-id')">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
32 <dc:context connection="user">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
33 <dc:statement>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
34 SELECT COALESCE(ld_mode, '') AS ldm,
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
35 COALESCE(ld_locations, '') AS ldl,
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
36 COALESCE(ld_from, '') AS ldf,
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
37 COALESCE(ld_to, '') AS ldt
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
38 FROM master_artifacts_range
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
39 WHERE gid = CAST(${artifact-id} as uuid)
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
40 </dc:statement>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
41 <dc:elements>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
42 <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
43 <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
44 <dc:macro-body/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
45 </dc:elements>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
46 </dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
47 </dc:when>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
48 <dc:otherwise>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
49 <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
50 <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
51 <dc:macro-body/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
52 </dc:otherwise>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
53 </dc:choose>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
54 </dc:macro>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
55
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
56 <dc:comment>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
57 System part. Load data for the given river.
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
58 </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
59 <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
60 <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
61 <dc:statement>
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
62 SELECT id AS river_id, name as river_name FROM rivers
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
63 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
64 </dc:statement>
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
65 <dc:elements>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
66
1790
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
67 <dc:comment>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
68 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
69 </dc:comment>
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
70 <dc:macro name="basedata_0">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
71 <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
72 <dc:comment comment=" BASEDATA ---------------------------"/>
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
73 <basedata>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
74 <dc:context connection="system">
1790
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
75 <dc:statement>
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
76 SELECT id AS prot_id,
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
77 description AS prot_description
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
78 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
79 </dc:statement>
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
80 <dc:elements>
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
81 <basedata>
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
82 <dc:attribute name="name" value="${prot_description}"/>
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
83 <dc:context>
4894
5741970e2c58 meta-data.xml: Replace wst_columns queries by macro call.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4892
diff changeset
84 <dc:call-macro name="SQL-wst_columns_statement"/>
1790
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
85 <dc:elements>
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
86 <column>
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
87 <dc:attribute name="name" value="${prot_column_name}"/>
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
88 <dc:attribute name="ids" value="base_data-wstv-${prot_rel_pos}-${prot_id}"/>
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
89 <dc:attribute name="factory" value="staticwkms"/>
4895
065a78d65007 meta-data.xml: Access wst_ranges and provide range is info-element.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4894
diff changeset
90 <dc:attribute name="info" value="${info} [km ${deffrom} - ${defto}]"/>
1790
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
91 </column>
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
92 </dc:elements>
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
93 </dc:context>
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
94 </basedata>
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
95 </dc:elements>
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
96 </dc:context>
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
97 </basedata>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
98 </dc:call-macro>
1790
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
99 </dc:macro>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
100
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
101 <dc:macro name="basedata_0_wq">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
102 <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
103 <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
104 <basedata>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
105 <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
106 <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
107 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
108 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
109 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
110 </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
111 <dc:elements>
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
112 <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
113 <dc:attribute name="name" value="${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
114 <dc:context>
4894
5741970e2c58 meta-data.xml: Replace wst_columns queries by macro call.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4892
diff changeset
115 <dc:call-macro name="SQL-wst_columns_statement"/>
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
116 <dc:elements>
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
117 <column>
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:attribute name="name" value="${prot_column_name}"/>
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 <dc:attribute name="ids" value="base_data-wstv-${prot_rel_pos}-${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
120 <dc:attribute name="factory" value="wqinterpol"/>
4895
065a78d65007 meta-data.xml: Access wst_ranges and provide range is info-element.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4894
diff changeset
121 <dc:attribute name="info" value="${info} [km ${deffrom} - ${defto}]"/>
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
122 </column>
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
123 </dc:elements>
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
124 </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
125 </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
126 </dc:elements>
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
127 </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
128 </basedata>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
129 </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
130 </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
131
4143
58864f4f6e3b Fix issue946 (own style for wkms annotation facets in wq diagrams).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4126
diff changeset
132 <dc:macro name="basedata_1_additionals_marks">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
133 <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
134 <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
135 <additionals>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
136 <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
137 <dc:statement>
58864f4f6e3b Fix issue946 (own style for wkms annotation facets in wq diagrams).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4126
diff changeset
138 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
139 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
140 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
141 </dc:statement>
58864f4f6e3b Fix issue946 (own style for wkms annotation facets in wq diagrams).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4126
diff changeset
142 <dc:elements>
58864f4f6e3b Fix issue946 (own style for wkms annotation facets in wq diagrams).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4126
diff changeset
143 <additional>
58864f4f6e3b Fix issue946 (own style for wkms annotation facets in wq diagrams).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4126
diff changeset
144 <dc:attribute name="name" value="${prot_description}"/>
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>
4894
5741970e2c58 meta-data.xml: Replace wst_columns queries by macro call.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4892
diff changeset
146 <dc:call-macro name="SQL-wst_columns_statement"/>
4143
58864f4f6e3b Fix issue946 (own style for wkms annotation facets in wq diagrams).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4126
diff changeset
147 <dc:elements>
58864f4f6e3b Fix issue946 (own style for wkms annotation facets in wq diagrams).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4126
diff changeset
148 <column>
58864f4f6e3b Fix issue946 (own style for wkms annotation facets in wq diagrams).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4126
diff changeset
149 <dc:attribute name="name" value="${prot_column_name}"/>
58864f4f6e3b Fix issue946 (own style for wkms annotation facets in wq diagrams).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4126
diff changeset
150 <dc:attribute name="ids" value="additionalsmarks-wstv-${prot_rel_pos}-${prot_id}"/>
58864f4f6e3b Fix issue946 (own style for wkms annotation facets in wq diagrams).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4126
diff changeset
151 <dc:attribute name="factory" value="staticwkms"/>
4895
065a78d65007 meta-data.xml: Access wst_ranges and provide range is info-element.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4894
diff changeset
152 <dc:attribute name="info" value="${info} [km ${deffrom} - ${defto}]"/>
4143
58864f4f6e3b Fix issue946 (own style for wkms annotation facets in wq diagrams).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4126
diff changeset
153 </column>
58864f4f6e3b Fix issue946 (own style for wkms annotation facets in wq diagrams).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4126
diff changeset
154 </dc:elements>
58864f4f6e3b Fix issue946 (own style for wkms annotation facets in wq diagrams).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4126
diff changeset
155 </dc:context>
58864f4f6e3b Fix issue946 (own style for wkms annotation facets in wq diagrams).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4126
diff changeset
156 </additional>
58864f4f6e3b Fix issue946 (own style for wkms annotation facets in wq diagrams).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4126
diff changeset
157 </dc:elements>
58864f4f6e3b Fix issue946 (own style for wkms annotation facets in wq diagrams).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4126
diff changeset
158 </dc:context>
58864f4f6e3b Fix issue946 (own style for wkms annotation facets in wq diagrams).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4126
diff changeset
159 </additionals>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
160 </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
161 </dc:macro>
58864f4f6e3b Fix issue946 (own style for wkms annotation facets in wq diagrams).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4126
diff changeset
162
1790
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
163 <dc:macro name="basedata_1_additionals">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
164 <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
165 <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
166 <additionals>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
167 <dc:context connection="system">
1790
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
168 <dc:statement>
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
169 SELECT id AS prot_id,
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
170 description AS prot_description
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
171 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
172 </dc:statement>
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
173 <dc:elements>
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
174 <additional>
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
175 <dc:attribute name="name" value="${prot_description}"/>
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
176 <dc:context>
4894
5741970e2c58 meta-data.xml: Replace wst_columns queries by macro call.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4892
diff changeset
177 <dc:call-macro name="SQL-wst_columns_statement"/>
1790
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
178 <dc:elements>
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
179 <column>
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
180 <dc:attribute name="name" value="${prot_column_name}"/>
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
181 <dc:attribute name="ids" value="additionals-wstv-${prot_rel_pos}-${prot_id}"/>
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
182 <dc:attribute name="factory" value="staticwkms"/>
4895
065a78d65007 meta-data.xml: Access wst_ranges and provide range is info-element.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4894
diff changeset
183 <dc:attribute name="info" value="${info} [km ${deffrom} - ${defto}]"/>
1790
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
184 </column>
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
185 </dc:elements>
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
186 </dc:context>
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
187 </additional>
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
188 </dc:elements>
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
189 </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
190 </additionals>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
191 </dc:call-macro>
1790
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
192 </dc:macro>
1764
87c82499b98f Added DC configuration to load additional data in longitudinal section.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1761
diff changeset
193
2761
28e7c1637f78 Include thematic heights in dc conf for reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2755
diff changeset
194 <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
195 <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
196 <dc:comment comment=".ZUS -------------------------------"/>
28e7c1637f78 Include thematic heights in dc conf for reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2755
diff changeset
197 <additionals>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
198 <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
199 <dc:statement>
6068b6c90a19 Adjusted datacage-configuration to present flood-protections in certain case.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1716
diff changeset
200 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
201 description AS prot_description
1731
37606f0ddc1e Also display the 'zus' in wdiff-input datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1728
diff changeset
202 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
203 </dc:statement>
37606f0ddc1e Also display the 'zus' in wdiff-input datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1728
diff changeset
204 <dc:elements>
2761
28e7c1637f78 Include thematic heights in dc conf for reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2755
diff changeset
205 <relativepoint>
28e7c1637f78 Include thematic heights in dc conf for reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2755
diff changeset
206 <dc:attribute name="name" value="${prot_description}"/>
28e7c1637f78 Include thematic heights in dc conf for reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2755
diff changeset
207 <dc:context>
4894
5741970e2c58 meta-data.xml: Replace wst_columns queries by macro call.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4892
diff changeset
208 <dc:call-macro name="SQL-wst_columns_statement"/>
2761
28e7c1637f78 Include thematic heights in dc conf for reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2755
diff changeset
209 <dc:elements>
28e7c1637f78 Include thematic heights in dc conf for reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2755
diff changeset
210 <column>
28e7c1637f78 Include thematic heights in dc conf for reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2755
diff changeset
211 <dc:attribute name="name" value="${prot_column_name}"/>
28e7c1637f78 Include thematic heights in dc conf for reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2755
diff changeset
212 <dc:attribute name="ids" value="additionals-wstv-${prot_rel_pos}-${prot_id}"/>
28e7c1637f78 Include thematic heights in dc conf for reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2755
diff changeset
213 <dc:attribute name="factory" value="staticwkms"/>
4895
065a78d65007 meta-data.xml: Access wst_ranges and provide range is info-element.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4894
diff changeset
214 <dc:attribute name="info" value="${info} [km ${deffrom} - ${defto}]"/>
2761
28e7c1637f78 Include thematic heights in dc conf for reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2755
diff changeset
215 </column>
28e7c1637f78 Include thematic heights in dc conf for reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2755
diff changeset
216 </dc:elements>
28e7c1637f78 Include thematic heights in dc conf for reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2755
diff changeset
217 </dc:context>
28e7c1637f78 Include thematic heights in dc conf for reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2755
diff changeset
218 </relativepoint>
1731
37606f0ddc1e Also display the 'zus' in wdiff-input datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1728
diff changeset
219 </dc:elements>
37606f0ddc1e Also display the 'zus' in wdiff-input datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1728
diff changeset
220 </dc:context>
2761
28e7c1637f78 Include thematic heights in dc conf for reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2755
diff changeset
221 </additionals>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
222 </dc:call-macro>
2761
28e7c1637f78 Include thematic heights in dc conf for reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2755
diff changeset
223 </dc:macro>
28e7c1637f78 Include thematic heights in dc conf for reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2755
diff changeset
224
1905
d025009fec73 Recommend fixations for computed discharge curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1880
diff changeset
225 <dc:macro name="basedata_2_fixations_wst">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
226 <dc:call-macro name="user-range">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
227 <fixations>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
228 <dc:context connection="system">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
229 <dc:statement>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
230 SELECT id AS prot_id,
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
231 description AS prot_description
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
232 FROM wsts WHERE kind = 2 AND river_id = ${river_id}
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
233 </dc:statement>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
234 <dc:elements>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
235 <fixation>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
236 <dc:attribute name="name" value="${prot_description}"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
237 <!--dc:attribute name="ids" value="fixations-wstv-A-${prot_id}"/-->
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
238 <dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
239 <dc:call-macro name="SQL-wst_columns_statement"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
240 <dc:elements>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
241 <column>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
242 <dc:attribute name="name" value="${prot_column_name}"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
243 <dc:attribute name="ids" value="fixations-wstv-${prot_rel_pos}-${prot_id}"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
244 <dc:attribute name="factory" value="wqinterpol"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
245 <dc:attribute name="info" value="${info} [km ${deffrom} - ${defto}]"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
246 </column>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
247 </dc:elements>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
248 </dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
249 </fixation>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
250 </dc:elements>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
251 </dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
252 </fixations>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
253 </dc:call-macro>
1905
d025009fec73 Recommend fixations for computed discharge curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1880
diff changeset
254 </dc:macro>
d025009fec73 Recommend fixations for computed discharge curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1880
diff changeset
255
d025009fec73 Recommend fixations for computed discharge curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1880
diff changeset
256 <dc:macro name="basedata_2_fixations_wqkms">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
257 <dc:call-macro name="user-range">
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:context connection="system">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
260 <dc:statement>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
261 SELECT id AS prot_id,
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
262 description AS prot_description
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
263 FROM wsts WHERE kind = 2 AND river_id = ${river_id}
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
264 </dc:statement>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
265 <dc:elements>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
266 <fixation>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
267 <dc:attribute name="name" value="${prot_description}"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
268 <dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
269 <dc:call-macro name="SQL-wst_columns_statement"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
270 <dc:elements>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
271 <column>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
272 <dc:attribute name="name" value="${prot_column_name}"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
273 <dc:attribute name="ids" value="fixations-wstv-${prot_rel_pos}-${prot_id}"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
274 <dc:attribute name="factory" value="wqinterpol"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
275 <dc:attribute name="info" value="${info} [km ${deffrom} - ${defto}]"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
276 </column>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
277 </dc:elements>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
278 </dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
279 </fixation>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
280 </dc:elements>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
281 </dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
282 </fixations>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
283 </dc:call-macro>
1905
d025009fec73 Recommend fixations for computed discharge curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1880
diff changeset
284 </dc:macro>
d025009fec73 Recommend fixations for computed discharge curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1880
diff changeset
285
1872
2e810c50e685 Refactored datacage conf to (re)use macros.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1871
diff changeset
286 <dc:macro name="basedata_2_fixations">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
287 <dc:call-macro name="user-range">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
288 <fixations>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
289 <dc:context connection="system">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
290 <dc:statement>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
291 SELECT id AS prot_id,
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
292 description AS prot_description
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
293 FROM wsts WHERE kind = 2 AND river_id = ${river_id}
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
294 </dc:statement>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
295 <dc:elements>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
296 <fixation>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
297 <dc:attribute name="name" value="${prot_description}"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
298 <dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
299 <dc:call-macro name="SQL-wst_columns_statement"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
300 <dc:elements>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
301 <column>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
302 <dc:attribute name="name" value="${prot_column_name}"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
303 <dc:attribute name="ids" value="fixations-wstv-${prot_rel_pos}-${prot_id}"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
304 <dc:attribute name="factory" value="staticwkms"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
305 <dc:attribute name="info" value="${info} [km ${deffrom} - ${defto}]"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
306 </column>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
307 </dc:elements>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
308 </dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
309 </fixation>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
310 </dc:elements>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
311 </dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
312 </fixations>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
313 </dc:call-macro>
1872
2e810c50e685 Refactored datacage conf to (re)use macros.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1871
diff changeset
314 </dc:macro>
2e810c50e685 Refactored datacage conf to (re)use macros.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1871
diff changeset
315
2749
5eb3edb4f37b Add relative-points-fixations for duration curves in dc conf.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2736
diff changeset
316 <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
317 <dc:call-macro name="user-range">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
318 <fixations>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
319 <dc:context connection="system">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
320 <dc:statement>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
321 SELECT id AS prot_id,
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
322 description AS prot_description
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
323 FROM wsts WHERE kind = 2 AND river_id = ${river_id}
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
324 </dc:statement>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
325 <dc:elements>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
326 <relativepoint>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
327 <dc:attribute name="name" value="${prot_description}"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
328 <dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
329 <dc:call-macro name="SQL-wst_columns_statement"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
330 <dc:elements>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
331 <column>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
332 <dc:attribute name="name" value="${prot_column_name}"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
333 <dc:attribute name="ids" value="fixations-wstv-${prot_rel_pos}-${prot_id}"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
334 <dc:attribute name="factory" value="staticwkms"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
335 <dc:attribute name="info" value="${info} [km ${deffrom} - ${defto}]"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
336 </column>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
337 </dc:elements>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
338 </dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
339 </relativepoint>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
340 </dc:elements>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
341 </dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
342 </fixations>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
343 </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
344 </dc:macro>
2751
e50cc06c6c4c Serve heightmarks and floodprotection in dc conf for duration curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2749
diff changeset
345
3283
a8ce3263b0a7 Make official lines loadable from dc (by hand) for longitudinal sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3219
diff changeset
346 <dc:macro name="basedata_3_officials">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
347 <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
348 <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
349 <officiallines>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
350 <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
351 <dc:statement>
a8ce3263b0a7 Make official lines loadable from dc (by hand) for longitudinal sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3219
diff changeset
352 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
353 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
354 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
355 </dc:statement>
a8ce3263b0a7 Make official lines loadable from dc (by hand) for longitudinal sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3219
diff changeset
356 <dc:elements>
a8ce3263b0a7 Make official lines loadable from dc (by hand) for longitudinal sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3219
diff changeset
357 <official>
a8ce3263b0a7 Make official lines loadable from dc (by hand) for longitudinal sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3219
diff changeset
358 <dc:attribute name="name" value="${prot_description}"/>
a8ce3263b0a7 Make official lines loadable from dc (by hand) for longitudinal sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3219
diff changeset
359 <dc:context>
4894
5741970e2c58 meta-data.xml: Replace wst_columns queries by macro call.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4892
diff changeset
360 <dc:call-macro name="SQL-wst_columns_statement"/>
3283
a8ce3263b0a7 Make official lines loadable from dc (by hand) for longitudinal sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3219
diff changeset
361 <dc:elements>
a8ce3263b0a7 Make official lines loadable from dc (by hand) for longitudinal sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3219
diff changeset
362 <column>
a8ce3263b0a7 Make official lines loadable from dc (by hand) for longitudinal sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3219
diff changeset
363 <dc:attribute name="name" value="${prot_column_name}"/>
a8ce3263b0a7 Make official lines loadable from dc (by hand) for longitudinal sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3219
diff changeset
364 <dc:attribute name="ids" value="additionals-wstv-${prot_rel_pos}-${prot_id}"/>
4124
c03639e30cc5 Improvements for issue949 (q and w facets for official lines).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4123
diff changeset
365 <dc:attribute name="factory" value="staticwqkms"/>
4895
065a78d65007 meta-data.xml: Access wst_ranges and provide range is info-element.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4894
diff changeset
366 <dc:attribute name="info" value="${info} [km ${deffrom} - ${defto}]"/>
3283
a8ce3263b0a7 Make official lines loadable from dc (by hand) for longitudinal sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3219
diff changeset
367 </column>
a8ce3263b0a7 Make official lines loadable from dc (by hand) for longitudinal sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3219
diff changeset
368 </dc:elements>
a8ce3263b0a7 Make official lines loadable from dc (by hand) for longitudinal sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3219
diff changeset
369 </dc:context>
a8ce3263b0a7 Make official lines loadable from dc (by hand) for longitudinal sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3219
diff changeset
370 </official>
a8ce3263b0a7 Make official lines loadable from dc (by hand) for longitudinal sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3219
diff changeset
371 </dc:elements>
a8ce3263b0a7 Make official lines loadable from dc (by hand) for longitudinal sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3219
diff changeset
372 </dc:context>
a8ce3263b0a7 Make official lines loadable from dc (by hand) for longitudinal sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3219
diff changeset
373 </officiallines>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
374 </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
375 </dc:macro>
a8ce3263b0a7 Make official lines loadable from dc (by hand) for longitudinal sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3219
diff changeset
376
2751
e50cc06c6c4c Serve heightmarks and floodprotection in dc conf for duration curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2749
diff changeset
377 <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
378 <dc:call-macro name="user-range">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
379 <heightmarks>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
380 <dc:context connection="system">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
381 <dc:statement>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
382 SELECT id AS prot_id,
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
383 description AS prot_description
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
384 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
385 </dc:statement>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
386 <dc:elements>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
387 <relativepoint>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
388 <dc:attribute name="name" value="${prot_description}"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
389 <dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
390 <dc:call-macro name="SQL-wst_columns_statement"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
391 <dc:elements>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
392 <column>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
393 <dc:attribute name="name" value="${prot_column_name}"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
394 <dc:attribute name="ids" value="heightmarks_points-wstv-${prot_rel_pos}-${prot_id}"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
395 <dc:attribute name="factory" value="staticwkms"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
396 <dc:attribute name="info" value="${info} [km ${deffrom} - ${defto}]"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
397 </column>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
398 </dc:elements>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
399 </dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
400 </relativepoint>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
401 </dc:elements>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
402 </dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
403 </heightmarks>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
404 </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
405 </dc:macro>
e50cc06c6c4c Serve heightmarks and floodprotection in dc conf for duration curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2749
diff changeset
406
1869
8f7bc6acd48d Adjusted DC for heightmarks (and other) in discharge longitudinal sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1868
diff changeset
407 <dc:macro name="basedata_4_heightmarks-points">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
408 <dc:call-macro name="user-range">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
409 <heightmarks>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
410 <dc:context connection="system">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
411 <dc:statement>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
412 SELECT id AS prot_id,
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
413 description AS prot_description
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
414 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
415 </dc:statement>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
416 <dc:elements>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
417 <heightmark>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
418 <dc:attribute name="name" value="${prot_description}"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
419 <dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
420 <dc:call-macro name="SQL-wst_columns_statement"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
421 <dc:elements>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
422 <column>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
423 <dc:attribute name="name" value="${prot_column_name}"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
424 <dc:attribute name="ids" value="heightmarks_points-wstv-${prot_rel_pos}-${prot_id}"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
425 <dc:attribute name="factory" value="staticwkms"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
426 <dc:attribute name="info" value="${info} [km ${deffrom} - ${defto}]"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
427 </column>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
428 </dc:elements>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
429 </dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
430 </heightmark>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
431 </dc:elements>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
432 </dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
433 </heightmarks>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
434 </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
435 </dc:macro>
1978
4c10a4cb978f Recommend cross sections if they can be shown.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1916
diff changeset
436
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
437 <dc:macro name="basedata_4_heightmarks-wq">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
438 <dc:call-macro name="user-range">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
439 <heightmarks>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
440 <dc:context connection="system">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
441 <dc:statement>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
442 SELECT id AS prot_id,
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
443 description AS prot_description
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
444 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
445 </dc:statement>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
446 <dc:elements>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
447 <heightmark>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
448 <dc:attribute name="name" value="${prot_description}"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
449 <dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
450 <dc:call-macro name="SQL-wst_columns_statement"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
451 <dc:elements>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
452 <column>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
453 <dc:attribute name="name" value="${prot_column_name}"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
454 <dc:attribute name="ids" value="heightmarks_annotations-wstv-${prot_rel_pos}-${prot_id}"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
455 <dc:attribute name="factory" value="wqinterpol"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
456 <dc:attribute name="info" value="${info} [km ${deffrom} - ${defto}]"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
457 </column>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
458 </dc:elements>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
459 </dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
460 </heightmark>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
461 </dc:elements>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
462 </dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
463 </heightmarks>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
464 </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
465 </dc:macro>
1869
8f7bc6acd48d Adjusted DC for heightmarks (and other) in discharge longitudinal sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1868
diff changeset
466
2751
e50cc06c6c4c Serve heightmarks and floodprotection in dc conf for duration curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2749
diff changeset
467 <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
468 <dc:call-macro name="user-range">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
469 <flood_protections>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
470 <dc:attribute name="id" value="flood-protections-${river_id}"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
471 <dc:context connection="system">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
472 <dc:statement>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
473 SELECT id AS prot_id,
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
474 description AS prot_description
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
475 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
476 </dc:statement>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
477 <dc:elements>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
478 <relativepoint>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
479 <dc:attribute name="name" value="${prot_description}"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
480 <dc:attribute name="db-id" value="${prot_id}"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
481 <dc:attribute name="factory" value="staticwkms"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
482 <columns>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
483 <dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
484 <dc:call-macro name="SQL-wst_columns_statement"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
485 <dc:elements>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
486 <column>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
487 <dc:attribute name="name" value="${prot_column_name}"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
488 <dc:attribute name="ids" value="flood_protection-wstv-${prot_rel_pos}-${prot_id}"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
489 <dc:attribute name="factory" value="staticwkms"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
490 <dc:attribute name="info" value="${info} [km ${deffrom} - ${defto}]"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
491 </column>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
492 </dc:elements>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
493 </dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
494 </columns>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
495 </relativepoint>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
496 </dc:elements>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
497 </dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
498 </flood_protections>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
499 </dc:call-macro>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
500 </dc:macro>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
501
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
502 <dc:macro name="basedata_5_flood-protections">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
503 <dc:call-macro name="user-range">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
504 <flood_protections>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
505 <dc:attribute name="id" value="flood-protections-${river_id}"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
506 <dc:context connection="system">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
507 <dc:statement>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
508 SELECT id AS prot_id,
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
509 description AS prot_description
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
510 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
511 </dc:statement>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
512 <dc:elements>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
513 <flood_protection>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
514 <dc:attribute name="name" value="${prot_description}"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
515 <dc:attribute name="db-id" value="${prot_id}"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
516 <dc:attribute name="factory" value="staticwkms"/>
2751
e50cc06c6c4c Serve heightmarks and floodprotection in dc conf for duration curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2749
diff changeset
517 <dc:context>
4894
5741970e2c58 meta-data.xml: Replace wst_columns queries by macro call.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4892
diff changeset
518 <dc:call-macro name="SQL-wst_columns_statement"/>
2751
e50cc06c6c4c Serve heightmarks and floodprotection in dc conf for duration curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2749
diff changeset
519 <dc:elements>
e50cc06c6c4c Serve heightmarks and floodprotection in dc conf for duration curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2749
diff changeset
520 <column>
e50cc06c6c4c Serve heightmarks and floodprotection in dc conf for duration curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2749
diff changeset
521 <dc:attribute name="name" value="${prot_column_name}"/>
e50cc06c6c4c Serve heightmarks and floodprotection in dc conf for duration curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2749
diff changeset
522 <dc:attribute name="ids" value="flood_protection-wstv-${prot_rel_pos}-${prot_id}"/>
e50cc06c6c4c Serve heightmarks and floodprotection in dc conf for duration curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2749
diff changeset
523 <dc:attribute name="factory" value="staticwkms"/>
4895
065a78d65007 meta-data.xml: Access wst_ranges and provide range is info-element.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4894
diff changeset
524 <dc:attribute name="info" value="${info} [km ${deffrom} - ${defto}]"/>
2751
e50cc06c6c4c Serve heightmarks and floodprotection in dc conf for duration curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2749
diff changeset
525 </column>
e50cc06c6c4c Serve heightmarks and floodprotection in dc conf for duration curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2749
diff changeset
526 </dc:elements>
e50cc06c6c4c Serve heightmarks and floodprotection in dc conf for duration curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2749
diff changeset
527 </dc:context>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
528 </flood_protection>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
529 </dc:elements>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
530 </dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
531 </flood_protections>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
532 </dc:call-macro>
1905
d025009fec73 Recommend fixations for computed discharge curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1880
diff changeset
533 </dc:macro>
d025009fec73 Recommend fixations for computed discharge curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1880
diff changeset
534
1851
67aa74efc024 Recommend mainvalues for Duration Curve Diagrams, minor refactoring.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1841
diff changeset
535 <dc:macro name="mainvalues">
67aa74efc024 Recommend mainvalues for Duration Curve Diagrams, minor refactoring.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1841
diff changeset
536 <mainvalue>
67aa74efc024 Recommend mainvalues for Duration Curve Diagrams, minor refactoring.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1841
diff changeset
537 <dc:attribute name="factory" value="mainvalue"/>
67aa74efc024 Recommend mainvalues for Duration Curve Diagrams, minor refactoring.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1841
diff changeset
538 <dc:attribute name="ids" value="${river_id}"/>
67aa74efc024 Recommend mainvalues for Duration Curve Diagrams, minor refactoring.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1841
diff changeset
539 </mainvalue>
4126
e0354aed0cd3 Improvements for issue945/6 (separate w and q mainvalues in DC).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4125
diff changeset
540 <wmainvalue>
e0354aed0cd3 Improvements for issue945/6 (separate w and q mainvalues in DC).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4125
diff changeset
541 <dc:attribute name="factory" value="mainvalue"/>
e0354aed0cd3 Improvements for issue945/6 (separate w and q mainvalues in DC).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4125
diff changeset
542 <dc:attribute name="ids" value="${river_id}:w"/>
e0354aed0cd3 Improvements for issue945/6 (separate w and q mainvalues in DC).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4125
diff changeset
543 </wmainvalue>
e0354aed0cd3 Improvements for issue945/6 (separate w and q mainvalues in DC).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4125
diff changeset
544 <qmainvalue>
e0354aed0cd3 Improvements for issue945/6 (separate w and q mainvalues in DC).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4125
diff changeset
545 <dc:attribute name="factory" value="mainvalue"/>
e0354aed0cd3 Improvements for issue945/6 (separate w and q mainvalues in DC).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4125
diff changeset
546 <dc:attribute name="ids" value="${river_id}:q"/>
e0354aed0cd3 Improvements for issue945/6 (separate w and q mainvalues in DC).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4125
diff changeset
547 </qmainvalue>
1851
67aa74efc024 Recommend mainvalues for Duration Curve Diagrams, minor refactoring.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1841
diff changeset
548 </dc:macro>
1865
ba6659083fa0 Revert/apply accidental/corrected commit.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1857
diff changeset
549
3574
416288f88763 Add more qsectory infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3570
diff changeset
550 <dc:macro name="qsectors">
416288f88763 Add more qsectory infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3570
diff changeset
551 <qsector>
416288f88763 Add more qsectory infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3570
diff changeset
552 <dc:attribute name="factory" value="qsectors"/>
416288f88763 Add more qsectory infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3570
diff changeset
553 <dc:attribute name="ids" value="${river_id}"/>
416288f88763 Add more qsectory infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3570
diff changeset
554 </qsector>
416288f88763 Add more qsectory infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3570
diff changeset
555 </dc:macro>
416288f88763 Add more qsectory infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3570
diff changeset
556
1865
ba6659083fa0 Revert/apply accidental/corrected commit.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1857
diff changeset
557 <dc:macro name="annotations">
ba6659083fa0 Revert/apply accidental/corrected commit.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1857
diff changeset
558 <annotation>
ba6659083fa0 Revert/apply accidental/corrected commit.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1857
diff changeset
559 <dc:attribute name="factory" value="annotations"/>
ba6659083fa0 Revert/apply accidental/corrected commit.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1857
diff changeset
560 <dc:attribute name="ids" value="${river_id}"/>
ba6659083fa0 Revert/apply accidental/corrected commit.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1857
diff changeset
561 </annotation>
ba6659083fa0 Revert/apply accidental/corrected commit.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1857
diff changeset
562 </dc:macro>
ba6659083fa0 Revert/apply accidental/corrected commit.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1857
diff changeset
563
4014
e5e1331d0440 Show 'per-type' annotations in longitudinal-section DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3975
diff changeset
564 <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
565 <annotations>
e5e1331d0440 Show 'per-type' annotations in longitudinal-section DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3975
diff changeset
566 <dc:context>
4122
0b0192727265 In 'annotations per type' - section of DC, also add an 'all'-node.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4121
diff changeset
567 <annotation>
4125
a74487440693 Improvements for issue945/1 (DC)
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4124
diff changeset
568 <dc:attribute name="name" value="all_annotations"/>
4122
0b0192727265 In 'annotations per type' - section of DC, also add an 'all'-node.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4121
diff changeset
569 <dc:attribute name="factory" value="annotations"/>
0b0192727265 In 'annotations per type' - section of DC, also add an 'all'-node.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4121
diff changeset
570 <dc:attribute name="ids" value="${river_id}"/>
0b0192727265 In 'annotations per type' - section of DC, also add an 'all'-node.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4121
diff changeset
571 </annotation>
4014
e5e1331d0440 Show 'per-type' annotations in longitudinal-section DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3975
diff changeset
572 <dc:statement>
e5e1331d0440 Show 'per-type' annotations in longitudinal-section DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3975
diff changeset
573 SELECT id AS anno_id,
e5e1331d0440 Show 'per-type' annotations in longitudinal-section DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3975
diff changeset
574 name AS anno_description
e5e1331d0440 Show 'per-type' annotations in longitudinal-section DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3975
diff changeset
575 FROM annotation_types
e5e1331d0440 Show 'per-type' annotations in longitudinal-section DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3975
diff changeset
576 </dc:statement>
e5e1331d0440 Show 'per-type' annotations in longitudinal-section DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3975
diff changeset
577 <dc:elements>
e5e1331d0440 Show 'per-type' annotations in longitudinal-section DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3975
diff changeset
578 <annotation>
e5e1331d0440 Show 'per-type' annotations in longitudinal-section DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3975
diff changeset
579 <dc:attribute name="name" value="${anno_description}"/>
e5e1331d0440 Show 'per-type' annotations in longitudinal-section DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3975
diff changeset
580 <dc:attribute name="factory" value="annotations"/>
e5e1331d0440 Show 'per-type' annotations in longitudinal-section DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3975
diff changeset
581 <dc:attribute name="ids" value="${river_id}:${anno_description}"/>
e5e1331d0440 Show 'per-type' annotations in longitudinal-section DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3975
diff changeset
582 </annotation>
e5e1331d0440 Show 'per-type' annotations in longitudinal-section DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3975
diff changeset
583 </dc:elements>
e5e1331d0440 Show 'per-type' annotations in longitudinal-section DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3975
diff changeset
584 </dc:context>
e5e1331d0440 Show 'per-type' annotations in longitudinal-section DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3975
diff changeset
585 </annotations>
e5e1331d0440 Show 'per-type' annotations in longitudinal-section DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3975
diff changeset
586 </dc:macro>
e5e1331d0440 Show 'per-type' annotations in longitudinal-section DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3975
diff changeset
587
1978
4c10a4cb978f Recommend cross sections if they can be shown.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1916
diff changeset
588 <dc:macro name="cross_sections">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
589 <dc:call-macro name="user-range">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
590 <cross_sections>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
591 <dc:attribute name="id" value="flood-protections-${river_id}"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
592 <dc:context connection="system">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
593 <dc:statement>
5164
8c65acf01adc Fixed datacage to be oracle compatible.
Raimund Renkert <rrenkert@intevation.de>
parents: 5145
diff changeset
594 SELECT DISTINCT
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
595 cs.id AS prot_id,
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
596 cs.description AS prot_description
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
597 FROM cross_sections cs
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
598 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
599 WHERE cs.river_id = ${river_id}
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
600 AND csl.km BETWEEN ${fromkm} AND ${tokm}
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
601 </dc:statement>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
602 <dc:elements>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
603 <cross_section>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
604 <dc:attribute name="name" value="${prot_description}"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
605 <dc:attribute name="ids" value="${prot_id}"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
606 <dc:attribute name="factory" value="crosssections"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
607 </cross_section>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
608 </dc:elements>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
609 </dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
610 </cross_sections>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
611 </dc:call-macro>
1978
4c10a4cb978f Recommend cross sections if they can be shown.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1916
diff changeset
612 </dc:macro>
4c10a4cb978f Recommend cross sections if they can be shown.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1916
diff changeset
613
2140
3d73109005b8 Recommend hyks if hit by cross section out.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2114
diff changeset
614 <dc:macro name="hyks">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
615 <dc:call-macro name="user-range">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
616 <hyks>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
617 <dc:attribute name="id" value="hyk-${river_id}"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
618 <dc:context connection="system">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
619 <dc:statement>
5164
8c65acf01adc Fixed datacage to be oracle compatible.
Raimund Renkert <rrenkert@intevation.de>
parents: 5145
diff changeset
620 SELECT DISTINCT
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
621 h.id AS hyk_id,
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
622 h.description AS hyk_description
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
623 FROM hyks h
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
624 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
625 WHERE river_id = ${river_id}
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
626 AND he.km BETWEEN ${fromkm} AND ${tokm}
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
627 </dc:statement>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
628 <dc:elements>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
629 <hyk>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
630 <dc:attribute name="name" value="${hyk_description}"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
631 <dc:attribute name="ids" value="${hyk_id}"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
632 <dc:attribute name="factory" value="hyk"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
633 </hyk>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
634 </dc:elements>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
635 </dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
636 </hyks>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
637 </dc:call-macro>
2140
3d73109005b8 Recommend hyks if hit by cross section out.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2114
diff changeset
638 </dc:macro>
1869
8f7bc6acd48d Adjusted DC for heightmarks (and other) in discharge longitudinal sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1868
diff changeset
639
4455
06c07cb478a8 meta-data.xml: Add annotations and flow velocity measurements to the DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4449
diff changeset
640 <dc:macro name="flow_velocity_measurements">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
641 <dc:call-macro name="user-range">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
642 <flowvelocitymeasurement>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
643 <dc:context connection="system">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
644 <dc:statement>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
645 SELECT id AS fvmid,
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
646 description AS fvmd
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
647 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
648 </dc:statement>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
649 <dc:elements>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
650 <flow_velocity_measurement>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
651 <dc:attribute name="name" value="${fvmd}"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
652 <dc:attribute name="ids" value="${fvmid}"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
653 <dc:attribute name="factory" value="flowvelocity"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
654 <dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
655 <dc:statement>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
656 SELECT id, description, station, datetime, v, w, q
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
657 FROM flow_velocity_measure_values
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
658 WHERE measurements_id = ${fvmid}
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
659 AND station BETWEEN ${fromkm} AND ${tokm}
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
660 </dc:statement>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
661 <dc:elements>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
662 <measurement_value>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
663 <dc:attribute name="name" value="${id}-${description}-${station}-${datetime}"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
664 <dc:attribute name="ids" value="${id}"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
665 <dc:attribute name="factory" value="flowvelocity"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
666 </measurement_value>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
667 </dc:elements>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
668 </dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
669 </flow_velocity_measurement>
4455
06c07cb478a8 meta-data.xml: Add annotations and flow velocity measurements to the DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4449
diff changeset
670 </dc:elements>
06c07cb478a8 meta-data.xml: Add annotations and flow velocity measurements to the DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4449
diff changeset
671 </dc:context>
06c07cb478a8 meta-data.xml: Add annotations and flow velocity measurements to the DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4449
diff changeset
672 </flowvelocitymeasurement>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
673 </dc:call-macro>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
674 </dc:macro>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
675
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
676 <dc:macro name="sounding-width">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
677 <soundings_width>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
678 <dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
679 <dc:statement>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
680 SELECT id AS bedh_id,
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
681 year AS bedh_year,
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
682 description AS bedh_descr
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
683 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
684 </dc:statement>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
685 <dc:elements>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
686 <height>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
687 <dc:attribute name="factory" value="bedheight"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
688 <dc:attribute name="ids" value="bedheight-singlevalues-${bedh_id}-${bedh_year}"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
689 <dc:attribute name="description" value="${bedh_descr}"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
690 </height>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
691 </dc:elements>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
692 </dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
693 </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
694 </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
695
4595
0b48085f93aa meta-data.xml: Added 'prototype-macro for longitudinal_sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4538
diff changeset
696 <dc:macro name="longitudinal-section-prototype">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
697 <dc:call-macro name="basedata_0"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
698 <dc:call-macro name="basedata_1_additionals"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
699 <dc:comment comment=" FIXATIONS ---------------------------"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
700 <dc:call-macro name="basedata_2_fixations"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
701 <dc:comment comment=" HOEHENMARKEN ---------------------------"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
702 <dc:call-macro name="basedata_4_heightmarks-points"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
703 <dc:comment comment=" AMTL LINIEN ---------------------------"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
704 <dc:call-macro name="basedata_3_officials"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
705 <dc:call-macro name="basedata_5_flood-protections"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
706 <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
707 </dc:macro>
0b48085f93aa meta-data.xml: Added 'prototype-macro for longitudinal_sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4538
diff changeset
708
1869
8f7bc6acd48d Adjusted DC for heightmarks (and other) in discharge longitudinal sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1868
diff changeset
709 <dc:comment>
8f7bc6acd48d Adjusted DC for heightmarks (and other) in discharge longitudinal sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1868
diff changeset
710 + River-Node
8f7bc6acd48d Adjusted DC for heightmarks (and other) in discharge longitudinal sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1868
diff changeset
711 </dc:comment>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
712 <dc:attribute name="name" value="${river_name}"/>
1865
ba6659083fa0 Revert/apply accidental/corrected commit.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1857
diff changeset
713
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
714 <dc:choose>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
715 <dc:when test="dc:contains($parameters, 'recommended')">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
716 <dc:comment>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
717 Recommendations (client shall load immediately).
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
718 </dc:comment>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
719 <dc:if test="dc:contains($artifact-outs, 'w_differences') or (dc:contains($artifact-outs, 'discharge_longitudinal_section'))">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
720 <dc:call-macro name="annotations"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
721 </dc:if>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
722 <dc:if test="dc:contains($artifact-outs, 'historical_discharge_wq')">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
723 <dc:call-macro name="mainvalues"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
724 </dc:if>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
725 <dc:if test="dc:contains($artifact-outs, 'cross_section')">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
726 <dc:call-macro name="cross_sections"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
727 <dc:call-macro name="hyks"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
728 </dc:if>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
729 <dc:if test="dc:contains($artifact-outs, 'computed_discharge_curve')">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
730 <dc:call-macro name="mainvalues"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
731 </dc:if>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
732 <dc:if test="dc:contains($artifact-outs, 'duration_curve')">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
733 <dc:call-macro name="mainvalues"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
734 </dc:if>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
735 <dc:if test="dc:contains($artifact-outs, 'reference_curve')">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
736 <dc:call-macro name="annotations"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
737 <dc:call-macro name="mainvalues"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
738 </dc:if>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
739 <dc:if test="dc:contains($artifact-outs, 'fix_wq_curve')">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
740 <dc:call-macro name="qsectors"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
741 </dc:if>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
742 <dc:if test="dc:contains($artifact-outs, 'longitudinal_section')">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
743 <dc:call-macro name="annotations"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
744 </dc:if>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
745 <dc:if test="dc:contains($artifact-outs, 'fix_longitudinal_section_curve')">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
746 <dc:call-macro name="annotations"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
747 </dc:if>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
748 <dc:if test="dc:contains($artifact-outs, 'bed_difference_epoch')">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
749 <dc:call-macro name="annotations"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
750 </dc:if>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
751 <dc:if test="dc:contains($artifact-outs, 'bed_difference_year')">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
752 <dc:call-macro name="annotations"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
753 </dc:if>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
754 <dc:if test="dc:contains($artifact-outs, 'bed_difference_height_year')">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
755 <dc:call-macro name="annotations"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
756 </dc:if>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
757 <dc:if test="dc:contains($artifact-outs, 'flow_velocity')">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
758 <dc:call-macro name="annotations"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
759 </dc:if>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
760 </dc:when>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
761 <dc:otherwise>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
762 <dc:comment>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
763 Non - Recommendations.
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
764 </dc:comment>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
765 <dc:if test="dc:contains($artifact-outs, 'cross_section')">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
766 <dc:call-macro name="basedata_0"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
767 <dc:call-macro name="basedata_1_additionals"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
768 <dc:call-macro name="basedata_2_fixations"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
769 <dc:call-macro name="basedata_3_officials"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
770 <dc:call-macro name="basedata_4_heightmarks-points"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
771 <dc:call-macro name="cross_sections"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
772 <dc:call-macro name="hyks"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
773 </dc:if>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
774 <!--dc:if test="dc:contains($artifact-outs, 'computed_discharge_curve')">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
775 <dc:call-macro name="basedata_0_wq"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
776 <dc:call-macro name="basedata_4_heightmarks-wq"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
777 </dc:if-->
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
778 <dc:if test="dc:contains($artifact-outs, 'longitudinal_section') or (dc:contains($artifact-outs, 'w_differences')) or (dc:contains($artifact-outs, 'discharge_longitudinal_section'))">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
779 <dc:call-macro name="longitudinal-section-prototype"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
780 </dc:if>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
781 <dc:if test="dc:contains($artifact-outs, 'duration_curve')">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
782 <dc:call-macro name="mainvalues"/>
4123
30168be950a6 Improvements on issue934/4 (double annotations/DC).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4122
diff changeset
783 <dc:call-macro name="basedata_2_fixations_relative_point"/>
30168be950a6 Improvements on issue934/4 (double annotations/DC).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4122
diff changeset
784 <dc:call-macro name="basedata_4_heightmarks-points-relative_points"/>
30168be950a6 Improvements on issue934/4 (double annotations/DC).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4122
diff changeset
785 <dc:call-macro name="basedata_5_flood-protections_relative_points"/>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
786 </dc:if>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
787 <dc:if test="dc:contains($artifact-outs, 'reference_curve')">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
788 <dc:call-macro name="annotations"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
789 <!--dc:call-macro name="basedata_0"/-->
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
790 <dc:call-macro name="basedata_1_additionals-relative_point"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
791 <dc:comment comment=" FIXATIONS ---------------------------"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
792 <dc:call-macro name="basedata_2_fixations_relative_point"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
793 <dc:comment comment=" HOEHENMARKEN ---------------------------"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
794 <dc:call-macro name="basedata_4_heightmarks-points-relative_points"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
795 <dc:call-macro name="basedata_5_flood-protections_relative_points"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
796 </dc:if>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
797 <dc:if test="dc:contains($artifact-outs, 'fix_wq_curve')">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
798 <dc:call-macro name="basedata_0_wq"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
799 <dc:call-macro name="basedata_1_additionals_marks"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
800 <dc:call-macro name="basedata_2_fixations_wqkms"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
801 <dc:call-macro name="basedata_3_officials"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
802 <dc:call-macro name="basedata_4_heightmarks-points"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
803 <dc:call-macro name="basedata_5_flood-protections_relative_points"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
804 </dc:if>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
805 <dc:if test="dc:contains($artifact-outs, 'fix_deltawt_curve')">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
806 </dc:if>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
807 <dc:if test="dc:contains($artifact-outs, 'fix_longitudinal_section_curve')">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
808 <dc:call-macro name="annotations"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
809 </dc:if>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
810 <dc:if test="dc:contains($artifact-outs, 'map')">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
811 <dc:call-macro name="flood-map-complete"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
812 </dc:if>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
813 <dc:if test="dc:contains($artifact-outs, 'flow_velocity')">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
814 <dc:call-macro name="annotations"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
815 <dc:call-macro name="flow_velocity_measurements"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
816 </dc:if>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
817 <dc:comment>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
818 MINFO bedheight middle
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
819 </dc:comment>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
820 <dc:if test="dc:contains($artifact-outs, 'bedheight_middle')">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
821 <dc:call-macro name="sounding-width"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
822 </dc:if>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
823 <dc:comment comment="--- non-recommendations---"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
824 </dc:otherwise>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
825 </dc:choose>
1872
2e810c50e685 Refactored datacage conf to (re)use macros.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1871
diff changeset
826
1764
87c82499b98f Added DC configuration to load additional data in longitudinal section.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1761
diff changeset
827
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
828 <dc:if test="dc:contains($artifact-outs, 'waterlevels')">
1905
d025009fec73 Recommend fixations for computed discharge curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1880
diff changeset
829
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
830 <!-- base data -->
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
831 <dc:call-macro name="basedata_0"/>
3585
c105b4466b4e Basedata in FixA WQ DC and diagram.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3583
diff changeset
832
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
833 <!-- extra-longitudinal-sections -->
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
834 <dc:call-macro name="basedata_1_additionals"/>
5328
91070b784212 Move hws out of data cage flood map.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5312
diff changeset
835
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
836 <!-- fixations -->
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
837 <dc:call-macro name="basedata_2_fixations"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
838
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
839 <!-- flood water marks-->
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
840 <dc:call-macro name="basedata_4_heightmarks-points"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
841
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
842 <!-- flood protection -->
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
843 <dc:call-macro name="basedata_5_flood-protections"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
844
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
845 </dc:if>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
846 <dc:if test="dc:contains($artifact-outs, 'computed_discharge_curve') and (dc:contains($parameters, 'recommended'))">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
847 <!--dc:call-macro name="basedata_2_fixations_wst"/-->
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
848 </dc:if>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
849
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
850 <dc:if test="dc:contains($artifact-outs, 'computed_discharge_curve') and not (dc:contains($parameters, 'recommended'))">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
851 <discharge_table_nn>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
852 <discharge_table_gauge>
5312
2c1045a1e3fe Added new states and transitions to UESK calculation and adjusted states and UI.
Raimund Renkert <rrenkert@intevation.de>
parents: 5226
diff changeset
853 <dc:context>
2c1045a1e3fe Added new states and transitions to UESK calculation and adjusted states and UI.
Raimund Renkert <rrenkert@intevation.de>
parents: 5226
diff changeset
854 <dc:statement>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
855 SELECT id AS gauge_id,
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
856 name AS gauge_name
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
857 FROM gauges WHERE river_id = ${river_id}
5312
2c1045a1e3fe Added new states and transitions to UESK calculation and adjusted states and UI.
Raimund Renkert <rrenkert@intevation.de>
parents: 5226
diff changeset
858 </dc:statement>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
859 <dc:elements>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
860 <gauge>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
861 <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
862 <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
863 <dc:attribute name="factory" value="gaugedischarge"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
864 <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
865 <dc:attribute name="to" value="${g_stop}"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
866 <dc:attribute name="ids" value="${gauge_name}"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
867 </gauge>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
868 <!--
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
869 <gauge>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
870 <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
871 <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
872 <dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
873 <dc:statement>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
874 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
875 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
876 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
877 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
878 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
879 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
880 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
881 </dc:statement>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
882 <dc:elements>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
883 <historical>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
884 <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
885 <dc:attribute name="factory" value="gaugedischarge"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
886 <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
887 <dc:attribute name="to" value="${g_stop}"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
888 <dc:attribute name="ids" value="${discharge_id}-${g_start}-${g_stop}"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
889 </historical>
5312
2c1045a1e3fe Added new states and transitions to UESK calculation and adjusted states and UI.
Raimund Renkert <rrenkert@intevation.de>
parents: 5226
diff changeset
890 </dc:elements>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
891 </dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
892 </gauge>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
893 -->
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
894 </dc:elements>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
895 </dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
896 </discharge_table_gauge>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
897
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
898 </discharge_table_nn>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
899
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
900 <dc:call-macro name="basedata_2_fixations_wst"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
901
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
902 <dc:call-macro name="basedata_5_flood-protections"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
903
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
904 <!-- former waterlevels -->
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
905 <dc:call-macro name="basedata_0"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
906
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
907 <dc:call-macro name="basedata_1_additionals"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
908
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
909 <!-- former flood-water-marks -->
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
910 <dc:call-macro name="basedata_4_heightmarks-points"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
911 <computed_discharge_curve>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
912 <dc:call-macro name="mainvalues"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
913 </computed_discharge_curve>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
914 </dc:if>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
915
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
916 <dc:if test="dc:contains($artifact-outs, 'fix_wq_curve') and not (dc:contains($parameters, 'recommended'))">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
917 <discharge_table_nn>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
918 <discharge_table_gauge>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
919 <dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
920 <dc:statement>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
921 SELECT id AS gauge_id,
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
922 name AS gauge_name
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
923 FROM gauges 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
924 </dc:statement>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
925 <dc:elements>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
926 <gauge>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
927 <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
928 <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
929 <dc:attribute name="factory" value="gaugedischarge"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
930 <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
931 <dc:attribute name="to" value="${g_stop}"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
932 <dc:attribute name="ids" value="${gauge_name}"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
933 </gauge>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
934 </dc:elements>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
935 </dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
936 </discharge_table_gauge>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
937 </discharge_table_nn>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
938 </dc:if>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
939
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
940 <dc:if test="dc:contains($artifact-outs, 'floodmap') or dc:contains($artifact-outs, 'floodmap-hws')">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
941 <floodmap>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
942 <dc:choose>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
943 <dc:when test="dc:contains($parameters, 'recommended')">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
944 <dc:call-macro name="flood-map-recommended"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
945 </dc:when>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
946 <dc:when test="dc:contains($parameters, 'dem')">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
947 <dc:call-macro name="flood-map-dem"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
948 </dc:when>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
949 <dc:otherwise>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
950 <dc:call-macro name="flood-map-complete"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
951 </dc:otherwise>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
952 </dc:choose>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
953 </floodmap>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
954 <dc:if test="dc:contains($parameters, 'hws')">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
955 <hws>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
956 <dc:call-macro name="flood-map-hws-lines" />
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
957 <dc:call-macro name="flood-map-hws-points" />
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
958 </hws>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
959 </dc:if>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
960
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
961 <dc:macro name="flood-map-recommended">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
962 <dc:comment>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
963 FIXME: Following two macros look identical to me.
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
964 </dc:comment>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
965 <kilometrage>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
966 <riveraxis>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
967 <dc:attribute name="factory" value="riveraxis"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
968 <dc:attribute name="ids" value="${river_id}"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
969 </riveraxis>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
970 </kilometrage>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
971 <rastermap>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
972 <background>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
973 <dc:attribute name="factory" value="wmsbackground"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
974 <dc:attribute name="ids" value="${river_id}"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
975 </background>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
976 </rastermap>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
977 </dc:macro>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
978 <dc:macro name="flood-map-dem">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
979 <dems>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
980 <dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
981 <dc:statement>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
982 SELECT d.id AS dem_id,
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
983 r.a AS dem_lower,
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
984 r.b AS dem_upper,
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
985 d.name AS name,
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
986 d.projection || ' | ' || t.start_time || ' - ' || t.stop_time AS info
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
987 FROM dem d
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
988 JOIN ranges r ON d.range_id = r.id
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
989 JOIN time_intervals t ON d.time_interval_id = t.id
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
990 WHERE d.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
991 </dc:statement>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
992 <dc:elements>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
993 <dem>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
994 <dc:attribute name="factory" value="demfactory"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
995 <dc:attribute name="ids" value="${dem_id}"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
996 <dc:attribute name="name" value="${name}"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
997 <dc:attribute name="info" value="${info}"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
998 </dem>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
999 </dc:elements>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1000 </dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1001 </dems>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1002 </dc:macro>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1003 <dc:macro name="flood-map-hws-lines">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1004 <dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1005 <dc:statement>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1006 SELECT DISTINCT
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1007 name AS hws_name,
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1008 official AS hws_official,
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1009 kind_id AS hws_kind
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1010 FROM hws_lines
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1011 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
1012 </dc:statement>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1013 <lines>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1014 <official>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1015 <Durchlass>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1016 <dc:elements filter="$hws_kind=1 and $hws_official=1">
5312
2c1045a1e3fe Added new states and transitions to UESK calculation and adjusted states and UI.
Raimund Renkert <rrenkert@intevation.de>
parents: 5226
diff changeset
1017 <hws>
2c1045a1e3fe Added new states and transitions to UESK calculation and adjusted states and UI.
Raimund Renkert <rrenkert@intevation.de>
parents: 5226
diff changeset
1018 <dc:attribute name="factory" value="hwsfactory"/>
2c1045a1e3fe Added new states and transitions to UESK calculation and adjusted states and UI.
Raimund Renkert <rrenkert@intevation.de>
parents: 5226
diff changeset
1019 <dc:attribute name="name" value="${hws_name}"/>
2c1045a1e3fe Added new states and transitions to UESK calculation and adjusted states and UI.
Raimund Renkert <rrenkert@intevation.de>
parents: 5226
diff changeset
1020 </hws>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1021 </dc:elements>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1022 </Durchlass>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1023 <Damm>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1024 <dc:elements filter="$hws_kind=2 and $hws_official=1">
5312
2c1045a1e3fe Added new states and transitions to UESK calculation and adjusted states and UI.
Raimund Renkert <rrenkert@intevation.de>
parents: 5226
diff changeset
1025 <hws>
2c1045a1e3fe Added new states and transitions to UESK calculation and adjusted states and UI.
Raimund Renkert <rrenkert@intevation.de>
parents: 5226
diff changeset
1026 <dc:attribute name="factory" value="hwsfactory"/>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1027 <dc:attribute name="name" value="${hws_name}"/>
5312
2c1045a1e3fe Added new states and transitions to UESK calculation and adjusted states and UI.
Raimund Renkert <rrenkert@intevation.de>
parents: 5226
diff changeset
1028 </hws>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1029 </dc:elements>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1030 </Damm>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1031 <Graben>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1032 <dc:elements filter="$hws_kind=3 and $hws_official=1">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1033 <hws>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1034 <dc:attribute name="factory" value="hwsfactory"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1035 <dc:attribute name="name" value="${hws_name}"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1036 </hws>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1037 </dc:elements>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1038 </Graben>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1039 </official>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1040 <inofficial>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1041 <Durchlass>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1042 <dc:elements filter="$hws_kind=1 and $hws_official=0">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1043 <hws>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1044 <dc:attribute name="factory" value="hwsfactory"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1045 <dc:attribute name="name" value="${hws_name}"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1046 </hws>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1047 </dc:elements>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1048 </Durchlass>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1049 <Damm>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1050 <dc:elements filter="$hws_kind=2 and $hws_official=0">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1051 <hws>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1052 <dc:attribute name="factory" value="hwsfactory"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1053 <dc:attribute name="name" value="${hws_name}"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1054 </hws>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1055 </dc:elements>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1056 </Damm>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1057 <Graben>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1058 <dc:elements filter="$hws_kind=3 and $hws_official=0">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1059 <hws>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1060 <dc:attribute name="factory" value="hwsfactory"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1061 <dc:attribute name="name" value="${hws_name}"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1062 </hws>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1063 </dc:elements>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1064 </Graben>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1065 </inofficial>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1066 </lines>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1067 </dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1068 </dc:macro>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1069 <dc:macro name="flood-map-hws-points">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1070 <dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1071 <dc:statement>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1072 SELECT DISTINCT
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1073 name AS hws_points_name,
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1074 official AS hws_points_official,
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1075 kind_id AS hws_points_kind
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1076 FROM hws_points
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1077 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
1078 </dc:statement>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1079 <points>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1080 <official>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1081 <Durchlass>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1082 <dc:elements filter="$hws_points_kind=1 and $hws_points_official=1">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1083 <hws>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1084 <dc:attribute name="factory" value="hwsfactory"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1085 <dc:attribute name="name" value="${hws_points_name}"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1086 </hws>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1087 </dc:elements>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1088 </Durchlass>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1089 <Damm>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1090 <dc:elements filter="$hws_points_kind=2 and $hws_points_official=1">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1091 <hws>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1092 <dc:attribute name="factory" value="hwsfactory"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1093 <dc:attribute name="name" value="${hws_points_name}"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1094 </hws>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1095 </dc:elements>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1096 </Damm>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1097 <Graben>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1098 <dc:elements filter="$hws_kind=3 and $hws_official=1">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1099 <hws>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1100 <dc:attribute name="factory" value="hwsfactory"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1101 <dc:attribute name="name" value="${hws_points_name}"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1102 </hws>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1103 </dc:elements>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1104 </Graben>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1105 </official>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1106 <inofficial>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1107 <Durchlass>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1108 <dc:elements filter="$hws_points_kind=1 and $hws_points_official=0">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1109 <hws>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1110 <dc:attribute name="factory" value="hwsfactory"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1111 <dc:attribute name="name" value="${hws_points_name}"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1112 </hws>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1113 </dc:elements>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1114 </Durchlass>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1115 <Damm>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1116 <dc:elements filter="$hws_points_kind=2 and $hws_points_official=0">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1117 <hws>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1118 <dc:attribute name="factory" value="hwsfactory"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1119 <dc:attribute name="name" value="${hws_points_name}"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1120 </hws>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1121 </dc:elements>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1122 </Damm>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1123 <Graben>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1124 <dc:elements filter="$hws_points_kind=3 and $hws_points_official=0">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1125 <hws>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1126 <dc:attribute name="factory" value="hwsfactory"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1127 <dc:attribute name="name" value="${hws_points_name}"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1128 </hws>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1129 </dc:elements>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1130 </Graben>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1131 </inofficial>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1132 </points>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1133 </dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1134 </dc:macro>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1135 <dc:macro name="flood-map-km">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1136 <dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1137 <dc:statement>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1138 SELECT count(*) as km_exists
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1139 FROM river_axes_km 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
1140 </dc:statement>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1141 <dc:elements>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1142 <dc:if test="$km_exists>0">
5474
3e9bf93dc95c Move km and rename to kilometrage
Andre Heinecke <aheinecke@intevation.de>
parents: 5473
diff changeset
1143 <kilometrage>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1144 <dc:attribute name="factory" value="wmskmfactory"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1145 <dc:attribute name="ids" value="${river_id}"/>
5474
3e9bf93dc95c Move km and rename to kilometrage
Andre Heinecke <aheinecke@intevation.de>
parents: 5473
diff changeset
1146 </kilometrage>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1147 </dc:if>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1148 </dc:elements>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1149 </dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1150 </dc:macro>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1151 <dc:macro name="flood-map-qps">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1152 <dc:context>
5466
ba1bf40a9787 Restructure datacage to have a route_data folder
Andre Heinecke <aheinecke@intevation.de>
parents: 5464
diff changeset
1153 <dc:comment>Grab only the actual first</dc:comment>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1154 <dc:statement>
5466
ba1bf40a9787 Restructure datacage to have a route_data folder
Andre Heinecke <aheinecke@intevation.de>
parents: 5464
diff changeset
1155 SELECT DISTINCT
ba1bf40a9787 Restructure datacage to have a route_data folder
Andre Heinecke <aheinecke@intevation.de>
parents: 5464
diff changeset
1156 cs.kind_id as kind_id,
ba1bf40a9787 Restructure datacage to have a route_data folder
Andre Heinecke <aheinecke@intevation.de>
parents: 5464
diff changeset
1157 ck.name as kind_name
ba1bf40a9787 Restructure datacage to have a route_data folder
Andre Heinecke <aheinecke@intevation.de>
parents: 5464
diff changeset
1158 FROM cross_section_tracks cs
ba1bf40a9787 Restructure datacage to have a route_data folder
Andre Heinecke <aheinecke@intevation.de>
parents: 5464
diff changeset
1159 JOIN cross_section_track_kinds ck on cs.kind_id = ck.id
ba1bf40a9787 Restructure datacage to have a route_data folder
Andre Heinecke <aheinecke@intevation.de>
parents: 5464
diff changeset
1160 WHERE river_id = ${river_id}
ba1bf40a9787 Restructure datacage to have a route_data folder
Andre Heinecke <aheinecke@intevation.de>
parents: 5464
diff changeset
1161 AND kind_id=1
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1162 </dc:statement>
5466
ba1bf40a9787 Restructure datacage to have a route_data folder
Andre Heinecke <aheinecke@intevation.de>
parents: 5464
diff changeset
1163 <dc:if test="dc:has-result()">
ba1bf40a9787 Restructure datacage to have a route_data folder
Andre Heinecke <aheinecke@intevation.de>
parents: 5464
diff changeset
1164 <dc:elements>
ba1bf40a9787 Restructure datacage to have a route_data folder
Andre Heinecke <aheinecke@intevation.de>
parents: 5464
diff changeset
1165 <actual>
ba1bf40a9787 Restructure datacage to have a route_data folder
Andre Heinecke <aheinecke@intevation.de>
parents: 5464
diff changeset
1166 <dc:attribute name="description" value="${kind_name}"/>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1167 <dc:attribute name="factory" value="wmsqpsfactory"/>
5466
ba1bf40a9787 Restructure datacage to have a route_data folder
Andre Heinecke <aheinecke@intevation.de>
parents: 5464
diff changeset
1168 <dc:attribute name="ids" value="${river_id};${kind_name};${kind_id}"/>
ba1bf40a9787 Restructure datacage to have a route_data folder
Andre Heinecke <aheinecke@intevation.de>
parents: 5464
diff changeset
1169 </actual>
ba1bf40a9787 Restructure datacage to have a route_data folder
Andre Heinecke <aheinecke@intevation.de>
parents: 5464
diff changeset
1170 </dc:elements>
ba1bf40a9787 Restructure datacage to have a route_data folder
Andre Heinecke <aheinecke@intevation.de>
parents: 5464
diff changeset
1171 </dc:if>
ba1bf40a9787 Restructure datacage to have a route_data folder
Andre Heinecke <aheinecke@intevation.de>
parents: 5464
diff changeset
1172 </dc:context>
ba1bf40a9787 Restructure datacage to have a route_data folder
Andre Heinecke <aheinecke@intevation.de>
parents: 5464
diff changeset
1173 <dc:context>
ba1bf40a9787 Restructure datacage to have a route_data folder
Andre Heinecke <aheinecke@intevation.de>
parents: 5464
diff changeset
1174 <dc:comment>Now the other tracks</dc:comment>
ba1bf40a9787 Restructure datacage to have a route_data folder
Andre Heinecke <aheinecke@intevation.de>
parents: 5464
diff changeset
1175 <dc:statement>
ba1bf40a9787 Restructure datacage to have a route_data folder
Andre Heinecke <aheinecke@intevation.de>
parents: 5464
diff changeset
1176 SELECT DISTINCT
ba1bf40a9787 Restructure datacage to have a route_data folder
Andre Heinecke <aheinecke@intevation.de>
parents: 5464
diff changeset
1177 cs.kind_id as kind_id,
ba1bf40a9787 Restructure datacage to have a route_data folder
Andre Heinecke <aheinecke@intevation.de>
parents: 5464
diff changeset
1178 ck.name as kind_name,
ba1bf40a9787 Restructure datacage to have a route_data folder
Andre Heinecke <aheinecke@intevation.de>
parents: 5464
diff changeset
1179 cs.name as layer_name
ba1bf40a9787 Restructure datacage to have a route_data folder
Andre Heinecke <aheinecke@intevation.de>
parents: 5464
diff changeset
1180 FROM cross_section_tracks cs
ba1bf40a9787 Restructure datacage to have a route_data folder
Andre Heinecke <aheinecke@intevation.de>
parents: 5464
diff changeset
1181 JOIN cross_section_track_kinds ck on cs.kind_id = ck.id
ba1bf40a9787 Restructure datacage to have a route_data folder
Andre Heinecke <aheinecke@intevation.de>
parents: 5464
diff changeset
1182 WHERE river_id = ${river_id}
ba1bf40a9787 Restructure datacage to have a route_data folder
Andre Heinecke <aheinecke@intevation.de>
parents: 5464
diff changeset
1183 AND kind_id=0
ba1bf40a9787 Restructure datacage to have a route_data folder
Andre Heinecke <aheinecke@intevation.de>
parents: 5464
diff changeset
1184 </dc:statement>
ba1bf40a9787 Restructure datacage to have a route_data folder
Andre Heinecke <aheinecke@intevation.de>
parents: 5464
diff changeset
1185 <dc:if test="dc:has-result()">
ba1bf40a9787 Restructure datacage to have a route_data folder
Andre Heinecke <aheinecke@intevation.de>
parents: 5464
diff changeset
1186 <other>
ba1bf40a9787 Restructure datacage to have a route_data folder
Andre Heinecke <aheinecke@intevation.de>
parents: 5464
diff changeset
1187 <dc:elements>
ba1bf40a9787 Restructure datacage to have a route_data folder
Andre Heinecke <aheinecke@intevation.de>
parents: 5464
diff changeset
1188 <misc-qps>
ba1bf40a9787 Restructure datacage to have a route_data folder
Andre Heinecke <aheinecke@intevation.de>
parents: 5464
diff changeset
1189 <dc:attribute name="description" value="${layer_name}"/>
ba1bf40a9787 Restructure datacage to have a route_data folder
Andre Heinecke <aheinecke@intevation.de>
parents: 5464
diff changeset
1190 <dc:attribute name="factory" value="wmsqpsfactory"/>
ba1bf40a9787 Restructure datacage to have a route_data folder
Andre Heinecke <aheinecke@intevation.de>
parents: 5464
diff changeset
1191 <dc:attribute name="ids" value="${river_id};${layer_name};${kind_id}"/>
ba1bf40a9787 Restructure datacage to have a route_data folder
Andre Heinecke <aheinecke@intevation.de>
parents: 5464
diff changeset
1192 </misc-qps>
ba1bf40a9787 Restructure datacage to have a route_data folder
Andre Heinecke <aheinecke@intevation.de>
parents: 5464
diff changeset
1193 </dc:elements>
ba1bf40a9787 Restructure datacage to have a route_data folder
Andre Heinecke <aheinecke@intevation.de>
parents: 5464
diff changeset
1194 </other>
ba1bf40a9787 Restructure datacage to have a route_data folder
Andre Heinecke <aheinecke@intevation.de>
parents: 5464
diff changeset
1195 </dc:if>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1196 </dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1197 </dc:macro>
5477
ae60bb7b8085 Add proper handling of multiple river_axes for datacage and rivermapfile
Andre Heinecke <aheinecke@intevation.de>
parents: 5474
diff changeset
1198 <dc:macro name="flood-map-riveraxis">
ae60bb7b8085 Add proper handling of multiple river_axes for datacage and rivermapfile
Andre Heinecke <aheinecke@intevation.de>
parents: 5474
diff changeset
1199 <dc:context>
ae60bb7b8085 Add proper handling of multiple river_axes for datacage and rivermapfile
Andre Heinecke <aheinecke@intevation.de>
parents: 5474
diff changeset
1200 <dc:statement>
ae60bb7b8085 Add proper handling of multiple river_axes for datacage and rivermapfile
Andre Heinecke <aheinecke@intevation.de>
parents: 5474
diff changeset
1201 SELECT DISTINCT
ae60bb7b8085 Add proper handling of multiple river_axes for datacage and rivermapfile
Andre Heinecke <aheinecke@intevation.de>
parents: 5474
diff changeset
1202 ax.kind_id as kind_id,
ae60bb7b8085 Add proper handling of multiple river_axes for datacage and rivermapfile
Andre Heinecke <aheinecke@intevation.de>
parents: 5474
diff changeset
1203 ak.name as kind_name
ae60bb7b8085 Add proper handling of multiple river_axes for datacage and rivermapfile
Andre Heinecke <aheinecke@intevation.de>
parents: 5474
diff changeset
1204 FROM river_axes ax
ae60bb7b8085 Add proper handling of multiple river_axes for datacage and rivermapfile
Andre Heinecke <aheinecke@intevation.de>
parents: 5474
diff changeset
1205 JOIN axis_kinds ak on ax.kind_id = ak.id
ae60bb7b8085 Add proper handling of multiple river_axes for datacage and rivermapfile
Andre Heinecke <aheinecke@intevation.de>
parents: 5474
diff changeset
1206 WHERE river_id = ${river_id}
ae60bb7b8085 Add proper handling of multiple river_axes for datacage and rivermapfile
Andre Heinecke <aheinecke@intevation.de>
parents: 5474
diff changeset
1207 AND kind_id=1
ae60bb7b8085 Add proper handling of multiple river_axes for datacage and rivermapfile
Andre Heinecke <aheinecke@intevation.de>
parents: 5474
diff changeset
1208 </dc:statement>
ae60bb7b8085 Add proper handling of multiple river_axes for datacage and rivermapfile
Andre Heinecke <aheinecke@intevation.de>
parents: 5474
diff changeset
1209 <dc:if test="dc:has-result()">
ae60bb7b8085 Add proper handling of multiple river_axes for datacage and rivermapfile
Andre Heinecke <aheinecke@intevation.de>
parents: 5474
diff changeset
1210 <dc:elements>
ae60bb7b8085 Add proper handling of multiple river_axes for datacage and rivermapfile
Andre Heinecke <aheinecke@intevation.de>
parents: 5474
diff changeset
1211 <actual factory="riveraxis">
ae60bb7b8085 Add proper handling of multiple river_axes for datacage and rivermapfile
Andre Heinecke <aheinecke@intevation.de>
parents: 5474
diff changeset
1212 <dc:attribute name="description" value="${kind_name}"/>
ae60bb7b8085 Add proper handling of multiple river_axes for datacage and rivermapfile
Andre Heinecke <aheinecke@intevation.de>
parents: 5474
diff changeset
1213 <dc:attribute name="ids" value="${river_id};${kind_name};${kind_id}"/>
ae60bb7b8085 Add proper handling of multiple river_axes for datacage and rivermapfile
Andre Heinecke <aheinecke@intevation.de>
parents: 5474
diff changeset
1214 </actual>
ae60bb7b8085 Add proper handling of multiple river_axes for datacage and rivermapfile
Andre Heinecke <aheinecke@intevation.de>
parents: 5474
diff changeset
1215 </dc:elements>
ae60bb7b8085 Add proper handling of multiple river_axes for datacage and rivermapfile
Andre Heinecke <aheinecke@intevation.de>
parents: 5474
diff changeset
1216 </dc:if>
ae60bb7b8085 Add proper handling of multiple river_axes for datacage and rivermapfile
Andre Heinecke <aheinecke@intevation.de>
parents: 5474
diff changeset
1217 </dc:context>
ae60bb7b8085 Add proper handling of multiple river_axes for datacage and rivermapfile
Andre Heinecke <aheinecke@intevation.de>
parents: 5474
diff changeset
1218 <dc:context>
ae60bb7b8085 Add proper handling of multiple river_axes for datacage and rivermapfile
Andre Heinecke <aheinecke@intevation.de>
parents: 5474
diff changeset
1219 <dc:statement>
ae60bb7b8085 Add proper handling of multiple river_axes for datacage and rivermapfile
Andre Heinecke <aheinecke@intevation.de>
parents: 5474
diff changeset
1220 SELECT DISTINCT
ae60bb7b8085 Add proper handling of multiple river_axes for datacage and rivermapfile
Andre Heinecke <aheinecke@intevation.de>
parents: 5474
diff changeset
1221 ak.name as kind_name,
ae60bb7b8085 Add proper handling of multiple river_axes for datacage and rivermapfile
Andre Heinecke <aheinecke@intevation.de>
parents: 5474
diff changeset
1222 ax.kind_id as kind_id,
ae60bb7b8085 Add proper handling of multiple river_axes for datacage and rivermapfile
Andre Heinecke <aheinecke@intevation.de>
parents: 5474
diff changeset
1223 ax.name as layer_name
ae60bb7b8085 Add proper handling of multiple river_axes for datacage and rivermapfile
Andre Heinecke <aheinecke@intevation.de>
parents: 5474
diff changeset
1224 FROM river_axes ax
ae60bb7b8085 Add proper handling of multiple river_axes for datacage and rivermapfile
Andre Heinecke <aheinecke@intevation.de>
parents: 5474
diff changeset
1225 JOIN axis_kinds ak on ax.kind_id = ak.id
ae60bb7b8085 Add proper handling of multiple river_axes for datacage and rivermapfile
Andre Heinecke <aheinecke@intevation.de>
parents: 5474
diff changeset
1226 WHERE river_id = ${river_id}
ae60bb7b8085 Add proper handling of multiple river_axes for datacage and rivermapfile
Andre Heinecke <aheinecke@intevation.de>
parents: 5474
diff changeset
1227 AND kind_id &lt;&gt; 1
ae60bb7b8085 Add proper handling of multiple river_axes for datacage and rivermapfile
Andre Heinecke <aheinecke@intevation.de>
parents: 5474
diff changeset
1228 </dc:statement>
ae60bb7b8085 Add proper handling of multiple river_axes for datacage and rivermapfile
Andre Heinecke <aheinecke@intevation.de>
parents: 5474
diff changeset
1229 <dc:if test="dc:has-result()">
ae60bb7b8085 Add proper handling of multiple river_axes for datacage and rivermapfile
Andre Heinecke <aheinecke@intevation.de>
parents: 5474
diff changeset
1230 <other>
ae60bb7b8085 Add proper handling of multiple river_axes for datacage and rivermapfile
Andre Heinecke <aheinecke@intevation.de>
parents: 5474
diff changeset
1231 <dc:elements>
ae60bb7b8085 Add proper handling of multiple river_axes for datacage and rivermapfile
Andre Heinecke <aheinecke@intevation.de>
parents: 5474
diff changeset
1232 <misc-axis factory="riveraxis">
ae60bb7b8085 Add proper handling of multiple river_axes for datacage and rivermapfile
Andre Heinecke <aheinecke@intevation.de>
parents: 5474
diff changeset
1233 <dc:attribute name="description" value="${layer_name}"/>
ae60bb7b8085 Add proper handling of multiple river_axes for datacage and rivermapfile
Andre Heinecke <aheinecke@intevation.de>
parents: 5474
diff changeset
1234 <dc:attribute name="ids" value="${river_id};${layer_name};${kind_id}"/>
ae60bb7b8085 Add proper handling of multiple river_axes for datacage and rivermapfile
Andre Heinecke <aheinecke@intevation.de>
parents: 5474
diff changeset
1235 </misc-axis>
ae60bb7b8085 Add proper handling of multiple river_axes for datacage and rivermapfile
Andre Heinecke <aheinecke@intevation.de>
parents: 5474
diff changeset
1236 </dc:elements>
ae60bb7b8085 Add proper handling of multiple river_axes for datacage and rivermapfile
Andre Heinecke <aheinecke@intevation.de>
parents: 5474
diff changeset
1237 </other>
ae60bb7b8085 Add proper handling of multiple river_axes for datacage and rivermapfile
Andre Heinecke <aheinecke@intevation.de>
parents: 5474
diff changeset
1238 </dc:if>
ae60bb7b8085 Add proper handling of multiple river_axes for datacage and rivermapfile
Andre Heinecke <aheinecke@intevation.de>
parents: 5474
diff changeset
1239 </dc:context>
ae60bb7b8085 Add proper handling of multiple river_axes for datacage and rivermapfile
Andre Heinecke <aheinecke@intevation.de>
parents: 5474
diff changeset
1240 </dc:macro>
5515
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1241 <dc:macro name="flood-map-hydr-boundaries-state">
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1242 <dc:context>
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1243 <dc:statement>
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1244 SELECT DISTINCT
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1245 name
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1246 FROM hydr_boundaries
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1247 WHERE river_id = ${river_id}
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1248 AND kind = 2
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1249 </dc:statement>
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1250 <dc:elements>
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1251 <line factory="wmshydrboundariesfactory"
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1252 ids="{$river_id};{$name};2"
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1253 name="{$name}"/>
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1254 </dc:elements>
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1255 </dc:context>
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1256 <dc:context>
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1257 <dc:statement>
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1258 SELECT DISTINCT
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1259 name
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1260 FROM hydr_boundaries_poly
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1261 WHERE river_id = ${river_id}
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1262 AND kind = 2
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1263 </dc:statement>
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1264 <dc:elements>
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1265 <line factory="wmshydrboundariespolyfactory"
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1266 ids="{$river_id};{$name};2"
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1267 name="{$name}"/>
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1268 </dc:elements>
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1269 </dc:context>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1270 </dc:macro>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1271 <dc:macro name="flood-map-hydr-boundaries-lines">
5515
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1272 <dc:context>
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1273 <dc:statement>
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1274 SELECT DISTINCT
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1275 name
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1276 FROM hydr_boundaries
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1277 WHERE river_id = ${river_id}
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1278 AND kind = 1
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1279 </dc:statement>
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1280 <dc:comment> What about all other line kinds?</dc:comment>
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1281 <dc:if test="dc:has-result()">
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1282 <lines>
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1283 <dc:elements>
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1284 <line factory="wmshydrboundariesfactory"
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1285 ids="{$river_id};{$name};1"
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1286 name="{$name}"/>
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1287 </dc:elements>
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1288 </lines>
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1289 </dc:if>
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1290 </dc:context>
5364
51db7fbc2e77 Add HWS Lines and HWS Points folder structures to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5349
diff changeset
1291 </dc:macro>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1292 <dc:macro name="flood-map-hydr-boundaries-poly">
5515
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1293 <dc:context>
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1294 <dc:statement>
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1295 SELECT DISTINCT
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1296 b.sectie AS sectie_id,
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1297 sk.name AS sectie
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1298 FROM hydr_boundaries_poly b
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1299 JOIN sectie_kinds sk ON b.sectie = sk.id
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1300 WHERE b.river_id = ${river_id}
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1301 AND b.kind = 1
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1302 </dc:statement>
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1303 <dc:if test="dc:has-result()">
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1304 <sobek_areas>
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1305 <dc:elements>
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1306 <boundary name="{$sectie}"
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1307 factory="wmshydrboundariespolyfactory"
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1308 ids="{$river_id};{$sectie};1;{$sectie_id};-1"/>
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1309 </dc:elements>
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1310 </sobek_areas>
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1311 </dc:if>
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1312 </dc:context>
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1313 <dc:context>
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1314 <dc:statement>
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1315 SELECT DISTINCT
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1316 b.sobek AS sobek_id,
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1317 sk.name AS sobek
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1318 FROM hydr_boundaries_poly b
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1319 JOIN sobek_kinds sk ON b.sobek = sk.id
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1320 WHERE b.river_id = ${river_id}
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1321 AND b.kind = 1
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1322 </dc:statement>
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1323 <dc:if test="dc:has-result()">
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1324 <sobek_flooded>
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1325 <dc:elements>
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1326 <boundary name="{$sobek}"
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1327 factory="wmshydrboundariespolyfactory"
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1328 ids="{$river_id};{$sobek};1;-1;{$sobek_id}"/>
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1329 </dc:elements>
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1330 </sobek_flooded>
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1331 </dc:if>
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1332 </dc:context>
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1333 </dc:macro>
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1334 <dc:macro name="flood-map-hydr-boundaries">
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1335 <bfg_model>
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1336 <areas>
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1337 <dc:call-macro name="flood-map-hydr-boundaries-poly"/>
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1338 </areas>
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1339 <dc:call-macro name="flood-map-hydr-boundaries-lines"/>
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1340 </bfg_model>
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1341 <federal>
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1342 <dc:call-macro name="flood-map-hydr-boundaries-state"/>
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
1343 </federal>
5364
51db7fbc2e77 Add HWS Lines and HWS Points folder structures to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5349
diff changeset
1344 </dc:macro>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1345 <dc:macro name="flood-map-floodplain">
5404
08262e0ce57a Add buildings with kinds to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5367
diff changeset
1346 <dc:context>
08262e0ce57a Add buildings with kinds to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5367
diff changeset
1347 <dc:statement>
5496
23d8f2700b38 Add support for multiple floodplains and add them to the datacage accordingly
Andre Heinecke <aheinecke@intevation.de>
parents: 5477
diff changeset
1348 SELECT DISTINCT
23d8f2700b38 Add support for multiple floodplains and add them to the datacage accordingly
Andre Heinecke <aheinecke@intevation.de>
parents: 5477
diff changeset
1349 fp.kind_id as kind_id,
23d8f2700b38 Add support for multiple floodplains and add them to the datacage accordingly
Andre Heinecke <aheinecke@intevation.de>
parents: 5477
diff changeset
1350 flk.name as kind_name
23d8f2700b38 Add support for multiple floodplains and add them to the datacage accordingly
Andre Heinecke <aheinecke@intevation.de>
parents: 5477
diff changeset
1351 FROM floodplain fp
23d8f2700b38 Add support for multiple floodplains and add them to the datacage accordingly
Andre Heinecke <aheinecke@intevation.de>
parents: 5477
diff changeset
1352 JOIN floodplain_kinds flk on fp.kind_id = flk.id
23d8f2700b38 Add support for multiple floodplains and add them to the datacage accordingly
Andre Heinecke <aheinecke@intevation.de>
parents: 5477
diff changeset
1353 WHERE river_id = ${river_id}
23d8f2700b38 Add support for multiple floodplains and add them to the datacage accordingly
Andre Heinecke <aheinecke@intevation.de>
parents: 5477
diff changeset
1354 AND kind_id=1
5404
08262e0ce57a Add buildings with kinds to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5367
diff changeset
1355 </dc:statement>
5496
23d8f2700b38 Add support for multiple floodplains and add them to the datacage accordingly
Andre Heinecke <aheinecke@intevation.de>
parents: 5477
diff changeset
1356 <dc:if test="dc:has-result()">
23d8f2700b38 Add support for multiple floodplains and add them to the datacage accordingly
Andre Heinecke <aheinecke@intevation.de>
parents: 5477
diff changeset
1357 <dc:elements>
23d8f2700b38 Add support for multiple floodplains and add them to the datacage accordingly
Andre Heinecke <aheinecke@intevation.de>
parents: 5477
diff changeset
1358 <floody factory="wmsfloodplainfactory"
23d8f2700b38 Add support for multiple floodplains and add them to the datacage accordingly
Andre Heinecke <aheinecke@intevation.de>
parents: 5477
diff changeset
1359 description="{$kind_name}"
23d8f2700b38 Add support for multiple floodplains and add them to the datacage accordingly
Andre Heinecke <aheinecke@intevation.de>
parents: 5477
diff changeset
1360 ids="{$river_id};{$kind_name};{$kind_id}"/>
23d8f2700b38 Add support for multiple floodplains and add them to the datacage accordingly
Andre Heinecke <aheinecke@intevation.de>
parents: 5477
diff changeset
1361 </dc:elements>
23d8f2700b38 Add support for multiple floodplains and add them to the datacage accordingly
Andre Heinecke <aheinecke@intevation.de>
parents: 5477
diff changeset
1362 </dc:if>
23d8f2700b38 Add support for multiple floodplains and add them to the datacage accordingly
Andre Heinecke <aheinecke@intevation.de>
parents: 5477
diff changeset
1363 </dc:context>
23d8f2700b38 Add support for multiple floodplains and add them to the datacage accordingly
Andre Heinecke <aheinecke@intevation.de>
parents: 5477
diff changeset
1364 <dc:context>
23d8f2700b38 Add support for multiple floodplains and add them to the datacage accordingly
Andre Heinecke <aheinecke@intevation.de>
parents: 5477
diff changeset
1365 <dc:statement>
23d8f2700b38 Add support for multiple floodplains and add them to the datacage accordingly
Andre Heinecke <aheinecke@intevation.de>
parents: 5477
diff changeset
1366 SELECT DISTINCT
23d8f2700b38 Add support for multiple floodplains and add them to the datacage accordingly
Andre Heinecke <aheinecke@intevation.de>
parents: 5477
diff changeset
1367 flk.name as kind_name,
23d8f2700b38 Add support for multiple floodplains and add them to the datacage accordingly
Andre Heinecke <aheinecke@intevation.de>
parents: 5477
diff changeset
1368 fp.kind_id as kind_id,
23d8f2700b38 Add support for multiple floodplains and add them to the datacage accordingly
Andre Heinecke <aheinecke@intevation.de>
parents: 5477
diff changeset
1369 fp.name as layer_name
23d8f2700b38 Add support for multiple floodplains and add them to the datacage accordingly
Andre Heinecke <aheinecke@intevation.de>
parents: 5477
diff changeset
1370 FROM floodplain fp
23d8f2700b38 Add support for multiple floodplains and add them to the datacage accordingly
Andre Heinecke <aheinecke@intevation.de>
parents: 5477
diff changeset
1371 JOIN floodplain_kinds flk on fp.kind_id = flk.id
23d8f2700b38 Add support for multiple floodplains and add them to the datacage accordingly
Andre Heinecke <aheinecke@intevation.de>
parents: 5477
diff changeset
1372 WHERE river_id = ${river_id}
23d8f2700b38 Add support for multiple floodplains and add them to the datacage accordingly
Andre Heinecke <aheinecke@intevation.de>
parents: 5477
diff changeset
1373 AND kind_id &lt;&gt; 1
23d8f2700b38 Add support for multiple floodplains and add them to the datacage accordingly
Andre Heinecke <aheinecke@intevation.de>
parents: 5477
diff changeset
1374 </dc:statement>
23d8f2700b38 Add support for multiple floodplains and add them to the datacage accordingly
Andre Heinecke <aheinecke@intevation.de>
parents: 5477
diff changeset
1375 <dc:if test="dc:has-result()">
23d8f2700b38 Add support for multiple floodplains and add them to the datacage accordingly
Andre Heinecke <aheinecke@intevation.de>
parents: 5477
diff changeset
1376 <other>
23d8f2700b38 Add support for multiple floodplains and add them to the datacage accordingly
Andre Heinecke <aheinecke@intevation.de>
parents: 5477
diff changeset
1377 <dc:elements>
23d8f2700b38 Add support for multiple floodplains and add them to the datacage accordingly
Andre Heinecke <aheinecke@intevation.de>
parents: 5477
diff changeset
1378 <floody factory="wmsfloodplainfactory"
23d8f2700b38 Add support for multiple floodplains and add them to the datacage accordingly
Andre Heinecke <aheinecke@intevation.de>
parents: 5477
diff changeset
1379 description="{$layer_name}"
23d8f2700b38 Add support for multiple floodplains and add them to the datacage accordingly
Andre Heinecke <aheinecke@intevation.de>
parents: 5477
diff changeset
1380 ids="{$river_id};{$layer_name};{$kind_id}"/>
23d8f2700b38 Add support for multiple floodplains and add them to the datacage accordingly
Andre Heinecke <aheinecke@intevation.de>
parents: 5477
diff changeset
1381 </dc:elements>
23d8f2700b38 Add support for multiple floodplains and add them to the datacage accordingly
Andre Heinecke <aheinecke@intevation.de>
parents: 5477
diff changeset
1382 </other>
23d8f2700b38 Add support for multiple floodplains and add them to the datacage accordingly
Andre Heinecke <aheinecke@intevation.de>
parents: 5477
diff changeset
1383 </dc:if>
5404
08262e0ce57a Add buildings with kinds to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5367
diff changeset
1384 </dc:context>
08262e0ce57a Add buildings with kinds to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5367
diff changeset
1385 </dc:macro>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1386
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1387 <dc:macro name="hwslines_by_kind">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1388 <dc:comment>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1389 Call from a context where fed_name hws_kind hws_name and river_id is
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1390 availble
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1391 </dc:comment>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1392 <Durchlass>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1393 <dc:elements filter="$hws_kind=1">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1394 <hws>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1395 <dc:attribute name="factory" value="wmshwslinesfactory"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1396 <dc:attribute name="ids" value="${river_id};${hws_name}"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1397 <dc:attribute name="name" value="${hws_name}"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1398 </hws>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1399 </dc:elements>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1400 </Durchlass>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1401 <Damm>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1402 <dc:elements filter="$hws_kind=2">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1403 <hws>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1404 <dc:attribute name="factory" value="wmshwslinesfactory"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1405 <dc:attribute name="ids" value="${river_id};${hws_name}"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1406 <dc:attribute name="name" value="${hws_name}"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1407 </hws>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1408 </dc:elements>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1409 </Damm>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1410 <Graben>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1411 <dc:elements filter="$hws_kind=3">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1412 <hws>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1413 <dc:attribute name="factory" value="wmshwslinesfactory"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1414 <dc:attribute name="ids" value="${river_id};${hws_name}"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1415 <dc:attribute name="name" value="${hws_name}"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1416 </hws>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1417 </dc:elements>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1418 </Graben>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1419 </dc:macro>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1420
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1421 <dc:macro name="hwslines">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1422 <hws_lines>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1423 <official>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1424 <dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1425 <dc:statement>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1426 SELECT DISTINCT
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1427 fs.name AS fed_name,
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1428 fs.id AS fed_id
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1429 FROM hws_lines hws
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1430 JOIN fed_states fs ON hws.fed_state_id = fs.id
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1431 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
1432 AND hws.official=1
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1433 </dc:statement>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1434 <dc:elements>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1435 <dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1436 <dc:statement>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1437 SELECT DISTINCT
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1438 name AS hws_name,
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1439 kind_id AS hws_kind
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1440 FROM hws_lines
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1441 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
1442 AND official=1
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1443 AND fed_state_id = ${fed_id} ORDER BY name
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1444 </dc:statement>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1445 <fedstate>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1446 <dc:attribute name="description" value="${fed_name}"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1447 <dc:call-macro name="hwslines_by_kind"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1448 </fedstate>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1449 </dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1450 </dc:elements>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1451 </dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1452 <dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1453 <dc:statement>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1454 SELECT distinct
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1455 name AS hws_name,
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1456 kind_id AS hws_kind
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1457 FROM hws_lines
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1458 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
1459 AND official=1
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1460 AND fed_state_id IS NULL
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1461 ORDER BY name
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1462 </dc:statement>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1463 <hws_fed_unknown>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1464 <dc:call-macro name="hwslines_by_kind"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1465 </hws_fed_unknown>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1466 </dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1467 </official>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1468 <inofficial>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1469 <dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1470 <dc:statement>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1471 SELECT DISTINCT
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1472 fs.name AS fed_name,
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1473 fs.id AS fed_id
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1474 FROM hws_lines hws
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1475 JOIN fed_states fs ON hws.fed_state_id = fs.id
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1476 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
1477 AND hws.official=0
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1478 </dc:statement>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1479 <dc:elements>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1480 <dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1481 <dc:statement>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1482 SELECT DISTINCT
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1483 name AS hws_name,
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1484 kind_id AS hws_kind
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1485 FROM hws_lines
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1486 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
1487 AND official=0
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1488 AND fed_state_id = ${fed_id} ORDER BY name
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1489 </dc:statement>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1490 <fedstate>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1491 <dc:attribute name="description" value="${fed_name}"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1492 <dc:call-macro name="hwslines_by_kind"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1493 </fedstate>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1494 </dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1495 </dc:elements>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1496 </dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1497 <dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1498 <dc:statement>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1499 SELECT distinct
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1500 name AS hws_name,
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1501 kind_id AS hws_kind
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1502 FROM hws_lines
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1503 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
1504 AND official=0
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1505 AND fed_state_id IS NULL ORDER BY name
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1506 </dc:statement>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1507 <hws_fed_unknown>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1508 <dc:call-macro name="hwslines_by_kind"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1509 </hws_fed_unknown>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1510 </dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1511 </inofficial>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1512 </hws_lines>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1513 </dc:macro>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1514
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1515 <dc:macro name="hwspoints_by_kind">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1516 <dc:comment>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1517 Call from a context where fed_name hws_kind hws_name and river_id is
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1518 availble
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1519 </dc:comment>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1520 <Durchlass>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1521 <dc:elements filter="$hws_kind=1">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1522 <hws>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1523 <dc:attribute name="factory" value="wmshwspointsfactory"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1524 <dc:attribute name="ids" value="${river_id};${hws_name}"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1525 <dc:attribute name="name" value="${hws_name}"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1526 </hws>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1527 </dc:elements>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1528 </Durchlass>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1529 <Damm>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1530 <dc:elements filter="$hws_kind=2">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1531 <hws>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1532 <dc:attribute name="factory" value="wmshwspointsfactory"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1533 <dc:attribute name="ids" value="${river_id};${hws_name}"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1534 <dc:attribute name="name" value="${hws_name}"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1535 </hws>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1536 </dc:elements>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1537 </Damm>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1538 <Graben>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1539 <dc:elements filter="$hws_kind=3">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1540 <hws>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1541 <dc:attribute name="factory" value="wmshwspointsfactory"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1542 <dc:attribute name="ids" value="${river_id};${hws_name}"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1543 <dc:attribute name="name" value="${hws_name}"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1544 </hws>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1545 </dc:elements>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1546 </Graben>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1547 </dc:macro>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1548
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1549 <dc:macro name="hwspoints">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1550 <hws_points>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1551 <official>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1552 <dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1553 <dc:statement>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1554 SELECT DISTINCT
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1555 fs.name AS fed_name,
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1556 fs.id AS fed_id
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1557 FROM hws_points hws
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1558 JOIN fed_states fs ON hws.fed_state_id = fs.id
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1559 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
1560 AND hws.official=1
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1561 </dc:statement>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1562 <dc:elements>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1563 <dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1564 <dc:statement>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1565 SELECT DISTINCT
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1566 name AS hws_name,
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1567 kind_id AS hws_kind
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1568 FROM hws_points
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1569 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
1570 AND official=1
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1571 AND fed_state_id = ${fed_id} ORDER BY name
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1572 </dc:statement>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1573 <fedstate>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1574 <dc:attribute name="description" value="${fed_name}"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1575 <dc:call-macro name="hwspoints_by_kind"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1576 </fedstate>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1577 </dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1578 </dc:elements>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1579 </dc:context>
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 name AS hws_name,
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1584 kind_id AS hws_kind
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1585 FROM hws_points
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1586 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
1587 AND official=1
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1588 AND fed_state_id IS NULL
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1589 ORDER BY name
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1590 </dc:statement>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1591 <hws_fed_unknown>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1592 <dc:call-macro name="hwspoints_by_kind"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1593 </hws_fed_unknown>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1594 </dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1595 </official>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1596 <inofficial>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1597 <dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1598 <dc:statement>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1599 SELECT DISTINCT
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1600 fs.name AS fed_name,
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1601 fs.id AS fed_id
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1602 FROM hws_points hws
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1603 JOIN fed_states fs ON hws.fed_state_id = fs.id
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1604 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
1605 AND hws.official=0
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1606 </dc:statement>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1607 <dc:elements>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1608 <dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1609 <dc:statement>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1610 SELECT DISTINCT
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1611 name AS hws_name,
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1612 kind_id AS hws_kind
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1613 FROM hws_points
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1614 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
1615 AND official=0
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1616 AND fed_state_id = ${fed_id} ORDER BY name
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1617 </dc:statement>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1618 <fedstate>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1619 <dc:attribute name="description" value="${fed_name}"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1620 <dc:call-macro name="hwspoints_by_kind"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1621 </fedstate>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1622 </dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1623 </dc:elements>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1624 </dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1625 <dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1626 <dc:statement>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1627 SELECT distinct
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1628 name AS hws_name,
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1629 kind_id AS hws_kind
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1630 FROM hws_points
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1631 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
1632 AND official=0
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1633 AND fed_state_id IS NULL ORDER BY name
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1634 </dc:statement>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1635 <hws_fed_unknown>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1636 <dc:call-macro name="hwspoints_by_kind"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1637 </hws_fed_unknown>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1638 </dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1639 </inofficial>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1640 </hws_points>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1641 </dc:macro>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1642
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1643 <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
1644 <dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1645 <dc:statement>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1646 SELECT DISTINCT
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1647 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
1648 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
1649 FROM buildings b
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1650 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
1651 WHERE b.river_id = ${river_id}
5467
6aa04b30f7ff Do not use != in sql statement
Andre Heinecke <aheinecke@intevation.de>
parents: 5466
diff changeset
1652 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
1653 </dc:statement>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1654 <dc:elements>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1655 <buildings>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1656 <dc:attribute name="description" value="${building_kind}"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1657 <dc:attribute name="factory" value="wmsbuildingsfactory"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1658 <dc:attribute name="ids" value="${river_id};${building_kind};${building_kind_id}"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1659 </buildings>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1660 </dc:elements>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1661 </dc:context>
5435
70026e3b6af3 Add buildings of kind 0 to data cage
Andre Heinecke <aheinecke@intevation.de>
parents: 5405
diff changeset
1662 <dc:context>
70026e3b6af3 Add buildings of kind 0 to data cage
Andre Heinecke <aheinecke@intevation.de>
parents: 5405
diff changeset
1663 <dc:statement>
70026e3b6af3 Add buildings of kind 0 to data cage
Andre Heinecke <aheinecke@intevation.de>
parents: 5405
diff changeset
1664 SELECT DISTINCT
70026e3b6af3 Add buildings of kind 0 to data cage
Andre Heinecke <aheinecke@intevation.de>
parents: 5405
diff changeset
1665 b.kind_id AS building_kind_id,
70026e3b6af3 Add buildings of kind 0 to data cage
Andre Heinecke <aheinecke@intevation.de>
parents: 5405
diff changeset
1666 b.name AS building_name,
70026e3b6af3 Add buildings of kind 0 to data cage
Andre Heinecke <aheinecke@intevation.de>
parents: 5405
diff changeset
1667 bk.name AS building_kind
70026e3b6af3 Add buildings of kind 0 to data cage
Andre Heinecke <aheinecke@intevation.de>
parents: 5405
diff changeset
1668 FROM buildings b
70026e3b6af3 Add buildings of kind 0 to data cage
Andre Heinecke <aheinecke@intevation.de>
parents: 5405
diff changeset
1669 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
1670 WHERE river_id = ${river_id}
70026e3b6af3 Add buildings of kind 0 to data cage
Andre Heinecke <aheinecke@intevation.de>
parents: 5405
diff changeset
1671 AND kind_id = 0 OR
70026e3b6af3 Add buildings of kind 0 to data cage
Andre Heinecke <aheinecke@intevation.de>
parents: 5405
diff changeset
1672 kind_id IS NULL
70026e3b6af3 Add buildings of kind 0 to data cage
Andre Heinecke <aheinecke@intevation.de>
parents: 5405
diff changeset
1673 </dc:statement>
70026e3b6af3 Add buildings of kind 0 to data cage
Andre Heinecke <aheinecke@intevation.de>
parents: 5405
diff changeset
1674 <dc:elements>
70026e3b6af3 Add buildings of kind 0 to data cage
Andre Heinecke <aheinecke@intevation.de>
parents: 5405
diff changeset
1675 <dc:element name="${building_kind}">
70026e3b6af3 Add buildings of kind 0 to data cage
Andre Heinecke <aheinecke@intevation.de>
parents: 5405
diff changeset
1676 <dc:elements>
70026e3b6af3 Add buildings of kind 0 to data cage
Andre Heinecke <aheinecke@intevation.de>
parents: 5405
diff changeset
1677 <buildings>
70026e3b6af3 Add buildings of kind 0 to data cage
Andre Heinecke <aheinecke@intevation.de>
parents: 5405
diff changeset
1678 <dc:attribute name="description" value="${building_name}"/>
70026e3b6af3 Add buildings of kind 0 to data cage
Andre Heinecke <aheinecke@intevation.de>
parents: 5405
diff changeset
1679 <dc:attribute name="factory" value="wmsbuildingsfactory"/>
70026e3b6af3 Add buildings of kind 0 to data cage
Andre Heinecke <aheinecke@intevation.de>
parents: 5405
diff changeset
1680 <dc:attribute name="ids" value="${river_id};${building_name}"/>
70026e3b6af3 Add buildings of kind 0 to data cage
Andre Heinecke <aheinecke@intevation.de>
parents: 5405
diff changeset
1681 </buildings>
70026e3b6af3 Add buildings of kind 0 to data cage
Andre Heinecke <aheinecke@intevation.de>
parents: 5405
diff changeset
1682 </dc:elements>
70026e3b6af3 Add buildings of kind 0 to data cage
Andre Heinecke <aheinecke@intevation.de>
parents: 5405
diff changeset
1683 </dc:element>
70026e3b6af3 Add buildings of kind 0 to data cage
Andre Heinecke <aheinecke@intevation.de>
parents: 5405
diff changeset
1684 </dc:elements>
70026e3b6af3 Add buildings of kind 0 to data cage
Andre Heinecke <aheinecke@intevation.de>
parents: 5405
diff changeset
1685 </dc:context>
5437
b582df0c7b00 Add Jetties to floodmap
Andre Heinecke <aheinecke@intevation.de>
parents: 5435
diff changeset
1686 <dc:context>
b582df0c7b00 Add Jetties to floodmap
Andre Heinecke <aheinecke@intevation.de>
parents: 5435
diff changeset
1687 <dc:statement>
b582df0c7b00 Add Jetties to floodmap
Andre Heinecke <aheinecke@intevation.de>
parents: 5435
diff changeset
1688 SELECT DISTINCT
b582df0c7b00 Add Jetties to floodmap
Andre Heinecke <aheinecke@intevation.de>
parents: 5435
diff changeset
1689 j.kind_id AS jetty_kind_id,
b582df0c7b00 Add Jetties to floodmap
Andre Heinecke <aheinecke@intevation.de>
parents: 5435
diff changeset
1690 jk.name AS jetty_kind
b582df0c7b00 Add Jetties to floodmap
Andre Heinecke <aheinecke@intevation.de>
parents: 5435
diff changeset
1691 FROM jetties j
b582df0c7b00 Add Jetties to floodmap
Andre Heinecke <aheinecke@intevation.de>
parents: 5435
diff changeset
1692 JOIN jetty_kinds jk ON j.kind_id = jk.id
b582df0c7b00 Add Jetties to floodmap
Andre Heinecke <aheinecke@intevation.de>
parents: 5435
diff changeset
1693 WHERE river_id = ${river_id}
b582df0c7b00 Add Jetties to floodmap
Andre Heinecke <aheinecke@intevation.de>
parents: 5435
diff changeset
1694 </dc:statement>
b582df0c7b00 Add Jetties to floodmap
Andre Heinecke <aheinecke@intevation.de>
parents: 5435
diff changeset
1695 <dc:if test="dc:has-result()">
b582df0c7b00 Add Jetties to floodmap
Andre Heinecke <aheinecke@intevation.de>
parents: 5435
diff changeset
1696 <jetties>
b582df0c7b00 Add Jetties to floodmap
Andre Heinecke <aheinecke@intevation.de>
parents: 5435
diff changeset
1697 <dc:elements>
b582df0c7b00 Add Jetties to floodmap
Andre Heinecke <aheinecke@intevation.de>
parents: 5435
diff changeset
1698 <jetty>
b582df0c7b00 Add Jetties to floodmap
Andre Heinecke <aheinecke@intevation.de>
parents: 5435
diff changeset
1699 <dc:attribute name="description" value="${jetty_kind}"/>
b582df0c7b00 Add Jetties to floodmap
Andre Heinecke <aheinecke@intevation.de>
parents: 5435
diff changeset
1700 <dc:attribute name="factory" value="wmsjettiesfactory"/>
b582df0c7b00 Add Jetties to floodmap
Andre Heinecke <aheinecke@intevation.de>
parents: 5435
diff changeset
1701 <dc:attribute name="ids" value="${river_id};${jetty_kind};${jetty_kind_id}"/>
b582df0c7b00 Add Jetties to floodmap
Andre Heinecke <aheinecke@intevation.de>
parents: 5435
diff changeset
1702 </jetty>
b582df0c7b00 Add Jetties to floodmap
Andre Heinecke <aheinecke@intevation.de>
parents: 5435
diff changeset
1703 </dc:elements>
b582df0c7b00 Add Jetties to floodmap
Andre Heinecke <aheinecke@intevation.de>
parents: 5435
diff changeset
1704 </jetties>
b582df0c7b00 Add Jetties to floodmap
Andre Heinecke <aheinecke@intevation.de>
parents: 5435
diff changeset
1705 </dc:if>
b582df0c7b00 Add Jetties to floodmap
Andre Heinecke <aheinecke@intevation.de>
parents: 5435
diff changeset
1706 </dc:context>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1707 </dc:macro>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1708 <dc:macro name="flood-map-fixpoints">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1709 <dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1710 <dc:statement>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1711 SELECT count(*) as km_exists, name as name
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1712 FROM fixpoints WHERE river_id = ${river_id} GROUP BY name
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1713 </dc:statement>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1714 <dc:elements>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1715 <dc:if test="$km_exists>0">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1716 <fixpoint>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1717 <dc:attribute name="factory" value="wmsfixpointsfactory"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1718 <dc:attribute name="ids" value="${river_id};${name}"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1719 <dc:attribute name="name" value="${name}"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1720 </fixpoint>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1721 </dc:if>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1722 </dc:elements>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1723 </dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1724 </dc:macro>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1725 <dc:macro name="flood-map-gaugelocations">
5516
56d18ecc7d41 Add Pegelonline-Pegelpunkte layer instead of gauge_locations
Andre Heinecke <aheinecke@intevation.de>
parents: 5515
diff changeset
1726 <dc:attribute name="factory" value="externalwmsfactory"/>
56d18ecc7d41 Add Pegelonline-Pegelpunkte layer instead of gauge_locations
Andre Heinecke <aheinecke@intevation.de>
parents: 5515
diff changeset
1727 <dc:attribute name="ids" value="http://www.pegelonline.wsv.de/webservices/gis/wms;Pegelpunkte;Pegelonline-Pegelpunkte"/>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1728 </dc:macro>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1729 <dc:macro name="flood-map-uesk">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1730 <uesk>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1731 <calculations>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1732 <current>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1733 <bfg>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1734 <dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1735 <dc:statement>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1736 SELECT count(*) as uesg_exist, name as name
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1737 FROM floodmaps
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1738 WHERE river_id = ${river_id} AND kind = 111
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1739 GROUP BY name, kind
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1740 </dc:statement>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1741 <dc:elements>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1742 <dc:if test="$uesg_exist>0">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1743 <floodmaps>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1744 <dc:attribute name="factory" value="wmsfloodmapsfactory"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1745 <dc:attribute name="ids" value="${river_id};${name}"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1746 <dc:attribute name="name" value="${name}"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1747 </floodmaps>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1748 </dc:if>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1749 </dc:elements>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1750 </dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1751 </bfg>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1752 <land>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1753 <dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1754 <dc:statement>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1755 SELECT count(*) as uesg_exist, name as name
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1756 FROM floodmaps
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1757 WHERE river_id = ${river_id} AND kind = 112
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1758 GROUP BY name, kind
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1759 </dc:statement>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1760 <dc:elements>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1761 <dc:if test="$uesg_exist>0">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1762 <floodmaps>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1763 <dc:attribute name="factory" value="wmsfloodmapsfactory"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1764 <dc:attribute name="ids" value="${river_id};${name}"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1765 <dc:attribute name="name" value="${name}"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1766 </floodmaps>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1767 </dc:if>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1768 </dc:elements>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1769 </dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1770 </land>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1771 </current>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1772 <potentiel>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1773 <bfg>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1774 <dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1775 <dc:statement>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1776 SELECT count(*) as uesg_exist, name as name
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1777 FROM floodmaps
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1778 WHERE river_id = ${river_id} AND kind = 121
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1779 GROUP BY name, kind
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1780 </dc:statement>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1781 <dc:elements>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1782 <dc:if test="$uesg_exist>0">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1783 <floodmaps>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1784 <dc:attribute name="factory" value="wmsfloodmapsfactory"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1785 <dc:attribute name="ids" value="${river_id};${name}"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1786 <dc:attribute name="name" value="${name}"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1787 </floodmaps>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1788 </dc:if>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1789 </dc:elements>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1790 </dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1791 </bfg>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1792 <land>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1793 <dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1794 <dc:statement>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1795 SELECT count(*) as uesg_exist, name as name
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1796 FROM floodmaps
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1797 WHERE river_id = ${river_id} AND kind = 122
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1798 GROUP BY name, kind
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1799 </dc:statement>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1800 <dc:elements>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1801 <dc:if test="$uesg_exist>0">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1802 <floodmaps>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1803 <dc:attribute name="factory" value="wmsfloodmapsfactory"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1804 <dc:attribute name="ids" value="${river_id};${name}"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1805 <dc:attribute name="name" value="${name}"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1806 </floodmaps>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1807 </dc:if>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1808 </dc:elements>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1809 </dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1810 </land>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1811 </potentiel>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1812 </calculations>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1813 </uesk>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1814 </dc:macro>
5464
f2bcf0fb1efd Add externalwms for Catchments to datacage config
Andre Heinecke <aheinecke@intevation.de>
parents: 5463
diff changeset
1815
f2bcf0fb1efd Add externalwms for Catchments to datacage config
Andre Heinecke <aheinecke@intevation.de>
parents: 5463
diff changeset
1816 <dc:macro name="flood-map-catchments">
f2bcf0fb1efd Add externalwms for Catchments to datacage config
Andre Heinecke <aheinecke@intevation.de>
parents: 5463
diff changeset
1817 <dc:attribute name="factory" value="externalwmsfactory"/>
f2bcf0fb1efd Add externalwms for Catchments to datacage config
Andre Heinecke <aheinecke@intevation.de>
parents: 5463
diff changeset
1818 <dc:attribute name="ids" value="http://geoportal.bafg.de/wmsproxy/INSPIRE/DrainageBasin;HY.PHYSICALWATERS.CATCHMENTS;Einzugsgebiet"/>
f2bcf0fb1efd Add externalwms for Catchments to datacage config
Andre Heinecke <aheinecke@intevation.de>
parents: 5463
diff changeset
1819 </dc:macro>
f2bcf0fb1efd Add externalwms for Catchments to datacage config
Andre Heinecke <aheinecke@intevation.de>
parents: 5463
diff changeset
1820
5466
ba1bf40a9787 Restructure datacage to have a route_data folder
Andre Heinecke <aheinecke@intevation.de>
parents: 5464
diff changeset
1821 <dc:macro name="flood-map-routing">
ba1bf40a9787 Restructure datacage to have a route_data folder
Andre Heinecke <aheinecke@intevation.de>
parents: 5464
diff changeset
1822 <qps>
ba1bf40a9787 Restructure datacage to have a route_data folder
Andre Heinecke <aheinecke@intevation.de>
parents: 5464
diff changeset
1823 <dc:call-macro name="flood-map-qps"/>
ba1bf40a9787 Restructure datacage to have a route_data folder
Andre Heinecke <aheinecke@intevation.de>
parents: 5464
diff changeset
1824 </qps>
5473
fcecf635b5e3 Move fixpoints to their correct location in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5467
diff changeset
1825 <dc:call-macro name="flood-map-fixpoints"/>
5474
3e9bf93dc95c Move km and rename to kilometrage
Andre Heinecke <aheinecke@intevation.de>
parents: 5473
diff changeset
1826 <dc:call-macro name="flood-map-km"/>
5477
ae60bb7b8085 Add proper handling of multiple river_axes for datacage and rivermapfile
Andre Heinecke <aheinecke@intevation.de>
parents: 5474
diff changeset
1827 <axis>
ae60bb7b8085 Add proper handling of multiple river_axes for datacage and rivermapfile
Andre Heinecke <aheinecke@intevation.de>
parents: 5474
diff changeset
1828 <dc:call-macro name="flood-map-riveraxis"/>
ae60bb7b8085 Add proper handling of multiple river_axes for datacage and rivermapfile
Andre Heinecke <aheinecke@intevation.de>
parents: 5474
diff changeset
1829 </axis>
5466
ba1bf40a9787 Restructure datacage to have a route_data folder
Andre Heinecke <aheinecke@intevation.de>
parents: 5464
diff changeset
1830 </dc:macro>
ba1bf40a9787 Restructure datacage to have a route_data folder
Andre Heinecke <aheinecke@intevation.de>
parents: 5464
diff changeset
1831
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1832 <dc:macro name="flood-map-complete">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1833 <buildings>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1834 <dc:call-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
1835 </buildings>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1836 <catchments>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1837 <dc:call-macro name="flood-map-catchments"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1838 </catchments>
5466
ba1bf40a9787 Restructure datacage to have a route_data folder
Andre Heinecke <aheinecke@intevation.de>
parents: 5464
diff changeset
1839 <!-- TODO: HW-Marken -->
ba1bf40a9787 Restructure datacage to have a route_data folder
Andre Heinecke <aheinecke@intevation.de>
parents: 5464
diff changeset
1840 <hws>
ba1bf40a9787 Restructure datacage to have a route_data folder
Andre Heinecke <aheinecke@intevation.de>
parents: 5464
diff changeset
1841 <dc:call-macro name="hwslines"/>
ba1bf40a9787 Restructure datacage to have a route_data folder
Andre Heinecke <aheinecke@intevation.de>
parents: 5464
diff changeset
1842 <dc:call-macro name="hwspoints"/>
ba1bf40a9787 Restructure datacage to have a route_data folder
Andre Heinecke <aheinecke@intevation.de>
parents: 5464
diff changeset
1843 </hws>
ba1bf40a9787 Restructure datacage to have a route_data folder
Andre Heinecke <aheinecke@intevation.de>
parents: 5464
diff changeset
1844 <route_data>
ba1bf40a9787 Restructure datacage to have a route_data folder
Andre Heinecke <aheinecke@intevation.de>
parents: 5464
diff changeset
1845 <dc:call-macro name="flood-map-routing"/>
ba1bf40a9787 Restructure datacage to have a route_data folder
Andre Heinecke <aheinecke@intevation.de>
parents: 5464
diff changeset
1846 </route_data>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1847 <hydrboundaries>
5496
23d8f2700b38 Add support for multiple floodplains and add them to the datacage accordingly
Andre Heinecke <aheinecke@intevation.de>
parents: 5477
diff changeset
1848 <dc:call-macro name="flood-map-floodplain"/>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1849 <dc:call-macro name="flood-map-hydr-boundaries"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1850 </hydrboundaries>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1851 <dc:call-macro name="flood-map-uesk"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1852 <gaugelocations>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1853 <dc:call-macro name="flood-map-gaugelocations"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1854 </gaugelocations>
5463
1aedf4c0ac28 Move background out of rastermap folder.
Andre Heinecke <aheinecke@intevation.de>
parents: 5437
diff changeset
1855 <background>
1aedf4c0ac28 Move background out of rastermap folder.
Andre Heinecke <aheinecke@intevation.de>
parents: 5437
diff changeset
1856 <dc:attribute name="factory" value="wmsbackground"/>
1aedf4c0ac28 Move background out of rastermap folder.
Andre Heinecke <aheinecke@intevation.de>
parents: 5437
diff changeset
1857 <dc:attribute name="ids" value="${river_id}"/>
1aedf4c0ac28 Move background out of rastermap folder.
Andre Heinecke <aheinecke@intevation.de>
parents: 5437
diff changeset
1858 </background>
2684
14188f8daefb Added support for WMS gauges in floodmaps and maps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2683
diff changeset
1859 </dc:macro>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1860 </dc:if>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1861 <dc:if test="dc:contains($artifact-outs, 'minfo-heights')">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1862 <dc:call-macro name="minfo-heights"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1863 <dc:macro name="minfo-heights">
3614
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 3592
diff changeset
1864 <bedheights>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1865 <dc:call-macro name="bed-heights-single"/>
3614
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 3592
diff changeset
1866 <dc:call-macro name="bed-heights-epoch"/>
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 3592
diff changeset
1867 </bedheights>
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 3592
diff changeset
1868 </dc:macro>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1869 </dc:if>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1870 <dc:if test="dc:contains($artifact-outs, 'minfo-heights-epoch')">
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1871 <bedheights>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1872 <dc:call-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
1873 </bedheights>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1874 </dc:if>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1875 <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
1876 <single>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1877 <dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1878 <dc:statement>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1879 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
1880 year AS bedh_year,
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1881 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
1882 FROM bed_height_single 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
1883 </dc:statement>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1884 <dc:elements>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1885 <height>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1886 <dc:attribute name="factory" value="bedheight"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1887 <dc:attribute name="ids" value="bedheight-single-${bedh_id}-${bedh_year}"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1888 <dc:attribute name="description" value="${bedh_descr}"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1889 </height>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1890 </dc:elements>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1891 </dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1892 </single>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1893 </dc:macro>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1894 <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
1895 <epoch>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1896 <dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1897 <dc:statement>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1898 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
1899 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
1900 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
1901 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
1902 </dc:statement>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1903 <dc:elements>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1904 <height>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1905 <dc:attribute name="factory" value="bedheight"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1906 <dc:attribute name="ids" value="bedheight-epoch-${bedh_id}-${bedh_interval_id}"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1907 <dc:attribute name="description" value="${bedh_descr}"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1908 </height>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1909 </dc:elements>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1910 </dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1911 </epoch>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1912 </dc:macro>
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
1913 </dc:elements>
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
1914 </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
1915 </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
1916
1046
0a5eff5511b1 Fixed flys/issue262: Unified user and system datacage template
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
1917 <dc:choose>
0a5eff5511b1 Fixed flys/issue262: Unified user and system datacage template
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
1918 <dc:comment>
0a5eff5511b1 Fixed flys/issue262: Unified user and system datacage template
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
1919 User specific part
0a5eff5511b1 Fixed flys/issue262: Unified user and system datacage template
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
1920 ------------------
0a5eff5511b1 Fixed flys/issue262: Unified user and system datacage template
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
1921 </dc:comment>
0a5eff5511b1 Fixed flys/issue262: Unified user and system datacage template
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
1922 <dc:when test="dc:contains($parameters, 'user-id')">
1657
91d038c7aae5 Bugfix: #328 Improved datacage configuration and labels for selected waterlevels.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 1186
diff changeset
1923
91d038c7aae5 Bugfix: #328 Improved datacage configuration and labels for selected waterlevels.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 1186
diff changeset
1924
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
1925 <old_calculations>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
1926 <!-- <dc:macro name="load-user">-->
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
1927 <dc:call-macro name="user-range">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
1928 <dc:context connection="user">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
1929 <dc:comment>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
1930 Get the user and collection-id.
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
1931 </dc:comment>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
1932 <dc:statement>
1879
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
1933 SELECT u.id AS user_id, c.id AS collection_id, c.name as collection_name
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
1934 FROM collections c JOIN users u ON c.user_id = u.id
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
1935 WHERE u.gid = CAST(${user-id} AS uuid)
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
1936 ORDER BY c.creation DESC
1760
424e26041564 Configured datacage to hand out id of artifact that can produce the w_diff.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1758
diff changeset
1937 </dc:statement>
1657
91d038c7aae5 Bugfix: #328 Improved datacage configuration and labels for selected waterlevels.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 1186
diff changeset
1938
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
1939
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
1940 <dc:macro name="range-filter">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
1941 <dc:statement>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
1942 SELECT m.id AS a_id,
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
1943 m.state AS a_state,
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
1944 m.gid AS a_gid,
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
1945 m.creation AS a_creation,
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
1946 COALESCE(ld_mode, '') AS ld_m,
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
1947 COALESCE(ld_locations, '') AS ld_l,
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
1948 COALESCE(ld_from, '') AS ld_f,
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
1949 COALESCE(ld_to, '') AS ld_t
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
1950 FROM master_artifacts_range m
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
1951 WHERE m.collection_id = ${collection_id} AND m.gid &lt;&gt; CAST(${artifact-id} AS uuid)
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
1952 AND EXISTS (
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
1953 SELECT id FROM artifact_data ad WHERE ad.artifact_id = m.id AND k = 'river' AND v = ${river})
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
1954 </dc:statement>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
1955 <dc:elements>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
1956 <dc:variable name="from" type="number" expr="dc:fromValue($ld_m, $ld_l, $ld_f)"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
1957 <dc:variable name="to" type="number" expr="dc:toValue($ld_m, $ld_l, $ld_t)"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
1958 <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)">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
1959 <dc:macro-body/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
1960 </dc:if>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
1961 </dc:elements>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
1962 </dc:macro>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
1963
3307
81a98f360553 Very basic official lines in dc, malplaced.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3283
diff changeset
1964 <!-- OFFICIAL LINES -->
81a98f360553 Very basic official lines in dc, malplaced.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3283
diff changeset
1965 <dc:if test="dc:contains($artifact-outs, 'longitudinal_section')">
81a98f360553 Very basic official lines in dc, malplaced.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3283
diff changeset
1966 <dc:comment comment=".wst -------------------------------"/>
81a98f360553 Very basic official lines in dc, malplaced.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3283
diff changeset
1967 <officiallines>
81a98f360553 Very basic official lines in dc, malplaced.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3283
diff changeset
1968 <dc:elements>
81a98f360553 Very basic official lines in dc, malplaced.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3283
diff changeset
1969 <dc:context>
81a98f360553 Very basic official lines in dc, malplaced.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3283
diff changeset
1970 <dc:statement>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
1971 SELECT m.id AS a_id,
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
1972 m.state AS a_state,
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
1973 m.gid AS a_gid,
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
1974 m.creation AS a_creation,
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
1975 ardg.v AS gaugy,
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
1976 arv.v AS wqsingle
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
1977 FROM master_artifacts m,
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
1978 artifact_data ardg,
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
1979 artifact_data arv
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
1980 WHERE m.collection_id = ${collection_id}
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
1981 AND m.gid = CAST(${artifact-id} AS uuid)
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
1982 AND ardg.artifact_id = m.id
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
1983 AND ardg.k = 'ld_gaugename'
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
1984 AND arv.artifact_id = m.id
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
1985 AND arv.k = 'wq_single'
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
1986 AND EXISTS (
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
1987 SELECT id
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
1988 FROM artifact_data ad
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
1989 WHERE ad.artifact_id = m.id
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
1990 AND k = 'river'
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
1991 AND v = ${river})
3307
81a98f360553 Very basic official lines in dc, malplaced.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3283
diff changeset
1992 </dc:statement>
81a98f360553 Very basic official lines in dc, malplaced.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3283
diff changeset
1993 <dc:elements>
81a98f360553 Very basic official lines in dc, malplaced.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3283
diff changeset
1994 <dc:context connection="system">
81a98f360553 Very basic official lines in dc, malplaced.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3283
diff changeset
1995 <dc:statement>
81a98f360553 Very basic official lines in dc, malplaced.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3283
diff changeset
1996 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
1997 FROM official_q_values ol
81a98f360553 Very basic official lines in dc, malplaced.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3283
diff changeset
1998 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
1999 </dc:statement>
81a98f360553 Very basic official lines in dc, malplaced.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3283
diff changeset
2000 <dc:elements>
81a98f360553 Very basic official lines in dc, malplaced.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3283
diff changeset
2001 <dc:element name="${olname}">
81a98f360553 Very basic official lines in dc, malplaced.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3283
diff changeset
2002 <dc:attribute name="name" value="${olname}"/>
81a98f360553 Very basic official lines in dc, malplaced.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3283
diff changeset
2003 <dc:attribute name="ids" value="additionals-wstv-${wstcolpos}-${wstid}"/>
81a98f360553 Very basic official lines in dc, malplaced.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3283
diff changeset
2004 <dc:attribute name="factory" value="staticwkms"/>
81a98f360553 Very basic official lines in dc, malplaced.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3283
diff changeset
2005 </dc:element>
81a98f360553 Very basic official lines in dc, malplaced.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3283
diff changeset
2006 </dc:elements>
81a98f360553 Very basic official lines in dc, malplaced.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3283
diff changeset
2007 </dc:context>
81a98f360553 Very basic official lines in dc, malplaced.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3283
diff changeset
2008 </dc:elements>
81a98f360553 Very basic official lines in dc, malplaced.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3283
diff changeset
2009 </dc:context>
81a98f360553 Very basic official lines in dc, malplaced.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3283
diff changeset
2010 </dc:elements>
81a98f360553 Very basic official lines in dc, malplaced.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3283
diff changeset
2011 </officiallines>
81a98f360553 Very basic official lines in dc, malplaced.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3283
diff changeset
2012 </dc:if>
3570
9eba1e2d821d Set info attribute in datacage, to have tooltips in gui.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3314
diff changeset
2013 <!-- 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
2014
1879
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2015 <dc:comment>
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2016 SHOW W-DIFFERENCES
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2017 </dc:comment>
1657
91d038c7aae5 Bugfix: #328 Improved datacage configuration and labels for selected waterlevels.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 1186
diff changeset
2018
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2019 <dc:macro name="differences">
1879
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2020 <differences>
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2021 <dc:elements>
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2022 <dc:context>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2023 <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
2024 <dc:context>
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2025 <dc:statement>
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
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
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2027 FROM outs as o, facets as f, artifacts as a
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2028 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
2029 </dc:statement>
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2030 <dc:elements>
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2031 <dc:element name="${facet_name}">
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2032 <dc:attribute name="description" value="${facet_description}"/>
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2033 <dc:attribute name="factory" value="winfo"/>
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2034 <dc:attribute name="artifact-id" value="${aid}"/>
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2035 <dc:attribute name="ids" value="${aid}"/>
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2036 <dc:attribute name="out" value="w_differences"/>
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2037 </dc:element>
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2038 </dc:elements>
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2039 </dc:context>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2040 </dc:call-macro>
1879
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2041 </dc:context>
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2042 </dc:elements>
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2043 </differences>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2044 </dc:macro>
1657
91d038c7aae5 Bugfix: #328 Improved datacage configuration and labels for selected waterlevels.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 1186
diff changeset
2045
2722
36631f23acdf Allow loading of previous reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2721
diff changeset
2046 <dc:comment>
36631f23acdf Allow loading of previous reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2721
diff changeset
2047 SHOW REFERENCE CURVE
36631f23acdf Allow loading of previous reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2721
diff changeset
2048 </dc:comment>
36631f23acdf Allow loading of previous reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2721
diff changeset
2049
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2050
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2051 <dc:macro name="reference-curves">
2722
36631f23acdf Allow loading of previous reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2721
diff changeset
2052 <reference_curves>
36631f23acdf Allow loading of previous reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2721
diff changeset
2053 <dc:elements>
36631f23acdf Allow loading of previous reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2721
diff changeset
2054 <dc:context>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2055 <dc:call-macro name="user-range">
2722
36631f23acdf Allow loading of previous reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2721
diff changeset
2056 <dc:context>
36631f23acdf Allow loading of previous reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2721
diff changeset
2057 <dc:statement>
36631f23acdf Allow loading of previous reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2721
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
36631f23acdf Allow loading of previous reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2721
diff changeset
2059 FROM outs as o, facets as f, artifacts as a
36631f23acdf Allow loading of previous reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2721
diff changeset
2060 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
2061 </dc:statement>
36631f23acdf Allow loading of previous reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2721
diff changeset
2062 <dc:elements>
36631f23acdf Allow loading of previous reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2721
diff changeset
2063 <dc:element name="${facet_name}">
36631f23acdf Allow loading of previous reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2721
diff changeset
2064 <dc:attribute name="description" value="${facet_description}"/>
36631f23acdf Allow loading of previous reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2721
diff changeset
2065 <dc:attribute name="factory" value="winfo"/>
36631f23acdf Allow loading of previous reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2721
diff changeset
2066 <dc:attribute name="artifact-id" value="${aid}"/>
36631f23acdf Allow loading of previous reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2721
diff changeset
2067 <dc:attribute name="ids" value="${aid}"/>
36631f23acdf Allow loading of previous reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2721
diff changeset
2068 <dc:attribute name="out" value="reference_curve"/>
36631f23acdf Allow loading of previous reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2721
diff changeset
2069 </dc:element>
36631f23acdf Allow loading of previous reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2721
diff changeset
2070 </dc:elements>
36631f23acdf Allow loading of previous reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2721
diff changeset
2071 </dc:context>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2072 </dc:call-macro>
2722
36631f23acdf Allow loading of previous reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2721
diff changeset
2073 </dc:context>
36631f23acdf Allow loading of previous reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2721
diff changeset
2074 </dc:elements>
36631f23acdf Allow loading of previous reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2721
diff changeset
2075 </reference_curves>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2076 </dc:macro>
2722
36631f23acdf Allow loading of previous reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2721
diff changeset
2077
36631f23acdf Allow loading of previous reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2721
diff changeset
2078 <dc:comment>
36631f23acdf Allow loading of previous reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2721
diff changeset
2079 SHOW COMPUTED DISCHARGE CURVES
36631f23acdf Allow loading of previous reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2721
diff changeset
2080 </dc:comment>
36631f23acdf Allow loading of previous reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2721
diff changeset
2081
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2082 <dc:macro name="computed-discharge-curve">
1880
ebd16028efa3 Include computed discharge curves in dc conf.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1879
diff changeset
2083 <computed_discharge_curves>
ebd16028efa3 Include computed discharge curves in dc conf.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1879
diff changeset
2084 <dc:elements>
ebd16028efa3 Include computed discharge curves in dc conf.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1879
diff changeset
2085 <dc:context>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2086 <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
2087 <dc:context>
ebd16028efa3 Include computed discharge curves in dc conf.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1879
diff changeset
2088 <dc:statement>
ebd16028efa3 Include computed discharge curves in dc conf.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1879
diff changeset
2089 SELECT a.gid as aid, f.id AS fid, f.name AS facet_name, f.num AS facet_num, f.description as facet_description
ebd16028efa3 Include computed discharge curves in dc conf.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1879
diff changeset
2090 FROM outs as o, facets as f, artifacts as a
ebd16028efa3 Include computed discharge curves in dc conf.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1879
diff changeset
2091 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
2092 </dc:statement>
ebd16028efa3 Include computed discharge curves in dc conf.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1879
diff changeset
2093 <dc:elements>
ebd16028efa3 Include computed discharge curves in dc conf.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1879
diff changeset
2094 <dc:element name="${facet_name}">
ebd16028efa3 Include computed discharge curves in dc conf.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1879
diff changeset
2095 <dc:attribute name="description" value="${facet_description}"/>
ebd16028efa3 Include computed discharge curves in dc conf.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1879
diff changeset
2096 <dc:attribute name="factory" value="winfo"/>
ebd16028efa3 Include computed discharge curves in dc conf.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1879
diff changeset
2097 <dc:attribute name="artifact-id" value="${aid}"/>
ebd16028efa3 Include computed discharge curves in dc conf.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1879
diff changeset
2098 <dc:attribute name="ids" value="${aid}"/>
ebd16028efa3 Include computed discharge curves in dc conf.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1879
diff changeset
2099 <dc:attribute name="out" value="computed_discharge_curve"/>
ebd16028efa3 Include computed discharge curves in dc conf.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1879
diff changeset
2100 </dc:element>
ebd16028efa3 Include computed discharge curves in dc conf.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1879
diff changeset
2101 </dc:elements>
ebd16028efa3 Include computed discharge curves in dc conf.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1879
diff changeset
2102 </dc:context>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2103 </dc:call-macro>
1880
ebd16028efa3 Include computed discharge curves in dc conf.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1879
diff changeset
2104 </dc:context>
ebd16028efa3 Include computed discharge curves in dc conf.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1879
diff changeset
2105 </dc:elements>
ebd16028efa3 Include computed discharge curves in dc conf.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1879
diff changeset
2106 </computed_discharge_curves>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2107 </dc:macro>
3219
fa30e6322ef3 Removed trailing whitespace.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3051
diff changeset
2108
2736
8839086c4b7b Modify Cross-Section DC conf to allow loading of waterlevels, fixations and heightmarks.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2732
diff changeset
2109 <dc:comment>
8839086c4b7b Modify Cross-Section DC conf to allow loading of waterlevels, fixations and heightmarks.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2732
diff changeset
2110 CROSS SECTION
8839086c4b7b Modify Cross-Section DC conf to allow loading of waterlevels, fixations and heightmarks.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2732
diff changeset
2111 </dc:comment>
8839086c4b7b Modify Cross-Section DC conf to allow loading of waterlevels, fixations and heightmarks.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2732
diff changeset
2112
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2113
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2114 <dc:macro name="waterlevels">
2736
8839086c4b7b Modify Cross-Section DC conf to allow loading of waterlevels, fixations and heightmarks.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2732
diff changeset
2115 <waterlevels>
8839086c4b7b Modify Cross-Section DC conf to allow loading of waterlevels, fixations and heightmarks.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2732
diff changeset
2116 <dc:elements>
8839086c4b7b Modify Cross-Section DC conf to allow loading of waterlevels, fixations and heightmarks.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2732
diff changeset
2117 <dc:context>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2118 <dc:call-macro name="range-filter">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2119 <dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2120 <dc:statement>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2121 SELECT id AS out_id
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2122 FROM outs
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2123 WHERE artifact_id = ${a_id} AND name = 'cross_section'
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2124 </dc:statement>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2125 <dc:elements>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2126 <dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2127 <dc:statement>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2128 SELECT name AS facet_name, num as facet_num, description AS facet_description
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2129 FROM facets
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2130 WHERE out_id = ${out_id}
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2131 ORDER BY num ASC, name DESC
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2132 </dc:statement>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2133 <longitudinal_section_columns>
2736
8839086c4b7b Modify Cross-Section DC conf to allow loading of waterlevels, fixations and heightmarks.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2732
diff changeset
2134 <dc:attribute name="description" value="${river} ${a_creation}"/>
8839086c4b7b Modify Cross-Section DC conf to allow loading of waterlevels, fixations and heightmarks.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2732
diff changeset
2135 <dc:elements>
8839086c4b7b Modify Cross-Section DC conf to allow loading of waterlevels, fixations and heightmarks.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2732
diff changeset
2136 <dc:element name="${facet_name}">
8839086c4b7b Modify Cross-Section DC conf to allow loading of waterlevels, fixations and heightmarks.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2732
diff changeset
2137 <dc:attribute name="description" value="${facet_description}"/>
8839086c4b7b Modify Cross-Section DC conf to allow loading of waterlevels, fixations and heightmarks.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2732
diff changeset
2138 <dc:attribute name="ids" value="${facet_num}"/>
8839086c4b7b Modify Cross-Section DC conf to allow loading of waterlevels, fixations and heightmarks.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2732
diff changeset
2139 <dc:attribute name="factory" value="winfo"/>
8839086c4b7b Modify Cross-Section DC conf to allow loading of waterlevels, fixations and heightmarks.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2732
diff changeset
2140 <dc:attribute name="artifact-id" value="${a_gid}"/>
8839086c4b7b Modify Cross-Section DC conf to allow loading of waterlevels, fixations and heightmarks.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2732
diff changeset
2141 <dc:attribute name="out" value="cross_section"/>
8839086c4b7b Modify Cross-Section DC conf to allow loading of waterlevels, fixations and heightmarks.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2732
diff changeset
2142 </dc:element>
8839086c4b7b Modify Cross-Section DC conf to allow loading of waterlevels, fixations and heightmarks.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2732
diff changeset
2143 </dc:elements>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2144 </longitudinal_section_columns>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2145 </dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2146 </dc:elements>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2147 </dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2148 </dc:call-macro>
2736
8839086c4b7b Modify Cross-Section DC conf to allow loading of waterlevels, fixations and heightmarks.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2732
diff changeset
2149 </dc:context>
8839086c4b7b Modify Cross-Section DC conf to allow loading of waterlevels, fixations and heightmarks.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2732
diff changeset
2150 </dc:elements>
8839086c4b7b Modify Cross-Section DC conf to allow loading of waterlevels, fixations and heightmarks.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2732
diff changeset
2151 </waterlevels>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2152 </dc:macro>
1657
91d038c7aae5 Bugfix: #328 Improved datacage configuration and labels for selected waterlevels.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 1186
diff changeset
2153
91d038c7aae5 Bugfix: #328 Improved datacage configuration and labels for selected waterlevels.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 1186
diff changeset
2154
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2155 <dc:macro name="longitudinal">
1879
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2156 <waterlevels>
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2157 <dc:elements>
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2158 <dc:context>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2159 <dc:call-macro name="range-filter">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2160 <dc:context>
1879
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2161 <dc:statement>
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2162 SELECT id AS out_id
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2163 FROM outs
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2164 WHERE artifact_id = ${a_id} AND name = 'longitudinal_section'
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2165 </dc:statement>
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2166 <dc:elements>
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2167 <dc:context>
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2168 <dc:statement>
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2169 SELECT name AS facet_name, num as facet_num, description AS facet_description
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2170 FROM facets
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2171 WHERE out_id = ${out_id}
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2172 ORDER BY num ASC, name DESC
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2173 </dc:statement>
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2174 <longitudinal_section_columns>
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2175 <dc:attribute name="description" value="${river} ${a_creation}"/>
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2176 <dc:elements>
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2177 <dc:element name="${facet_name}">
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2178 <dc:attribute name="description" value="${facet_description}"/>
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2179 <dc:attribute name="ids" value="${facet_num}"/>
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2180 <dc:attribute name="factory" value="winfo"/>
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2181 <dc:attribute name="artifact-id" value="${a_gid}"/>
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2182 <dc:attribute name="out" value="longitudinal_section"/>
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2183 </dc:element>
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2184 </dc:elements>
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2185 </longitudinal_section_columns>
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2186 </dc:context>
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2187 </dc:elements>
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2188 </dc:context>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2189 </dc:call-macro>
1879
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2190 </dc:context>
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2191 </dc:elements>
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2192 </waterlevels>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2193 </dc:macro>
1657
91d038c7aae5 Bugfix: #328 Improved datacage configuration and labels for selected waterlevels.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 1186
diff changeset
2194
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2195
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2196 <dc:macro name="longitudinal-section">
3579
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2197 <waterlevels>
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2198 <dc:elements>
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2199 <dc:context>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2200 <dc:call-macro name="range-filter">
3579
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2201 <dc:context>
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2202 <dc:statement>
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2203 SELECT id AS out_id
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2204 FROM outs
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2205 WHERE artifact_id = ${a_id} AND name = 'fix_longitudinal_section_curve'
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2206 </dc:statement>
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2207 <dc:elements>
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2208 <dc:context>
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2209 <!-- average und deviation ls_0 . ls_1 ...-->
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2210 <dc:statement>
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2211 SELECT name AS facet_name, num as facet_num, description AS facet_description
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2212 FROM facets
3589
ab447cd29b73 More former calculations in FixA DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3588
diff changeset
2213 WHERE out_id = ${out_id} AND ( name LIKE 'fix_deviation_ls%' OR name LIKE 'fix_sector_average_ls%' OR name LIKE 'fix_analysis_events_ls%' OR name LIKE 'fix_reference_events_ls%' )
3579
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2214 ORDER BY num ASC, name DESC
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2215 </dc:statement>
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2216 <waterlevels>
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2217 <dc:attribute name="description" value="${river} ${a_creation} ${collection_name}"/>
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2218 <dc:elements>
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2219 <dc:element name="${facet_name}">
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2220 <dc:attribute name="description" value="${facet_description}"/>
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2221 <dc:attribute name="ids" value="${facet_num}"/>
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2222 <dc:attribute name="factory" value="fixanalysis"/>
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2223 <dc:attribute name="artifact-id" value="${a_gid}"/>
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2224 <dc:attribute name="out" value="fix_longitudinal_section_curve"/>
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2225 </dc:element>
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2226 </dc:elements>
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2227 </waterlevels>
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2228 </dc:context>
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2229 </dc:elements>
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2230 </dc:context>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2231 </dc:call-macro>
3579
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2232 </dc:context>
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2233 </dc:elements>
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2234 </waterlevels>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2235 </dc:macro>
3579
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2236
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2237 <dc:macro name="delta-wt">
3579
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2238 <waterlevels>
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2239 <dc:elements>
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2240 <dc:context>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2241 <dc:call-macro name="range-filter">
3579
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2242 <dc:context>
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2243 <dc:statement>
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2244 SELECT id AS out_id
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2245 FROM outs
3582
e08bc99e097f Show former calculations in Fix/DeltaWT DC, fixes.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3581
diff changeset
2246 WHERE artifact_id = ${a_id} AND name = 'fix_deltawt_curve'
3579
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2247 </dc:statement>
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2248 <dc:elements>
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2249 <dc:context>
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2250 <dc:statement>
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2251 SELECT name AS facet_name, num as facet_num, description AS facet_description
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2252 FROM facets
3590
4f2470cbf72c More former calculations in fixa dwt dc.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3589
diff changeset
2253 WHERE out_id = ${out_id} and ( name LIKE 'fix_sector_average_dwt%' OR name LIKE 'fix_deviation_dwt%' OR name = 'fix_analysis_events_dwt' OR name = 'fix_reference_events_dwt' OR name = 'fix_analysis_periods_dwt' )
3579
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2254 ORDER BY num ASC, name DESC
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2255 </dc:statement>
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2256 <waterlevels>
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2257 <dc:attribute name="description" value="${river} ${a_creation} ${collection_name}"/>
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2258 <dc:elements>
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2259 <dc:element name="${facet_name}">
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2260 <dc:attribute name="description" value="${facet_description}"/>
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2261 <dc:attribute name="ids" value="${facet_num}"/>
3582
e08bc99e097f Show former calculations in Fix/DeltaWT DC, fixes.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3581
diff changeset
2262 <dc:attribute name="factory" value="fixanalysis"/>
3579
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2263 <dc:attribute name="artifact-id" value="${a_gid}"/>
3582
e08bc99e097f Show former calculations in Fix/DeltaWT DC, fixes.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3581
diff changeset
2264 <dc:attribute name="out" value="fix_deltawt_curve"/>
3579
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2265 </dc:element>
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2266 </dc:elements>
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2267 </waterlevels>
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2268 </dc:context>
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2269 </dc:elements>
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2270 </dc:context>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2271 </dc:call-macro>
3579
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2272 </dc:context>
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2273 </dc:elements>
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2274 </waterlevels>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2275 </dc:macro>
3579
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2276
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2277
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2278 <dc:macro name="fix-derivate-curve">
3589
ab447cd29b73 More former calculations in FixA DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3588
diff changeset
2279 <waterlevels>
ab447cd29b73 More former calculations in FixA DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3588
diff changeset
2280 <dc:elements>
ab447cd29b73 More former calculations in FixA DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3588
diff changeset
2281 <dc:context>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2282 <dc:call-macro name="range-filter">
3589
ab447cd29b73 More former calculations in FixA DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3588
diff changeset
2283 <dc:context>
ab447cd29b73 More former calculations in FixA DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3588
diff changeset
2284 <dc:statement>
ab447cd29b73 More former calculations in FixA DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3588
diff changeset
2285 SELECT id AS out_id
ab447cd29b73 More former calculations in FixA DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3588
diff changeset
2286 FROM outs
ab447cd29b73 More former calculations in FixA DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3588
diff changeset
2287 WHERE artifact_id = ${a_id} AND name = 'fix_derivate_curve'
ab447cd29b73 More former calculations in FixA DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3588
diff changeset
2288 </dc:statement>
ab447cd29b73 More former calculations in FixA DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3588
diff changeset
2289 <dc:elements>
ab447cd29b73 More former calculations in FixA DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3588
diff changeset
2290 <dc:context>
ab447cd29b73 More former calculations in FixA DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3588
diff changeset
2291 <dc:statement>
ab447cd29b73 More former calculations in FixA DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3588
diff changeset
2292 SELECT name AS facet_name, num as facet_num, description AS facet_description
ab447cd29b73 More former calculations in FixA DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3588
diff changeset
2293 FROM facets
4165
f54223644814 Fix loading former derivative curves in fixation analysis artifacts DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4143
diff changeset
2294 WHERE out_id = ${out_id} and name = 'fix_derivate_curve'
3589
ab447cd29b73 More former calculations in FixA DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3588
diff changeset
2295 ORDER BY num ASC, name DESC
ab447cd29b73 More former calculations in FixA DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3588
diff changeset
2296 </dc:statement>
ab447cd29b73 More former calculations in FixA DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3588
diff changeset
2297 <waterlevels>
ab447cd29b73 More former calculations in FixA DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3588
diff changeset
2298 <dc:attribute name="description" value="${river} ${a_creation} ${collection_name}"/>
ab447cd29b73 More former calculations in FixA DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3588
diff changeset
2299 <dc:elements>
ab447cd29b73 More former calculations in FixA DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3588
diff changeset
2300 <dc:element name="${facet_name}">
ab447cd29b73 More former calculations in FixA DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3588
diff changeset
2301 <dc:attribute name="description" value="${facet_description}"/>
ab447cd29b73 More former calculations in FixA DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3588
diff changeset
2302 <dc:attribute name="ids" value="${facet_num}"/>
ab447cd29b73 More former calculations in FixA DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3588
diff changeset
2303 <dc:attribute name="factory" value="fixanalysis"/>
ab447cd29b73 More former calculations in FixA DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3588
diff changeset
2304 <dc:attribute name="artifact-id" value="${a_gid}"/>
ab447cd29b73 More former calculations in FixA DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3588
diff changeset
2305 <dc:attribute name="out" value="fix_derivate_curve"/>
ab447cd29b73 More former calculations in FixA DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3588
diff changeset
2306 </dc:element>
ab447cd29b73 More former calculations in FixA DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3588
diff changeset
2307 </dc:elements>
ab447cd29b73 More former calculations in FixA DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3588
diff changeset
2308 </waterlevels>
ab447cd29b73 More former calculations in FixA DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3588
diff changeset
2309 </dc:context>
ab447cd29b73 More former calculations in FixA DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3588
diff changeset
2310 </dc:elements>
ab447cd29b73 More former calculations in FixA DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3588
diff changeset
2311 </dc:context>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2312 </dc:call-macro>
3589
ab447cd29b73 More former calculations in FixA DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3588
diff changeset
2313 </dc:context>
ab447cd29b73 More former calculations in FixA DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3588
diff changeset
2314 </dc:elements>
ab447cd29b73 More former calculations in FixA DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3588
diff changeset
2315 </waterlevels>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2316 </dc:macro>
3589
ab447cd29b73 More former calculations in FixA DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3588
diff changeset
2317
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2318
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2319 <dc:macro name="fix-wq-curve">
3579
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2320 <waterlevels>
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2321 <dc:elements>
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2322 <dc:context>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2323 <dc:call-macro name="range-filter">
3579
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2324 <dc:context>
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2325 <dc:statement>
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2326 SELECT id AS out_id
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2327 FROM outs
3583
18d9b7af3783 Show former calculation in FixA WQ DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3582
diff changeset
2328 WHERE artifact_id = ${a_id} AND name = 'fix_wq_curve'
3579
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2329 </dc:statement>
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2330 <dc:elements>
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2331 <dc:context>
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2332 <dc:statement>
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2333 SELECT name AS facet_name, num as facet_num, description AS facet_description
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2334 FROM facets
3588
76571c601d06 Add more discharge curve data to DC and W/Q diag.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3587
diff changeset
2335 WHERE out_id = ${out_id} and ( name LIKE 'fix_sector_average_wq%' OR name = 'fix_wq_curve' OR name LIKE 'fix_analysis_events_wq%' OR name LIKE 'fix_reference_events_wq%' )
3579
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2336 ORDER BY num ASC, name DESC
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2337 </dc:statement>
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2338 <waterlevels>
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2339 <dc:attribute name="description" value="${river} ${a_creation} ${collection_name}"/>
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2340 <dc:elements>
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2341 <dc:element name="${facet_name}">
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2342 <dc:attribute name="description" value="${facet_description}"/>
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2343 <dc:attribute name="ids" value="${facet_num}"/>
3583
18d9b7af3783 Show former calculation in FixA WQ DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3582
diff changeset
2344 <dc:attribute name="factory" value="fixanalysis"/>
3579
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2345 <dc:attribute name="artifact-id" value="${a_gid}"/>
3583
18d9b7af3783 Show former calculation in FixA WQ DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3582
diff changeset
2346 <dc:attribute name="out" value="fix_wq_curve"/>
3579
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2347 </dc:element>
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2348 </dc:elements>
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2349 </waterlevels>
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2350 </dc:context>
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2351 </dc:elements>
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2352 </dc:context>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2353 </dc:call-macro>
3579
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2354 </dc:context>
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2355 </dc:elements>
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2356 </waterlevels>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2357 </dc:macro>
3579
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2358
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2359
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2360 <dc:macro name="duration-curve">
2690
15c6f79ca3e2 Add duration_curve.q loading via datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2689
diff changeset
2361 <computed_discharge_curves>
15c6f79ca3e2 Add duration_curve.q loading via datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2689
diff changeset
2362 <dc:elements>
15c6f79ca3e2 Add duration_curve.q loading via datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2689
diff changeset
2363 <dc:context>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2364 <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
2365 <dc:context>
15c6f79ca3e2 Add duration_curve.q loading via datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2689
diff changeset
2366 <dc:statement>
15c6f79ca3e2 Add duration_curve.q loading via datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2689
diff changeset
2367 SELECT a.gid as aid, f.id AS fid, f.name AS facet_name, f.num AS facet_num, f.description as facet_description
15c6f79ca3e2 Add duration_curve.q loading via datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2689
diff changeset
2368 FROM outs as o, facets as f, artifacts as a
2717
4cd55689e9a9 Allow to load previous DurationCurves and fixations in Dur.C. via DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2690
diff changeset
2369 WHERE (f.name = 'duration_curve.q' or f.name = 'duration_curve.w') and f.out_id = o.id and o.artifact_id = ${a_id} and a.id = ${a_id}
2690
15c6f79ca3e2 Add duration_curve.q loading via datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2689
diff changeset
2370 </dc:statement>
15c6f79ca3e2 Add duration_curve.q loading via datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2689
diff changeset
2371 <dc:elements>
15c6f79ca3e2 Add duration_curve.q loading via datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2689
diff changeset
2372 <dc:element name="${facet_name}">
15c6f79ca3e2 Add duration_curve.q loading via datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2689
diff changeset
2373 <dc:attribute name="description" value="${facet_description}"/>
15c6f79ca3e2 Add duration_curve.q loading via datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2689
diff changeset
2374 <dc:attribute name="factory" value="winfo"/>
15c6f79ca3e2 Add duration_curve.q loading via datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2689
diff changeset
2375 <dc:attribute name="artifact-id" value="${aid}"/>
15c6f79ca3e2 Add duration_curve.q loading via datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2689
diff changeset
2376 <dc:attribute name="ids" value="${aid}"/>
15c6f79ca3e2 Add duration_curve.q loading via datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2689
diff changeset
2377 <dc:attribute name="out" value="duration_curve"/>
15c6f79ca3e2 Add duration_curve.q loading via datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2689
diff changeset
2378 </dc:element>
15c6f79ca3e2 Add duration_curve.q loading via datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2689
diff changeset
2379 </dc:elements>
15c6f79ca3e2 Add duration_curve.q loading via datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2689
diff changeset
2380 </dc:context>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2381 </dc:call-macro>
2690
15c6f79ca3e2 Add duration_curve.q loading via datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2689
diff changeset
2382 </dc:context>
15c6f79ca3e2 Add duration_curve.q loading via datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2689
diff changeset
2383 </dc:elements>
15c6f79ca3e2 Add duration_curve.q loading via datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2689
diff changeset
2384 </computed_discharge_curves>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2385 </dc:macro>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2386
1879
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2387 <dc:comment>
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2388 WATERLEVELS - ONLY SHOW Ws
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2389 </dc:comment>
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2390
3589
ab447cd29b73 More former calculations in FixA DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3588
diff changeset
2391 <!-- TODO doesnt work nicely for fix/wq-diags. -->
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2392
5145
801175535406 Fixed typo in meta-data.xml for inline datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5135
diff changeset
2393 <dc:macro name="waterlevels-fix">
1879
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2394 <waterlevels>
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2395 <dc:elements>
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2396 <dc:context>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2397 <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
2398 <dc:context>
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2399 <dc:statement>
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2400 SELECT id AS out_id
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2401 FROM outs
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2402 WHERE artifact_id = ${a_id} AND name = 'longitudinal_section'
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2403 </dc:statement>
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2404 <dc:elements>
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2405 <dc:context>
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2406 <dc:statement>
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2407 SELECT name AS facet_name, num as facet_num, description AS facet_description
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2408 FROM facets
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2409 WHERE out_id = ${out_id} and name = 'longitudinal_section.w'
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2410 ORDER BY num ASC, name DESC
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2411 </dc:statement>
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2412 <waterlevels>
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2413 <dc:attribute name="description" value="${river} ${a_creation} ${collection_name}"/>
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2414 <dc:elements>
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2415 <dc:element name="${facet_name}">
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2416 <dc:attribute name="description" value="${facet_description}"/>
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2417 <dc:attribute name="ids" value="${facet_num}"/>
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2418 <dc:attribute name="factory" value="winfo"/>
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2419 <dc:attribute name="artifact-id" value="${a_gid}"/>
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2420 <dc:attribute name="out" value="longitudinal_section"/>
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2421 </dc:element>
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2422 </dc:elements>
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2423 </waterlevels>
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2424 </dc:context>
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2425 </dc:elements>
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2426 </dc:context>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2427 </dc:call-macro>
1879
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2428 </dc:context>
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2429 </dc:elements>
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2430 </waterlevels>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2431 </dc:macro>
1879
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2432
2096
bf598599782a Made old calculation results available for floodmaps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2086
diff changeset
2433 <dc:comment>
bf598599782a Made old calculation results available for floodmaps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2086
diff changeset
2434 SHOW FLOODMAPS
bf598599782a Made old calculation results available for floodmaps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2086
diff changeset
2435 </dc:comment>
bf598599782a Made old calculation results available for floodmaps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2086
diff changeset
2436
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2437
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2438 <dc:macro name="flood-map">
2096
bf598599782a Made old calculation results available for floodmaps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2086
diff changeset
2439 <floodmap>
bf598599782a Made old calculation results available for floodmaps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2086
diff changeset
2440 <dc:elements>
bf598599782a Made old calculation results available for floodmaps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2086
diff changeset
2441 <dc:context>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2442 <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
2443 <dc:context>
bf598599782a Made old calculation results available for floodmaps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2086
diff changeset
2444 <dc:statement>
bf598599782a Made old calculation results available for floodmaps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2086
diff changeset
2445 SELECT a.gid as aid, f.id AS fid, f.name AS facet_name, f.num AS facet_num, f.description as facet_description
bf598599782a Made old calculation results available for floodmaps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2086
diff changeset
2446 FROM outs as o, facets as f, artifacts as a
bf598599782a Made old calculation results available for floodmaps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2086
diff changeset
2447 WHERE f.name = 'floodmap.wsplgen' and f.out_id = o.id and o.artifact_id = ${a_id} and a.id = ${a_id}
bf598599782a Made old calculation results available for floodmaps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2086
diff changeset
2448 </dc:statement>
bf598599782a Made old calculation results available for floodmaps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2086
diff changeset
2449 <dc:elements>
bf598599782a Made old calculation results available for floodmaps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2086
diff changeset
2450 <dc:element name="${facet_name}">
bf598599782a Made old calculation results available for floodmaps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2086
diff changeset
2451 <dc:attribute name="description" value="${facet_description}"/>
bf598599782a Made old calculation results available for floodmaps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2086
diff changeset
2452 <dc:attribute name="factory" value="winfo"/>
bf598599782a Made old calculation results available for floodmaps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2086
diff changeset
2453 <dc:attribute name="artifact-id" value="${aid}"/>
bf598599782a Made old calculation results available for floodmaps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2086
diff changeset
2454 <dc:attribute name="ids" value="${aid}"/>
bf598599782a Made old calculation results available for floodmaps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2086
diff changeset
2455 <dc:attribute name="out" value="floodmap"/>
bf598599782a Made old calculation results available for floodmaps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2086
diff changeset
2456 </dc:element>
bf598599782a Made old calculation results available for floodmaps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2086
diff changeset
2457 </dc:elements>
bf598599782a Made old calculation results available for floodmaps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2086
diff changeset
2458 </dc:context>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2459 </dc:call-macro>
2096
bf598599782a Made old calculation results available for floodmaps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2086
diff changeset
2460 </dc:context>
bf598599782a Made old calculation results available for floodmaps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2086
diff changeset
2461 </dc:elements>
bf598599782a Made old calculation results available for floodmaps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2086
diff changeset
2462 </floodmap>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2463 </dc:macro>
2096
bf598599782a Made old calculation results available for floodmaps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2086
diff changeset
2464
4379
8c7e76521904 Add datacage logic for MINFO bed differences
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4165
diff changeset
2465 <dc:comment>
8c7e76521904 Add datacage logic for MINFO bed differences
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4165
diff changeset
2466 MINFO bedheight difference
8c7e76521904 Add datacage logic for MINFO bed differences
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4165
diff changeset
2467 </dc:comment>
8c7e76521904 Add datacage logic for MINFO bed differences
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4165
diff changeset
2468
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2469 <dc:macro name="bed-difference">
4379
8c7e76521904 Add datacage logic for MINFO bed differences
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4165
diff changeset
2470 <fix_longitudinal_section_curve>
8c7e76521904 Add datacage logic for MINFO bed differences
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4165
diff changeset
2471 <dc:elements>
8c7e76521904 Add datacage logic for MINFO bed differences
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4165
diff changeset
2472 <dc:context>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2473 <dc:call-macro name="range-filter">
4379
8c7e76521904 Add datacage logic for MINFO bed differences
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4165
diff changeset
2474 <dc:context>
8c7e76521904 Add datacage logic for MINFO bed differences
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4165
diff changeset
2475 <dc:statement>
8c7e76521904 Add datacage logic for MINFO bed differences
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4165
diff changeset
2476 SELECT a.gid as aid, f.id AS fid, f.name AS facet_name, f.num AS facet_num, f.description as facet_description
8c7e76521904 Add datacage logic for MINFO bed differences
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4165
diff changeset
2477 FROM outs as o, facets as f, artifacts as a
8c7e76521904 Add datacage logic for MINFO bed differences
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4165
diff changeset
2478 WHERE (f.name = 'fix_sector_average_ls_0' or f.name = 'fix_sector_average_ls_1' or f.name = 'fix_sector_average_ls_2'
8c7e76521904 Add datacage logic for MINFO bed differences
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4165
diff changeset
2479 or f.name = 'fix_sector_average_ls_3' or f.name = 'fix_analysis_events_ls' or f.name = 'fix_reference_events_ls')
8c7e76521904 Add datacage logic for MINFO bed differences
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4165
diff changeset
2480 and f.out_id = o.id and o.artifact_id = ${a_id} and a.id = ${a_id}
8c7e76521904 Add datacage logic for MINFO bed differences
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4165
diff changeset
2481 </dc:statement>
8c7e76521904 Add datacage logic for MINFO bed differences
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4165
diff changeset
2482 <fix_longitudinal_section_curve>
8c7e76521904 Add datacage logic for MINFO bed differences
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4165
diff changeset
2483 <dc:attribute name="description" value="${river} ${a_creation} ${collection_name}"/>
8c7e76521904 Add datacage logic for MINFO bed differences
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4165
diff changeset
2484 <dc:elements>
8c7e76521904 Add datacage logic for MINFO bed differences
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4165
diff changeset
2485 <dc:element name="${facet_name}">
8c7e76521904 Add datacage logic for MINFO bed differences
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4165
diff changeset
2486 <dc:attribute name="description" value="${facet_description}"/>
8c7e76521904 Add datacage logic for MINFO bed differences
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4165
diff changeset
2487 <dc:attribute name="factory" value="fixanalysis"/>
8c7e76521904 Add datacage logic for MINFO bed differences
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4165
diff changeset
2488 <dc:attribute name="artifact-id" value="${aid}"/>
8c7e76521904 Add datacage logic for MINFO bed differences
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4165
diff changeset
2489 <dc:attribute name="ids" value="${facet_num}"/>
8c7e76521904 Add datacage logic for MINFO bed differences
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4165
diff changeset
2490 <dc:attribute name="out" value="fix_longitudinal_section_curve"/>
8c7e76521904 Add datacage logic for MINFO bed differences
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4165
diff changeset
2491 </dc:element>
8c7e76521904 Add datacage logic for MINFO bed differences
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4165
diff changeset
2492 </dc:elements>
8c7e76521904 Add datacage logic for MINFO bed differences
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4165
diff changeset
2493 </fix_longitudinal_section_curve>
8c7e76521904 Add datacage logic for MINFO bed differences
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4165
diff changeset
2494 </dc:context>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2495 </dc:call-macro>
4379
8c7e76521904 Add datacage logic for MINFO bed differences
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4165
diff changeset
2496 </dc:context>
8c7e76521904 Add datacage logic for MINFO bed differences
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4165
diff changeset
2497 </dc:elements>
8c7e76521904 Add datacage logic for MINFO bed differences
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4165
diff changeset
2498 </fix_longitudinal_section_curve>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2499 </dc:macro>
4379
8c7e76521904 Add datacage logic for MINFO bed differences
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4165
diff changeset
2500
4538
8cd4b019f150 Load bedheigt single values via the datacage for a bedheight middle output
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4455
diff changeset
2501 <dc:comment>
8cd4b019f150 Load bedheigt single values via the datacage for a bedheight middle output
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4455
diff changeset
2502 MINFO bedheight middle
8cd4b019f150 Load bedheigt single values via the datacage for a bedheight middle output
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4455
diff changeset
2503 </dc:comment>
8cd4b019f150 Load bedheigt single values via the datacage for a bedheight middle output
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4455
diff changeset
2504
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2505 <dc:macro name="bed-height">
4449
f3c4976874f2 Add datacage for minfo and longitudinal_section.w from fixanalysis
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4435
diff changeset
2506 <fix_vollmer_wq_curve>
f3c4976874f2 Add datacage for minfo and longitudinal_section.w from fixanalysis
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4435
diff changeset
2507 <dc:elements>
f3c4976874f2 Add datacage for minfo and longitudinal_section.w from fixanalysis
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4435
diff changeset
2508 <dc:context>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2509 <dc:call-macro name="range-filter">
4449
f3c4976874f2 Add datacage for minfo and longitudinal_section.w from fixanalysis
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4435
diff changeset
2510 <dc:context>
f3c4976874f2 Add datacage for minfo and longitudinal_section.w from fixanalysis
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4435
diff changeset
2511 <dc:statement>
f3c4976874f2 Add datacage for minfo and longitudinal_section.w from fixanalysis
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4435
diff changeset
2512 SELECT a.gid as aid, f.id AS fid, f.name AS facet_name, f.num AS facet_num, f.description as facet_description
f3c4976874f2 Add datacage for minfo and longitudinal_section.w from fixanalysis
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4435
diff changeset
2513 FROM outs as o, facets as f, artifacts as a
f3c4976874f2 Add datacage for minfo and longitudinal_section.w from fixanalysis
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4435
diff changeset
2514 WHERE (f.name = 'longitudinal_section.w' or f.name = 'heightmarks_points')
f3c4976874f2 Add datacage for minfo and longitudinal_section.w from fixanalysis
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4435
diff changeset
2515 and f.out_id = o.id and o.artifact_id = ${a_id} and a.id = ${a_id}
f3c4976874f2 Add datacage for minfo and longitudinal_section.w from fixanalysis
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4435
diff changeset
2516 </dc:statement>
f3c4976874f2 Add datacage for minfo and longitudinal_section.w from fixanalysis
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4435
diff changeset
2517 <fix_vollmer_wq_curve>
f3c4976874f2 Add datacage for minfo and longitudinal_section.w from fixanalysis
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4435
diff changeset
2518 <dc:attribute name="description" value="${river} ${a_creation} ${collection_name}"/>
f3c4976874f2 Add datacage for minfo and longitudinal_section.w from fixanalysis
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4435
diff changeset
2519 <dc:elements>
f3c4976874f2 Add datacage for minfo and longitudinal_section.w from fixanalysis
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4435
diff changeset
2520 <dc:element name="${facet_name}">
f3c4976874f2 Add datacage for minfo and longitudinal_section.w from fixanalysis
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4435
diff changeset
2521 <dc:attribute name="description" value="${facet_description}"/>
f3c4976874f2 Add datacage for minfo and longitudinal_section.w from fixanalysis
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4435
diff changeset
2522 <dc:attribute name="factory" value="fixanalysis"/>
f3c4976874f2 Add datacage for minfo and longitudinal_section.w from fixanalysis
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4435
diff changeset
2523 <dc:attribute name="artifact-id" value="${aid}"/>
f3c4976874f2 Add datacage for minfo and longitudinal_section.w from fixanalysis
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4435
diff changeset
2524 <dc:attribute name="ids" value="${facet_num}"/>
f3c4976874f2 Add datacage for minfo and longitudinal_section.w from fixanalysis
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4435
diff changeset
2525 <dc:attribute name="out" value="longitudinal_section"/>
f3c4976874f2 Add datacage for minfo and longitudinal_section.w from fixanalysis
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4435
diff changeset
2526 </dc:element>
f3c4976874f2 Add datacage for minfo and longitudinal_section.w from fixanalysis
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4435
diff changeset
2527 </dc:elements>
f3c4976874f2 Add datacage for minfo and longitudinal_section.w from fixanalysis
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4435
diff changeset
2528 </fix_vollmer_wq_curve>
f3c4976874f2 Add datacage for minfo and longitudinal_section.w from fixanalysis
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4435
diff changeset
2529 </dc:context>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2530 </dc:call-macro>
4449
f3c4976874f2 Add datacage for minfo and longitudinal_section.w from fixanalysis
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4435
diff changeset
2531 </dc:context>
f3c4976874f2 Add datacage for minfo and longitudinal_section.w from fixanalysis
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4435
diff changeset
2532 </dc:elements>
f3c4976874f2 Add datacage for minfo and longitudinal_section.w from fixanalysis
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4435
diff changeset
2533 </fix_vollmer_wq_curve>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2534 </dc:macro>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2535
5312
2c1045a1e3fe Added new states and transitions to UESK calculation and adjusted states and UI.
Raimund Renkert <rrenkert@intevation.de>
parents: 5226
diff changeset
2536 <dc:macro name="floodmap-hws-user">
2c1045a1e3fe Added new states and transitions to UESK calculation and adjusted states and UI.
Raimund Renkert <rrenkert@intevation.de>
parents: 5226
diff changeset
2537 <dc:context>
2c1045a1e3fe Added new states and transitions to UESK calculation and adjusted states and UI.
Raimund Renkert <rrenkert@intevation.de>
parents: 5226
diff changeset
2538 <dc:statement>
2c1045a1e3fe Added new states and transitions to UESK calculation and adjusted states and UI.
Raimund Renkert <rrenkert@intevation.de>
parents: 5226
diff changeset
2539 SELECT id AS out_id
2c1045a1e3fe Added new states and transitions to UESK calculation and adjusted states and UI.
Raimund Renkert <rrenkert@intevation.de>
parents: 5226
diff changeset
2540 FROM outs
2c1045a1e3fe Added new states and transitions to UESK calculation and adjusted states and UI.
Raimund Renkert <rrenkert@intevation.de>
parents: 5226
diff changeset
2541 WHERE artifact_id = ${a_id} AND name = 'floodmap'
2c1045a1e3fe Added new states and transitions to UESK calculation and adjusted states and UI.
Raimund Renkert <rrenkert@intevation.de>
parents: 5226
diff changeset
2542 </dc:statement>
2c1045a1e3fe Added new states and transitions to UESK calculation and adjusted states and UI.
Raimund Renkert <rrenkert@intevation.de>
parents: 5226
diff changeset
2543 <dc:elements>
2c1045a1e3fe Added new states and transitions to UESK calculation and adjusted states and UI.
Raimund Renkert <rrenkert@intevation.de>
parents: 5226
diff changeset
2544 <dc:context>
2c1045a1e3fe Added new states and transitions to UESK calculation and adjusted states and UI.
Raimund Renkert <rrenkert@intevation.de>
parents: 5226
diff changeset
2545 <dc:statement>
2c1045a1e3fe Added new states and transitions to UESK calculation and adjusted states and UI.
Raimund Renkert <rrenkert@intevation.de>
parents: 5226
diff changeset
2546 SELECT name AS facet_name, num as facet_num, description AS facet_description
2c1045a1e3fe Added new states and transitions to UESK calculation and adjusted states and UI.
Raimund Renkert <rrenkert@intevation.de>
parents: 5226
diff changeset
2547 FROM facets
2c1045a1e3fe Added new states and transitions to UESK calculation and adjusted states and UI.
Raimund Renkert <rrenkert@intevation.de>
parents: 5226
diff changeset
2548 WHERE out_id = ${out_id} and name = 'floodmap.usershape'
2c1045a1e3fe Added new states and transitions to UESK calculation and adjusted states and UI.
Raimund Renkert <rrenkert@intevation.de>
parents: 5226
diff changeset
2549 ORDER BY num ASC, name DESC
2c1045a1e3fe Added new states and transitions to UESK calculation and adjusted states and UI.
Raimund Renkert <rrenkert@intevation.de>
parents: 5226
diff changeset
2550 </dc:statement>
2c1045a1e3fe Added new states and transitions to UESK calculation and adjusted states and UI.
Raimund Renkert <rrenkert@intevation.de>
parents: 5226
diff changeset
2551 <own-hws>
2c1045a1e3fe Added new states and transitions to UESK calculation and adjusted states and UI.
Raimund Renkert <rrenkert@intevation.de>
parents: 5226
diff changeset
2552 <dc:elements>
2c1045a1e3fe Added new states and transitions to UESK calculation and adjusted states and UI.
Raimund Renkert <rrenkert@intevation.de>
parents: 5226
diff changeset
2553 <dc:element name="${facet_name}">
2c1045a1e3fe Added new states and transitions to UESK calculation and adjusted states and UI.
Raimund Renkert <rrenkert@intevation.de>
parents: 5226
diff changeset
2554 <dc:attribute name="description" value="${facet_description}"/>
2c1045a1e3fe Added new states and transitions to UESK calculation and adjusted states and UI.
Raimund Renkert <rrenkert@intevation.de>
parents: 5226
diff changeset
2555 <dc:attribute name="ids" value="${facet_num}"/>
2c1045a1e3fe Added new states and transitions to UESK calculation and adjusted states and UI.
Raimund Renkert <rrenkert@intevation.de>
parents: 5226
diff changeset
2556 <dc:attribute name="factory" value="winfo"/>
2c1045a1e3fe Added new states and transitions to UESK calculation and adjusted states and UI.
Raimund Renkert <rrenkert@intevation.de>
parents: 5226
diff changeset
2557 <dc:attribute name="artifact-id" value="${a_gid}"/>
2c1045a1e3fe Added new states and transitions to UESK calculation and adjusted states and UI.
Raimund Renkert <rrenkert@intevation.de>
parents: 5226
diff changeset
2558 <dc:attribute name="out" value="floodmap"/>
2c1045a1e3fe Added new states and transitions to UESK calculation and adjusted states and UI.
Raimund Renkert <rrenkert@intevation.de>
parents: 5226
diff changeset
2559 </dc:element>
2c1045a1e3fe Added new states and transitions to UESK calculation and adjusted states and UI.
Raimund Renkert <rrenkert@intevation.de>
parents: 5226
diff changeset
2560 </dc:elements>
2c1045a1e3fe Added new states and transitions to UESK calculation and adjusted states and UI.
Raimund Renkert <rrenkert@intevation.de>
parents: 5226
diff changeset
2561 </own-hws>
2c1045a1e3fe Added new states and transitions to UESK calculation and adjusted states and UI.
Raimund Renkert <rrenkert@intevation.de>
parents: 5226
diff changeset
2562 </dc:context>
2c1045a1e3fe Added new states and transitions to UESK calculation and adjusted states and UI.
Raimund Renkert <rrenkert@intevation.de>
parents: 5226
diff changeset
2563 </dc:elements>
2c1045a1e3fe Added new states and transitions to UESK calculation and adjusted states and UI.
Raimund Renkert <rrenkert@intevation.de>
parents: 5226
diff changeset
2564 </dc:context>
2c1045a1e3fe Added new states and transitions to UESK calculation and adjusted states and UI.
Raimund Renkert <rrenkert@intevation.de>
parents: 5226
diff changeset
2565 </dc:macro>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2566 <dc:if test="dc:contains($artifact-outs, 'longitudinal_section') or (dc:contains($artifact-outs, 'discharge_longitudinal_section') or (dc:contains($artifact-outs, 'w_differences')))">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2567 <dc:call-macro name="longitudinal"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2568 </dc:if>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2569 <dc:if test="dc:contains($artifact-outs, 'fix_deltawt_curve')">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2570 <dc:call-macro name="delta-wt"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2571 </dc:if>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2572 <dc:if test="dc:contains($artifact-outs, 'longitudinal_section') or (dc:contains($artifact-outs, 'w_differences') or (dc:contains($artifact-outs, 'discharge_longitudinal_section')))">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2573 <dc:call-macro name="differences"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2574 </dc:if>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2575 <dc:if test="dc:contains($artifact-outs, 'reference_curve')">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2576 <dc:call-macro name="reference-curves"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2577 </dc:if>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2578 <dc:if test="dc:contains($artifact-outs, 'computed_discharge_curve')">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2579 <dc:call-macro name="computed-discharge-curve"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2580 </dc:if>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2581 <dc:if test="dc:contains($artifact-outs, 'cross_section')">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2582 <dc:call-macro name="waterlevels"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2583 </dc:if>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2584 <dc:if test="dc:contains($artifact-outs, 'fix_longitudinal_section_curve')">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2585 <dc:call-macro name="longitudinal-section"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2586 </dc:if>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2587 <dc:if test="dc:contains($artifact-outs, 'fix_derivate_curve')">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2588 <dc:call-macro name="fix-derivate-curve"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2589 </dc:if>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2590 <dc:if test="dc:contains($artifact-outs, 'fix_wq_curve')">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2591 <dc:call-macro name="fix-wq-curve"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2592 </dc:if>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2593 <dc:if test="dc:contains($artifact-outs, 'duration_curve')">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2594 <dc:call-macro name="duration-curve"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2595 </dc:if>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2596 <dc:if test="dc:contains($artifact-outs, 'waterlevels') or (dc:contains($artifact-outs, 'fix_wq_curve'))">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2597 <dc:call-macro name="waterlevels-fix"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2598 </dc:if>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2599 <dc:if test="dc:contains($artifact-outs, 'floodmap') or dc:contains($artifact-outs, 'map')">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2600 <dc:call-macro name="flood-map"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2601 </dc:if>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2602 <dc:if test="dc:contains($artifact-outs, 'bed_difference_year') or dc:contains($artifact-outs, 'bed_difference_height_year')">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2603 <dc:call-macro name="bed-difference"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2604 </dc:if>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2605 <dc:if test="dc:contains($artifact-outs, 'bedheight_middle')">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2606 <dc:call-macro name="bed-height"/>
4449
f3c4976874f2 Add datacage for minfo and longitudinal_section.w from fixanalysis
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4435
diff changeset
2607 </dc:if>
5312
2c1045a1e3fe Added new states and transitions to UESK calculation and adjusted states and UI.
Raimund Renkert <rrenkert@intevation.de>
parents: 5226
diff changeset
2608 <dc:if test="dc:contains($artifact-outs, 'floodmap-hws')">
2c1045a1e3fe Added new states and transitions to UESK calculation and adjusted states and UI.
Raimund Renkert <rrenkert@intevation.de>
parents: 5226
diff changeset
2609 <dc:call-macro name="floodmap-hws-user"/>
2c1045a1e3fe Added new states and transitions to UESK calculation and adjusted states and UI.
Raimund Renkert <rrenkert@intevation.de>
parents: 5226
diff changeset
2610 </dc:if>
1879
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2611 </dc:context>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2612 </dc:call-macro>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2613
1046
0a5eff5511b1 Fixed flys/issue262: Unified user and system datacage template
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
2614 </old_calculations>
1657
91d038c7aae5 Bugfix: #328 Improved datacage configuration and labels for selected waterlevels.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 1186
diff changeset
2615
91d038c7aae5 Bugfix: #328 Improved datacage configuration and labels for selected waterlevels.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 1186
diff changeset
2616
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
2617 <dc:comment>
1657
91d038c7aae5 Bugfix: #328 Improved datacage configuration and labels for selected waterlevels.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 1186
diff changeset
2618 Include System specific part when 'load-system' is in parameters.
91d038c7aae5 Bugfix: #328 Improved datacage configuration and labels for selected waterlevels.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 1186
diff changeset
2619 -----------------------------------------------------------------
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
2620 </dc:comment>
1657
91d038c7aae5 Bugfix: #328 Improved datacage configuration and labels for selected waterlevels.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 1186
diff changeset
2621 <dc:choose>
91d038c7aae5 Bugfix: #328 Improved datacage configuration and labels for selected waterlevels.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 1186
diff changeset
2622 <dc:when test="dc:contains($parameters,'load-system')">
91d038c7aae5 Bugfix: #328 Improved datacage configuration and labels for selected waterlevels.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 1186
diff changeset
2623 <dc:call-macro name="load-system"/>
91d038c7aae5 Bugfix: #328 Improved datacage configuration and labels for selected waterlevels.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 1186
diff changeset
2624 </dc:when>
91d038c7aae5 Bugfix: #328 Improved datacage configuration and labels for selected waterlevels.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 1186
diff changeset
2625 </dc:choose>
1046
0a5eff5511b1 Fixed flys/issue262: Unified user and system datacage template
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
2626 </dc:when>
1657
91d038c7aae5 Bugfix: #328 Improved datacage configuration and labels for selected waterlevels.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 1186
diff changeset
2627
91d038c7aae5 Bugfix: #328 Improved datacage configuration and labels for selected waterlevels.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 1186
diff changeset
2628
1046
0a5eff5511b1 Fixed flys/issue262: Unified user and system datacage template
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
2629 <dc:comment>
1657
91d038c7aae5 Bugfix: #328 Improved datacage configuration and labels for selected waterlevels.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 1186
diff changeset
2630 Include System specific part only if no user ID is given.
91d038c7aae5 Bugfix: #328 Improved datacage configuration and labels for selected waterlevels.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 1186
diff changeset
2631 ---------------------------------------------------------
1046
0a5eff5511b1 Fixed flys/issue262: Unified user and system datacage template
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
2632 </dc:comment>
0a5eff5511b1 Fixed flys/issue262: Unified user and system datacage template
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
2633 <dc:otherwise>
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
2634 <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
2635 </dc:otherwise>
0a5eff5511b1 Fixed flys/issue262: Unified user and system datacage template
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
2636 </dc:choose>
0a5eff5511b1 Fixed flys/issue262: Unified user and system datacage template
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
2637 </datacage>
0a5eff5511b1 Fixed flys/issue262: Unified user and system datacage template
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
2638 </dc:template>

http://dive4elements.wald.intevation.org