annotate artifacts/doc/conf/meta-data.xml @ 5838:5aa05a7a34b7

Rename modules to more fitting names.
author Sascha L. Teichmann <teichmann@intevation.de>
date Thu, 25 Apr 2013 15:23:37 +0200
parents flys-artifacts/doc/conf/meta-data.xml@a7df90f425e2
children 6343a61b62c8
rev   line source
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1 <?xml version="1.0" encoding="UTF-8"?>
1046
0a5eff5511b1 Fixed flys/issue262: Unified user and system datacage template
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
2 <dc:template xmlns:dc="http://www.intevation.org/2011/Datacage">
0a5eff5511b1 Fixed flys/issue262: Unified user and system datacage template
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
3 <datacage>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
4 <dc:comment>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
5 Statement to load data from wsts.
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
6 </dc:comment>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
7 <dc:macro name="SQL-wst_columns_statement">
4894
5741970e2c58 meta-data.xml: Replace wst_columns queries by macro call.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4892
diff changeset
8 <dc:statement>
5741970e2c58 meta-data.xml: Replace wst_columns queries by macro call.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4892
diff changeset
9 SELECT wst_columns.id AS prot_column_id,
5741970e2c58 meta-data.xml: Replace wst_columns queries by macro call.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4892
diff changeset
10 wst_columns.name AS prot_column_name,
5741970e2c58 meta-data.xml: Replace wst_columns queries by macro call.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4892
diff changeset
11 wst_columns.position AS prot_rel_pos,
4895
065a78d65007 meta-data.xml: Access wst_ranges and provide range is info-element.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4894
diff changeset
12 wst_columns.description AS info,
065a78d65007 meta-data.xml: Access wst_ranges and provide range is info-element.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4894
diff changeset
13 wst_ranges.a AS deffrom,
065a78d65007 meta-data.xml: Access wst_ranges and provide range is info-element.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4894
diff changeset
14 wst_ranges.b AS defto
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
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
39 WHERE gid = CAST(${artifact-id} AS uuid)
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
40 </dc:statement>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
41 <dc:for-each>
5015
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/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
45 </dc:for-each>
5015
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>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
62 SELECT id AS river_id, name AS river_name FROM rivers
1181
dd59431d648f Repaired datacage configuration. The system specific stuff is also displayed if a user-id is given.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 1097
diff changeset
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>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
65 <dc:for-each>
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>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
80 <dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
81 <basedata name="{$prot_description}">
1790
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
82 <dc:context>
4894
5741970e2c58 meta-data.xml: Replace wst_columns queries by macro call.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4892
diff changeset
83 <dc:call-macro name="SQL-wst_columns_statement"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
84 <dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
85 <column name="{$prot_column_name}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
86 ids="base_data-wstv-{$prot_rel_pos}-{$prot_id}"
5802
e4d0e80ae404 For base-data from DC, use staticwqkms factory (will spawn w and q facets).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 5796
diff changeset
87 factory="staticwqkms"
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
88 info="{$info} [km {$deffrom} - {$defto}]"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
89 </dc:for-each>
1790
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
90 </dc:context>
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
91 </basedata>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
92 </dc:for-each>
1790
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>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
95 </dc:call-macro>
1790
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
96 </dc:macro>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
97
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
98 <dc:macro name="basedata_0_wq">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
99 <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
100 <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
101 <basedata>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
102 <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
103 <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
104 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
105 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
106 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
107 </dc:statement>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
108 <dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
109 <basedata name="{$prot_description}">
1916
efff4305dc05 Extended DC conf to offer w/q kind of data (currently used in computed discharge curve diagr. only).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1905
diff changeset
110 <dc:context>
4894
5741970e2c58 meta-data.xml: Replace wst_columns queries by macro call.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4892
diff changeset
111 <dc:call-macro name="SQL-wst_columns_statement"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
112 <dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
113 <column name="{$prot_column_name}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
114 ids="base_data-wstv-{$prot_rel_pos}-{$prot_id}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
115 factory="wqinterpol"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
116 info="{$info} [km {$deffrom} - {$defto}]"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
117 </dc:for-each>
1916
efff4305dc05 Extended DC conf to offer w/q kind of data (currently used in computed discharge curve diagr. only).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1905
diff changeset
118 </dc:context>
efff4305dc05 Extended DC conf to offer w/q kind of data (currently used in computed discharge curve diagr. only).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1905
diff changeset
119 </basedata>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
120 </dc:for-each>
1916
efff4305dc05 Extended DC conf to offer w/q kind of data (currently used in computed discharge curve diagr. only).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1905
diff changeset
121 </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
122 </basedata>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
123 </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
124 </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
125
4143
58864f4f6e3b Fix issue946 (own style for wkms annotation facets in wq diagrams).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4126
diff changeset
126 <dc:macro name="basedata_1_additionals_marks">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
127 <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
128 <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
129 <additionals>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
130 <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
131 <dc:statement>
58864f4f6e3b Fix issue946 (own style for wkms annotation facets in wq diagrams).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4126
diff changeset
132 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
133 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
134 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
135 </dc:statement>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
136 <dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
137 <additional name="{$prot_description}">
4143
58864f4f6e3b Fix issue946 (own style for wkms annotation facets in wq diagrams).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4126
diff changeset
138 <dc:context>
4894
5741970e2c58 meta-data.xml: Replace wst_columns queries by macro call.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4892
diff changeset
139 <dc:call-macro name="SQL-wst_columns_statement"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
140 <dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
141 <column name="{$prot_column_name}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
142 ids="additionalsmarks-wstv-{$prot_rel_pos}-{$prot_id}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
143 factory="staticwkms"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
144 info="{$info} [km {$deffrom} - {$defto}]"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
145 </dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
146 </dc:context></additional>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
147 </dc:for-each>
4143
58864f4f6e3b Fix issue946 (own style for wkms annotation facets in wq diagrams).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4126
diff changeset
148 </dc:context>
58864f4f6e3b Fix issue946 (own style for wkms annotation facets in wq diagrams).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4126
diff changeset
149 </additionals>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
150 </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
151 </dc:macro>
58864f4f6e3b Fix issue946 (own style for wkms annotation facets in wq diagrams).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4126
diff changeset
152
1790
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
153 <dc:macro name="basedata_1_additionals">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
154 <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
155 <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
156 <additionals>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
157 <dc:context connection="system">
1790
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
158 <dc:statement>
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
159 SELECT id AS prot_id,
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
160 description AS prot_description
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
161 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
162 </dc:statement>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
163 <dc:for-each>
5746
1dab240f9f55 remove prefixed directory names from descriptions in data cage
Tom Gottfried <tom@intevation.de>
parents: 5682
diff changeset
164 <additional name="{dc:replace($prot_description, 'Zus.Längsschnitte/', '')}">
1790
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
165 <dc:context>
4894
5741970e2c58 meta-data.xml: Replace wst_columns queries by macro call.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4892
diff changeset
166 <dc:call-macro name="SQL-wst_columns_statement"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
167 <dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
168 <column name="{$prot_column_name}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
169 ids="additionals-wstv-{$prot_rel_pos}-{$prot_id}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
170 factory="staticwkms"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
171 info="{$info} [km {$deffrom} - {$defto}]"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
172 </dc:for-each>
1790
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
173 </dc:context>
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
174 </additional>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
175 </dc:for-each>
1790
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
176 </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
177 </additionals>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
178 </dc:call-macro>
1790
d3a0d55dff63 Add static data conf to w-difference / datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1789
diff changeset
179 </dc:macro>
1764
87c82499b98f Added DC configuration to load additional data in longitudinal section.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1761
diff changeset
180
2761
28e7c1637f78 Include thematic heights in dc conf for reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2755
diff changeset
181 <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
182 <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
183 <dc:comment comment=".ZUS -------------------------------"/>
28e7c1637f78 Include thematic heights in dc conf for reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2755
diff changeset
184 <additionals>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
185 <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
186 <dc:statement>
6068b6c90a19 Adjusted datacage-configuration to present flood-protections in certain case.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1716
diff changeset
187 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
188 description AS prot_description
1731
37606f0ddc1e Also display the 'zus' in wdiff-input datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1728
diff changeset
189 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
190 </dc:statement>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
191 <dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
192 <relativepoint name="{$prot_description}">
2761
28e7c1637f78 Include thematic heights in dc conf for reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2755
diff changeset
193 <dc:context>
4894
5741970e2c58 meta-data.xml: Replace wst_columns queries by macro call.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4892
diff changeset
194 <dc:call-macro name="SQL-wst_columns_statement"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
195 <dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
196 <column name="{$prot_column_name}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
197 ids="additionals-wstv-{$prot_rel_pos}-{$prot_id}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
198 factory="staticwkms"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
199 info="{$info} [km {$deffrom} - {$defto}]"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
200 </dc:for-each>
2761
28e7c1637f78 Include thematic heights in dc conf for reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2755
diff changeset
201 </dc:context>
28e7c1637f78 Include thematic heights in dc conf for reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2755
diff changeset
202 </relativepoint>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
203 </dc:for-each>
1731
37606f0ddc1e Also display the 'zus' in wdiff-input datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1728
diff changeset
204 </dc:context>
2761
28e7c1637f78 Include thematic heights in dc conf for reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2755
diff changeset
205 </additionals>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
206 </dc:call-macro>
2761
28e7c1637f78 Include thematic heights in dc conf for reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2755
diff changeset
207 </dc:macro>
28e7c1637f78 Include thematic heights in dc conf for reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2755
diff changeset
208
1905
d025009fec73 Recommend fixations for computed discharge curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1880
diff changeset
209 <dc:macro name="basedata_2_fixations_wqkms">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
210 <dc:call-macro name="user-range">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
211 <fixations>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
212 <dc:context connection="system">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
213 <dc:statement>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
214 SELECT id AS prot_id,
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
215 description AS prot_description
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
216 FROM wsts WHERE kind = 2 AND river_id = ${river_id}
5560
ccda0a49a97f Order Fixations by their description
Andre Heinecke <aheinecke@intevation.de>
parents: 5551
diff changeset
217 ORDER BY prot_description
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
218 </dc:statement>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
219 <dc:for-each>
5562
7be6785ad7b9 Use dc:replace to remove static "Fixierungen/" prefix in fixation description
Andre Heinecke <aheinecke@intevation.de>
parents: 5560
diff changeset
220 <fixation name="{dc:replace($prot_description, 'Fixierungen/', '')}">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
221 <dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
222 <dc:call-macro name="SQL-wst_columns_statement"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
223 <dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
224 <column name="{$prot_column_name}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
225 ids="fixations-wstv-{$prot_rel_pos}-{$prot_id}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
226 factory="wqinterpol"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
227 info="{$info} [km {$deffrom} - {$defto}]"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
228 </dc:for-each>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
229 </dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
230 </fixation>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
231 </dc:for-each>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
232 </dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
233 </fixations>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
234 </dc:call-macro>
1905
d025009fec73 Recommend fixations for computed discharge curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1880
diff changeset
235 </dc:macro>
d025009fec73 Recommend fixations for computed discharge curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1880
diff changeset
236
1872
2e810c50e685 Refactored datacage conf to (re)use macros.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1871
diff changeset
237 <dc:macro name="basedata_2_fixations">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
238 <dc:call-macro name="user-range">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
239 <fixations>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
240 <dc:context connection="system">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
241 <dc:statement>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
242 SELECT id AS prot_id,
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
243 description AS prot_description
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
244 FROM wsts WHERE kind = 2 AND river_id = ${river_id}
5560
ccda0a49a97f Order Fixations by their description
Andre Heinecke <aheinecke@intevation.de>
parents: 5551
diff changeset
245 ORDER BY prot_description
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
246 </dc:statement>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
247 <dc:for-each>
5562
7be6785ad7b9 Use dc:replace to remove static "Fixierungen/" prefix in fixation description
Andre Heinecke <aheinecke@intevation.de>
parents: 5560
diff changeset
248 <fixation name="{dc:replace($prot_description, 'Fixierungen/', '')}">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
249 <dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
250 <dc:call-macro name="SQL-wst_columns_statement"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
251 <dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
252 <column name="{$prot_column_name}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
253 ids="fixations-wstv-{$prot_rel_pos}-{$prot_id}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
254 factory="staticwkms"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
255 info="{$info} [km {$deffrom} - {$defto}]"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
256 </dc:for-each>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
257 </dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
258 </fixation>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
259 </dc:for-each>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
260 </dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
261 </fixations>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
262 </dc:call-macro>
1872
2e810c50e685 Refactored datacage conf to (re)use macros.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1871
diff changeset
263 </dc:macro>
2e810c50e685 Refactored datacage conf to (re)use macros.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1871
diff changeset
264
2749
5eb3edb4f37b Add relative-points-fixations for duration curves in dc conf.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2736
diff changeset
265 <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
266 <dc:call-macro name="user-range">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
267 <fixations>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
268 <dc:context connection="system">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
269 <dc:statement>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
270 SELECT id AS prot_id,
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
271 description AS prot_description
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
272 FROM wsts WHERE kind = 2 AND river_id = ${river_id}
5560
ccda0a49a97f Order Fixations by their description
Andre Heinecke <aheinecke@intevation.de>
parents: 5551
diff changeset
273 ORDER BY prot_description
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
274 </dc:statement>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
275 <dc:for-each>
5562
7be6785ad7b9 Use dc:replace to remove static "Fixierungen/" prefix in fixation description
Andre Heinecke <aheinecke@intevation.de>
parents: 5560
diff changeset
276 <relativepoint name="{dc:replace($prot_description, 'Fixierungen/', '')}">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
277 <dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
278 <dc:call-macro name="SQL-wst_columns_statement"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
279 <dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
280 <column name="{$prot_column_name}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
281 ids="fixations-wstv-{$prot_rel_pos}-{$prot_id}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
282 factory="staticwkms"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
283 info="{$info} [km {$deffrom} - {$defto}]"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
284 </dc:for-each>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
285 </dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
286 </relativepoint>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
287 </dc:for-each>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
288 </dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
289 </fixations>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
290 </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
291 </dc:macro>
2751
e50cc06c6c4c Serve heightmarks and floodprotection in dc conf for duration curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2749
diff changeset
292
3283
a8ce3263b0a7 Make official lines loadable from dc (by hand) for longitudinal sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3219
diff changeset
293 <dc:macro name="basedata_3_officials">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
294 <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
295 <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
296 <officiallines>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
297 <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
298 <dc:statement>
a8ce3263b0a7 Make official lines loadable from dc (by hand) for longitudinal sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3219
diff changeset
299 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
300 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
301 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
302 </dc:statement>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
303 <dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
304 <official name="{$prot_description}">
3283
a8ce3263b0a7 Make official lines loadable from dc (by hand) for longitudinal sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3219
diff changeset
305 <dc:context>
4894
5741970e2c58 meta-data.xml: Replace wst_columns queries by macro call.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4892
diff changeset
306 <dc:call-macro name="SQL-wst_columns_statement"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
307 <dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
308 <column name="{$prot_column_name}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
309 ids="additionals-wstv-{$prot_rel_pos}-{$prot_id}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
310 factory="staticwqkms"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
311 info="{$info} [km {$deffrom} - {$defto}]"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
312 </dc:for-each>
3283
a8ce3263b0a7 Make official lines loadable from dc (by hand) for longitudinal sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3219
diff changeset
313 </dc:context>
a8ce3263b0a7 Make official lines loadable from dc (by hand) for longitudinal sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3219
diff changeset
314 </official>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
315 </dc:for-each>
3283
a8ce3263b0a7 Make official lines loadable from dc (by hand) for longitudinal sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3219
diff changeset
316 </dc:context>
a8ce3263b0a7 Make official lines loadable from dc (by hand) for longitudinal sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3219
diff changeset
317 </officiallines>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
318 </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
319 </dc:macro>
a8ce3263b0a7 Make official lines loadable from dc (by hand) for longitudinal sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3219
diff changeset
320
2751
e50cc06c6c4c Serve heightmarks and floodprotection in dc conf for duration curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2749
diff changeset
321 <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
322 <dc:call-macro name="user-range">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
323 <heightmarks>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
324 <dc:context connection="system">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
325 <dc:statement>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
326 SELECT id AS prot_id,
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
327 description AS prot_description
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
328 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
329 </dc:statement>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
330 <dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
331 <relativepoint name="{$prot_description}">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
332 <dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
333 <dc:call-macro name="SQL-wst_columns_statement"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
334 <dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
335 <column name="{$prot_column_name}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
336 ids="heightmarks_points-wstv-{$prot_rel_pos}-{$prot_id}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
337 factory="staticwkms"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
338 info="{$info} [km {$deffrom} - {$defto}]"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
339 </dc:for-each>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
340 </dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
341 </relativepoint>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
342 </dc:for-each>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
343 </dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
344 </heightmarks>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
345 </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
346 </dc:macro>
e50cc06c6c4c Serve heightmarks and floodprotection in dc conf for duration curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2749
diff changeset
347
1869
8f7bc6acd48d Adjusted DC for heightmarks (and other) in discharge longitudinal sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1868
diff changeset
348 <dc:macro name="basedata_4_heightmarks-points">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
349 <dc:call-macro name="user-range">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
350 <heightmarks>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
351 <dc:context connection="system">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
352 <dc:statement>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
353 SELECT id AS prot_id,
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
354 description AS prot_description
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
355 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
356 </dc:statement>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
357 <dc:for-each>
5746
1dab240f9f55 remove prefixed directory names from descriptions in data cage
Tom Gottfried <tom@intevation.de>
parents: 5682
diff changeset
358 <heightmark name="{dc:replace($prot_description, 'HW-Marken/', '')}">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
359 <dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
360 <dc:call-macro name="SQL-wst_columns_statement"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
361 <dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
362 <column name="{$prot_column_name}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
363 ids="heightmarks_points-wstv-{$prot_rel_pos}-{$prot_id}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
364 factory="staticwkms"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
365 info="{$info} [km {$deffrom} - {$defto}]"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
366 </dc:for-each>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
367 </dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
368 </heightmark>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
369 </dc:for-each>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
370 </dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
371 </heightmarks>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
372 </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
373 </dc:macro>
1978
4c10a4cb978f Recommend cross sections if they can be shown.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1916
diff changeset
374
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
375 <dc:macro name="basedata_4_heightmarks-wq">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
376 <dc:call-macro name="user-range">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
377 <heightmarks>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
378 <dc:context connection="system">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
379 <dc:statement>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
380 SELECT id AS prot_id,
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
381 description AS prot_description
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
382 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
383 </dc:statement>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
384 <dc:for-each>
5746
1dab240f9f55 remove prefixed directory names from descriptions in data cage
Tom Gottfried <tom@intevation.de>
parents: 5682
diff changeset
385 <heightmark name="{$prot_description}">
1dab240f9f55 remove prefixed directory names from descriptions in data cage
Tom Gottfried <tom@intevation.de>
parents: 5682
diff changeset
386 <dc:context>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
387 <dc:call-macro name="SQL-wst_columns_statement"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
388 <dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
389 <column name="{$prot_column_name}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
390 ids="heightmarks_annotations-wstv-{$prot_rel_pos}-{$prot_id}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
391 factory="wqinterpol"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
392 info="{$info} [km {$deffrom} - {$defto}]"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
393 </dc:for-each>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
394 </dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
395 </heightmark>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
396 </dc:for-each>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
397 </dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
398 </heightmarks>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
399 </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
400 </dc:macro>
1869
8f7bc6acd48d Adjusted DC for heightmarks (and other) in discharge longitudinal sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1868
diff changeset
401
2751
e50cc06c6c4c Serve heightmarks and floodprotection in dc conf for duration curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2749
diff changeset
402 <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
403 <dc:call-macro name="user-range">
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
404 <flood_protections id="flood-protections-{$river_id}">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
405 <dc:context connection="system">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
406 <dc:statement>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
407 SELECT id AS prot_id,
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
408 description AS prot_description
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
409 FROM wsts WHERE kind = 5 AND river_id = ${river_id}
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
410 </dc:statement>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
411 <dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
412 <relativepoint name="{$prot_description}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
413 db-id="{$prot_id}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
414 factory="staticwkms">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
415 <columns>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
416 <dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
417 <dc:call-macro name="SQL-wst_columns_statement"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
418 <dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
419 <column name="{$prot_column_name}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
420 ids="flood_protection-wstv-{$prot_rel_pos}-{$prot_id}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
421 factory="staticwkms"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
422 info="{$info} [km {$deffrom} - {$defto}]"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
423 </dc:for-each>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
424 </dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
425 </columns>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
426 </relativepoint>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
427 </dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
428 </dc:context></flood_protections>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
429 </dc:call-macro>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
430 </dc:macro>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
431
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
432 <dc:macro name="basedata_5_flood-protections">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
433 <dc:call-macro name="user-range">
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
434 <flood_protections id="flood-protections-{$river_id}">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
435 <dc:context connection="system">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
436 <dc:statement>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
437 SELECT id AS prot_id,
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
438 description AS prot_description
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
439 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
440 </dc:statement>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
441 <dc:for-each>
5746
1dab240f9f55 remove prefixed directory names from descriptions in data cage
Tom Gottfried <tom@intevation.de>
parents: 5682
diff changeset
442 <flood_protection name="{dc:replace($prot_description, 'HW-Schutzanlagen/', '')}"
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
443 db-id="{$prot_id}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
444 factory="staticwkms">
2751
e50cc06c6c4c Serve heightmarks and floodprotection in dc conf for duration curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2749
diff changeset
445 <dc:context>
4894
5741970e2c58 meta-data.xml: Replace wst_columns queries by macro call.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4892
diff changeset
446 <dc:call-macro name="SQL-wst_columns_statement"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
447 <dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
448 <column name="{$prot_column_name}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
449 ids="flood_protection-wstv-{$prot_rel_pos}-{$prot_id}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
450 factory="staticwkms"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
451 info="{$info} [km {$deffrom} - {$defto}]"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
452 </dc:for-each>
2751
e50cc06c6c4c Serve heightmarks and floodprotection in dc conf for duration curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2749
diff changeset
453 </dc:context>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
454 </flood_protection>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
455 </dc:for-each>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
456 </dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
457 </flood_protections>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
458 </dc:call-macro>
1905
d025009fec73 Recommend fixations for computed discharge curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1880
diff changeset
459 </dc:macro>
d025009fec73 Recommend fixations for computed discharge curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1880
diff changeset
460
1851
67aa74efc024 Recommend mainvalues for Duration Curve Diagrams, minor refactoring.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1841
diff changeset
461 <dc:macro name="mainvalues">
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
462 <mainvalue factory="mainvalue" ids="{$river_id}"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
463 <wmainvalue factory="mainvalue" ids="{$river_id}:w"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
464 <qmainvalue factory="mainvalue" ids="{$river_id}:q"/>
1851
67aa74efc024 Recommend mainvalues for Duration Curve Diagrams, minor refactoring.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1841
diff changeset
465 </dc:macro>
1865
ba6659083fa0 Revert/apply accidental/corrected commit.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1857
diff changeset
466
3574
416288f88763 Add more qsectory infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3570
diff changeset
467 <dc:macro name="qsectors">
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
468 <qsector factory="qsectors" ids="{$river_id}"/>
3574
416288f88763 Add more qsectory infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3570
diff changeset
469 </dc:macro>
416288f88763 Add more qsectory infrastructure.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3570
diff changeset
470
1865
ba6659083fa0 Revert/apply accidental/corrected commit.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1857
diff changeset
471 <dc:macro name="annotations">
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
472 <annotation factory="annotations" ids="{$river_id}"/>
1865
ba6659083fa0 Revert/apply accidental/corrected commit.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1857
diff changeset
473 </dc:macro>
ba6659083fa0 Revert/apply accidental/corrected commit.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1857
diff changeset
474
4014
e5e1331d0440 Show 'per-type' annotations in longitudinal-section DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3975
diff changeset
475 <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
476 <annotations>
e5e1331d0440 Show 'per-type' annotations in longitudinal-section DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3975
diff changeset
477 <dc:context>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
478 <annotation name="all_annotations" factory="annotations" ids="{$river_id}"/>
4014
e5e1331d0440 Show 'per-type' annotations in longitudinal-section DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3975
diff changeset
479 <dc:statement>
e5e1331d0440 Show 'per-type' annotations in longitudinal-section DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3975
diff changeset
480 SELECT id AS anno_id,
e5e1331d0440 Show 'per-type' annotations in longitudinal-section DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3975
diff changeset
481 name AS anno_description
e5e1331d0440 Show 'per-type' annotations in longitudinal-section DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3975
diff changeset
482 FROM annotation_types
e5e1331d0440 Show 'per-type' annotations in longitudinal-section DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3975
diff changeset
483 </dc:statement>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
484 <dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
485 <annotation name="{$anno_description}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
486 factory="annotations"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
487 ids="{$river_id}:{$anno_description}"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
488 </dc:for-each>
4014
e5e1331d0440 Show 'per-type' annotations in longitudinal-section DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3975
diff changeset
489 </dc:context>
e5e1331d0440 Show 'per-type' annotations in longitudinal-section DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3975
diff changeset
490 </annotations>
e5e1331d0440 Show 'per-type' annotations in longitudinal-section DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3975
diff changeset
491 </dc:macro>
e5e1331d0440 Show 'per-type' annotations in longitudinal-section DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3975
diff changeset
492
1978
4c10a4cb978f Recommend cross sections if they can be shown.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1916
diff changeset
493 <dc:macro name="cross_sections">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
494 <dc:call-macro name="user-range">
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
495 <cross_sections id="flood-protections-{$river_id}">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
496 <dc:context connection="system">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
497 <dc:statement>
5164
8c65acf01adc Fixed datacage to be oracle compatible.
Raimund Renkert <rrenkert@intevation.de>
parents: 5145
diff changeset
498 SELECT DISTINCT
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
499 cs.id AS prot_id,
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
500 cs.description AS prot_description
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
501 FROM cross_sections cs
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
502 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
503 WHERE cs.river_id = ${river_id}
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
504 AND csl.km BETWEEN ${fromkm} AND ${tokm}
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
505 </dc:statement>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
506 <dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
507 <cross_section name="{$prot_description}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
508 ids="{$prot_id}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
509 factory="crosssections"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
510 </dc:for-each>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
511 </dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
512 </cross_sections>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
513 </dc:call-macro>
1978
4c10a4cb978f Recommend cross sections if they can be shown.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1916
diff changeset
514 </dc:macro>
4c10a4cb978f Recommend cross sections if they can be shown.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1916
diff changeset
515
2140
3d73109005b8 Recommend hyks if hit by cross section out.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2114
diff changeset
516 <dc:macro name="hyks">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
517 <dc:call-macro name="user-range">
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
518 <hyks id="hyk-{$river_id}">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
519 <dc:context connection="system">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
520 <dc:statement>
5164
8c65acf01adc Fixed datacage to be oracle compatible.
Raimund Renkert <rrenkert@intevation.de>
parents: 5145
diff changeset
521 SELECT DISTINCT
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
522 h.id AS hyk_id,
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
523 h.description AS hyk_description
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
524 FROM hyks h
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
525 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
526 WHERE river_id = ${river_id}
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
527 AND he.km BETWEEN ${fromkm} AND ${tokm}
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
528 </dc:statement>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
529 <dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
530 <hyk name="{$hyk_description}" ids="{$hyk_id}" factory="hyk"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
531 </dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
532 </dc:context></hyks>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
533 </dc:call-macro>
2140
3d73109005b8 Recommend hyks if hit by cross section out.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2114
diff changeset
534 </dc:macro>
1869
8f7bc6acd48d Adjusted DC for heightmarks (and other) in discharge longitudinal sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1868
diff changeset
535
4455
06c07cb478a8 meta-data.xml: Add annotations and flow velocity measurements to the DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4449
diff changeset
536 <dc:macro name="flow_velocity_measurements">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
537 <dc:call-macro name="user-range">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
538 <flowvelocitymeasurement>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
539 <dc:context connection="system">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
540 <dc:statement>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
541 SELECT id AS fvmid,
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
542 description AS fvmd
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
543 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
544 </dc:statement>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
545 <dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
546 <flow_velocity_measurement name="{$fvmd}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
547 ids="{$fvmid}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
548 factory="flowvelocity">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
549 <dc:context>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
550 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
551 SELECT id, description, station, datetime, v, w, q
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
552 FROM flow_velocity_measure_values
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
553 WHERE measurements_id = ${fvmid}
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
554 AND station BETWEEN ${fromkm} AND ${tokm}
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
555 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
556 <dc:for-each>
5575
bf319ba67212 Put the correct annotations into flowvelocity dc and fix measurement name.
Raimund Renkert <rrenkert@intevation.de>
parents: 5562
diff changeset
557 <measurement_value name="{$description} - {$station} - {$datetime}"
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
558 ids="{$id}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
559 factory="flowvelocity"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
560 </dc:for-each>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
561 </dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
562 </flow_velocity_measurement>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
563 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
564 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
565 </flowvelocitymeasurement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
566 </dc:call-macro>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
567 </dc:macro>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
568
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
569 <dc:macro name="sounding-width">
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
570 <soundings_width>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
571 <dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
572 <dc:statement>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
573 SELECT id AS bedh_id,
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
574 year AS bedh_year,
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
575 description AS bedh_descr
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
576 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
577 </dc:statement>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
578 <dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
579 <height factory="bedheight"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
580 ids="bedheight-singlevalues-{$bedh_id}-{$bedh_year}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
581 description="{$bedh_descr}"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
582 </dc:for-each>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
583 </dc:context>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
584 </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
585 </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
586
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
587 <dc:macro name="morph_width">
5766
a6dc4c232da2 Datacage config and out generator for morphologic width.
Raimund Renkert <rrenkert@intevation.de>
parents: 5761
diff changeset
588 <morph_width>
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
589 <dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
590 <dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
591 SELECT id AS width_id
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
592 FROM morphologic_width
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
593 WHERE river_id = ${river_id}
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
594 </dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
595 <dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
596 <dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
597 <dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
598 SELECT min(station) AS from,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
599 max(station) AS to
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
600 FROM morphologic_width_values
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
601 WHERE morphologic_width_id = ${width_id}
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
602 </dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
603 <dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
604 <morphologic-width name="{$from} - {$to}"
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
605 ids="{$width_id}"
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
606 factory="morph-width"/>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
607 </dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
608 </dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
609 </dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
610 </dc:context>
5766
a6dc4c232da2 Datacage config and out generator for morphologic width.
Raimund Renkert <rrenkert@intevation.de>
parents: 5761
diff changeset
611 </morph_width>
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
612 </dc:macro>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
613
4595
0b48085f93aa meta-data.xml: Added 'prototype-macro for longitudinal_sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4538
diff changeset
614 <dc:macro name="longitudinal-section-prototype">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
615 <dc:call-macro name="basedata_0"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
616 <dc:call-macro name="basedata_1_additionals"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
617 <dc:comment comment=" FIXATIONS ---------------------------"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
618 <dc:call-macro name="basedata_2_fixations"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
619 <dc:comment comment=" HOEHENMARKEN ---------------------------"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
620 <dc:call-macro name="basedata_4_heightmarks-points"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
621 <dc:comment comment=" AMTL LINIEN ---------------------------"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
622 <dc:call-macro name="basedata_3_officials"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
623 <dc:call-macro name="basedata_5_flood-protections"/>
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
624 <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
625 </dc:macro>
0b48085f93aa meta-data.xml: Added 'prototype-macro for longitudinal_sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4538
diff changeset
626
1869
8f7bc6acd48d Adjusted DC for heightmarks (and other) in discharge longitudinal sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1868
diff changeset
627 <dc:comment>
8f7bc6acd48d Adjusted DC for heightmarks (and other) in discharge longitudinal sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1868
diff changeset
628 + River-Node
8f7bc6acd48d Adjusted DC for heightmarks (and other) in discharge longitudinal sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1868
diff changeset
629 </dc:comment>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
630 <dc:attribute name="name" value="${river_name}"/>
1865
ba6659083fa0 Revert/apply accidental/corrected commit.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1857
diff changeset
631
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
632 <dc:choose>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
633 <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
634 <dc:comment>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
635 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
636 </dc:comment>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
637 <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
638 <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
639 </dc:if>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
640 <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
641 <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
642 </dc:if>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
643 <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
644 <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
645 <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
646 </dc:if>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
647 <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
648 <dc:call-macro name="mainvalues"/>
5822
a7df90f425e2 Remove obsolete (duplicate) macro and its use.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 5802
diff changeset
649 <dc:call-macro name="basedata_2_fixations_wqkms"/>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
650 </dc:if>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
651 <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
652 <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
653 </dc:if>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
654 <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
655 <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
656 <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
657 </dc:if>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
658 <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
659 <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
660 </dc:if>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
661 <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
662 <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
663 </dc:if>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
664 <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
665 <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
666 </dc:if>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
667 <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
668 <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
669 </dc:if>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
670 <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
671 <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
672 </dc:if>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
673 <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
674 <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
675 </dc:if>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
676 </dc:when>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
677 <dc:otherwise>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
678 <dc:comment>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
679 Non - Recommendations.
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
680 </dc:comment>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
681 <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
682 <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
683 <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
684 <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
685 <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
686 <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
687 <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
688 <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
689 </dc:if>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
690 <!--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
691 <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
692 <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
693 </dc:if-->
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
694 <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
695 <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
696 </dc:if>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
697 <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
698 <dc:call-macro name="mainvalues"/>
4123
30168be950a6 Improvements on issue934/4 (double annotations/DC).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4122
diff changeset
699 <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
700 <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
701 <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
702 </dc:if>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
703 <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
704 <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
705 <!--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
706 <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
707 <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
708 <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
709 <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
710 <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
711 <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
712 </dc:if>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
713 <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
714 <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
715 <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
716 <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
717 <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
718 <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
719 <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
720 </dc:if>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
721 <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
722 </dc:if>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
723 <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
724 <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
725 </dc:if>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
726 <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
727 <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
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, 'flow_velocity')">
5575
bf319ba67212 Put the correct annotations into flowvelocity dc and fix measurement name.
Raimund Renkert <rrenkert@intevation.de>
parents: 5562
diff changeset
730 <dc:call-macro name="annotations_per_type"/>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
731 <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
732 </dc:if>
5591
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
733 <dc:if test="dc:contains($artifact-outs, 'bed_longitudinal_section')">
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
734 <dc:call-macro name="annotations_per_type"/>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
735 </dc:if>
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
736 <dc:if test="dc:contains($artifact-outs, 'sedimentload_ls')">
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
737 <dc:call-macro name="annotations_per_type"/>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
738 <dc:call-macro name="morph_width"/>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
739 </dc:if>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
740 <dc:comment>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
741 MINFO bedheight middle
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
742 </dc:comment>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
743 <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
744 <dc:call-macro name="sounding-width"/>
5669
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
745 <dc:call-macro name="basedata_0"/>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
746 <dc:call-macro name="basedata_1_additionals"/>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
747 <dc:call-macro name="basedata_2_fixations"/>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
748 <dc:call-macro name="basedata_3_officials"/>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
749 <dc:call-macro name="annotations_per_type"/>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
750 </dc:if>
5682
b536c0e7abd7 Added old calculation and additional data to dc config for bed difference charts.
Raimund Renkert <rrenkert@intevation.de>
parents: 5670
diff changeset
751 <dc:if test="dc:contains($artifact-outs, 'bed_difference_year') or
b536c0e7abd7 Added old calculation and additional data to dc config for bed difference charts.
Raimund Renkert <rrenkert@intevation.de>
parents: 5670
diff changeset
752 dc:contains($artifact-outs, 'bed_difference_epoch')">
b536c0e7abd7 Added old calculation and additional data to dc config for bed difference charts.
Raimund Renkert <rrenkert@intevation.de>
parents: 5670
diff changeset
753 <dc:call-macro name="basedata_0"/>
b536c0e7abd7 Added old calculation and additional data to dc config for bed difference charts.
Raimund Renkert <rrenkert@intevation.de>
parents: 5670
diff changeset
754 <dc:call-macro name="basedata_1_additionals"/>
b536c0e7abd7 Added old calculation and additional data to dc config for bed difference charts.
Raimund Renkert <rrenkert@intevation.de>
parents: 5670
diff changeset
755 <dc:call-macro name="basedata_2_fixations"/>
b536c0e7abd7 Added old calculation and additional data to dc config for bed difference charts.
Raimund Renkert <rrenkert@intevation.de>
parents: 5670
diff changeset
756 <dc:call-macro name="basedata_3_officials"/>
b536c0e7abd7 Added old calculation and additional data to dc config for bed difference charts.
Raimund Renkert <rrenkert@intevation.de>
parents: 5670
diff changeset
757 <dc:call-macro name="annotations_per_type"/>
5766
a6dc4c232da2 Datacage config and out generator for morphologic width.
Raimund Renkert <rrenkert@intevation.de>
parents: 5761
diff changeset
758 <dc:call-macro name="morph_width"/>
5682
b536c0e7abd7 Added old calculation and additional data to dc config for bed difference charts.
Raimund Renkert <rrenkert@intevation.de>
parents: 5670
diff changeset
759 </dc:if>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
760 <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
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:choose>
1872
2e810c50e685 Refactored datacage conf to (re)use macros.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1871
diff changeset
763
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
764 <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
765
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
766 <!-- base data -->
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_0"/>
3585
c105b4466b4e Basedata in FixA WQ DC and diagram.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3583
diff changeset
768
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
769 <!-- extra-longitudinal-sections -->
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_1_additionals"/>
5328
91070b784212 Move hws out of data cage flood map.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5312
diff changeset
771
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
772 <!-- fixations -->
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
773 <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
774
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
775 <!-- flood water marks-->
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-points"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
777
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
778 <!-- flood protection -->
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="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
780
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
781 </dc:if>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
782
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
783 <dc:if test="dc:contains($artifact-outs, 'computed_discharge_curve') and not (dc:contains($parameters, 'recommended'))">
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
784 <discharge_table_nn>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
785 <discharge_table_gauge>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
786 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
787 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
788 SELECT id AS gauge_id,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
789 name AS gauge_name
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
790 FROM gauges WHERE river_id = ${river_id}
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
791 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
792 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
793 <gauge name="{$gauge_name}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
794 db-id="{$gauge_id}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
795 factory="gaugedischarge"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
796 from="{$g_start}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
797 to="{$g_stop}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
798 ids="{$gauge_name}"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
799 <dc:comment>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
800 <!--
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
801 <gauge>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
802 <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
803 <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
804 <dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
805 <dc:statement>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
806 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
807 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
808 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
809 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
810 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
811 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
812 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
813 </dc:statement>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
814 <dc:for-each>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
815 <historical>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
816 <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
817 <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
818 <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
819 <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
820 <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
821 </historical>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
822 </dc:for-each>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
823 </dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
824 </gauge>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
825 -->
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
826 </dc:comment>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
827 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
828 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
829 </discharge_table_gauge>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
830 </discharge_table_nn>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
831
5822
a7df90f425e2 Remove obsolete (duplicate) macro and its use.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 5802
diff changeset
832 <dc:call-macro name="basedata_2_fixations_wqkms"/>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
833
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_5_flood-protections"/>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
835
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
836 <!-- former waterlevels -->
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_0"/>
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 <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
840
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
841 <!-- 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
842 <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
843 <computed_discharge_curve>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
844 <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
845 </computed_discharge_curve>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
846 </dc:if>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
847
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
848 <dc:if test="dc:contains($artifact-outs, 'fix_wq_curve') and not (dc:contains($parameters, 'recommended'))">
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
849 <discharge_table_nn>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
850 <discharge_table_gauge>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
851 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
852 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
853 SELECT id AS gauge_id,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
854 name AS gauge_name
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
855 FROM gauges WHERE river_id = ${river_id}
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
856 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
857 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
858 <gauge name="{$gauge_name}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
859 db-id="{$gauge_id}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
860 factory="gaugedischarge"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
861 from="{$g_start}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
862 to="{$g_stop}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
863 ids="{$gauge_name}"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
864 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
865 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
866 </discharge_table_gauge>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
867 </discharge_table_nn>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
868 </dc:if>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
869
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
870 <dc:if test="dc:contains($artifact-outs, 'floodmap') or dc:contains($artifact-outs, 'floodmap-hws')">
5579
d8209556c6fa Move floodmap folders to the top folder similar to the map module
Andre Heinecke <aheinecke@intevation.de>
parents: 5575
diff changeset
871 <dc:choose>
d8209556c6fa Move floodmap folders to the top folder similar to the map module
Andre Heinecke <aheinecke@intevation.de>
parents: 5575
diff changeset
872 <dc:when test="dc:contains($parameters, 'recommended')">
d8209556c6fa Move floodmap folders to the top folder similar to the map module
Andre Heinecke <aheinecke@intevation.de>
parents: 5575
diff changeset
873 <dc:call-macro name="flood-map-recommended"/>
d8209556c6fa Move floodmap folders to the top folder similar to the map module
Andre Heinecke <aheinecke@intevation.de>
parents: 5575
diff changeset
874 </dc:when>
d8209556c6fa Move floodmap folders to the top folder similar to the map module
Andre Heinecke <aheinecke@intevation.de>
parents: 5575
diff changeset
875 <dc:when test="dc:contains($parameters, 'dem')">
d8209556c6fa Move floodmap folders to the top folder similar to the map module
Andre Heinecke <aheinecke@intevation.de>
parents: 5575
diff changeset
876 <dc:call-macro name="flood-map-dem"/>
d8209556c6fa Move floodmap folders to the top folder similar to the map module
Andre Heinecke <aheinecke@intevation.de>
parents: 5575
diff changeset
877 </dc:when>
5597
085711915cc4 When the HWS parameter is given only show the inline hws
Andre Heinecke <aheinecke@intevation.de>
parents: 5591
diff changeset
878 <dc:when test="dc:contains($parameters, 'hws')">
085711915cc4 When the HWS parameter is given only show the inline hws
Andre Heinecke <aheinecke@intevation.de>
parents: 5591
diff changeset
879 <hws>
085711915cc4 When the HWS parameter is given only show the inline hws
Andre Heinecke <aheinecke@intevation.de>
parents: 5591
diff changeset
880 <dc:call-macro name="flood-map-hws-lines"/>
085711915cc4 When the HWS parameter is given only show the inline hws
Andre Heinecke <aheinecke@intevation.de>
parents: 5591
diff changeset
881 <dc:call-macro name="flood-map-hws-points"/>
085711915cc4 When the HWS parameter is given only show the inline hws
Andre Heinecke <aheinecke@intevation.de>
parents: 5591
diff changeset
882 </hws>
085711915cc4 When the HWS parameter is given only show the inline hws
Andre Heinecke <aheinecke@intevation.de>
parents: 5591
diff changeset
883 </dc:when>
5579
d8209556c6fa Move floodmap folders to the top folder similar to the map module
Andre Heinecke <aheinecke@intevation.de>
parents: 5575
diff changeset
884 <dc:otherwise>
d8209556c6fa Move floodmap folders to the top folder similar to the map module
Andre Heinecke <aheinecke@intevation.de>
parents: 5575
diff changeset
885 <dc:call-macro name="flood-map-complete"/>
d8209556c6fa Move floodmap folders to the top folder similar to the map module
Andre Heinecke <aheinecke@intevation.de>
parents: 5575
diff changeset
886 </dc:otherwise>
d8209556c6fa Move floodmap folders to the top folder similar to the map module
Andre Heinecke <aheinecke@intevation.de>
parents: 5575
diff changeset
887 </dc:choose>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
888
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
889 <dc:macro name="flood-map-recommended">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
890 <dc:comment>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
891 FIXME: Following two macros look identical to me.
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
892 </dc:comment>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
893 <kilometrage>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
894 <riveraxis factory="riveraxis" ids="{$river_id}"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
895 </kilometrage>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
896 <rastermap>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
897 <background factory="wmsbackground" ids="{$river_id}"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
898 </rastermap>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
899 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
900
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
901 <dc:macro name="flood-map-dem">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
902 <dems>
5477
ae60bb7b8085 Add proper handling of multiple river_axes for datacage and rivermapfile
Andre Heinecke <aheinecke@intevation.de>
parents: 5474
diff changeset
903 <dc:context>
ae60bb7b8085 Add proper handling of multiple river_axes for datacage and rivermapfile
Andre Heinecke <aheinecke@intevation.de>
parents: 5474
diff changeset
904 <dc:statement>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
905 SELECT d.id AS dem_id,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
906 r.a AS dem_lower,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
907 r.b AS dem_upper,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
908 d.name AS name,
5625
a8cc4ebdd0bb Update dem info string
Andre Heinecke <aheinecke@intevation.de>
parents: 5619
diff changeset
909 t.start_time AS start_time,
a8cc4ebdd0bb Update dem info string
Andre Heinecke <aheinecke@intevation.de>
parents: 5619
diff changeset
910 t.stop_time AS stop_time,
5627
2d9eb188fa51 Flys Issue 759 write longer strings and explicitly break the lines
Andre Heinecke <aheinecke@intevation.de>
parents: 5625
diff changeset
911 'Projektion: ' || d.projection || '$' ||
2d9eb188fa51 Flys Issue 759 write longer strings and explicitly break the lines
Andre Heinecke <aheinecke@intevation.de>
parents: 5625
diff changeset
912 'Rasterweite: ' || d.resolution || 'm$' ||
2d9eb188fa51 Flys Issue 759 write longer strings and explicitly break the lines
Andre Heinecke <aheinecke@intevation.de>
parents: 5625
diff changeset
913 'Format: ' || d.format || '$' ||
2d9eb188fa51 Flys Issue 759 write longer strings and explicitly break the lines
Andre Heinecke <aheinecke@intevation.de>
parents: 5625
diff changeset
914 'Zeitraum: '
5625
a8cc4ebdd0bb Update dem info string
Andre Heinecke <aheinecke@intevation.de>
parents: 5619
diff changeset
915 AS info
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
916 FROM dem d
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
917 JOIN ranges r ON d.range_id = r.id
5529
52876daf97b0 Use left join on time intervals as they can be NULL
Tom Gottfried <tom@intevation.de>
parents: 5524
diff changeset
918 LEFT JOIN time_intervals t ON d.time_interval_id = t.id
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
919 WHERE d.river_id = ${river_id}
5515
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
920 </dc:statement>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
921 <dc:for-each>
5625
a8cc4ebdd0bb Update dem info string
Andre Heinecke <aheinecke@intevation.de>
parents: 5619
diff changeset
922 <dem factory="demfactory" ids="{$dem_id}" name="{$name}"
5627
2d9eb188fa51 Flys Issue 759 write longer strings and explicitly break the lines
Andre Heinecke <aheinecke@intevation.de>
parents: 5625
diff changeset
923 info="{dc:replace($info, '$', '&lt;BR&gt;')}{dc:date-format('yyyy', $start_time)} - {dc:date-format('yyyy', $stop_time)}"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
924 </dc:for-each>
5515
87dab419b924 Properly handle hydr_boundaries and hydr_boundaries_poly in datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5496
diff changeset
925 </dc:context>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
926 </dems>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
927 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
928
5524
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
929 <dc:macro name="filter_hws_ddg">
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
930 <dc:macro name="durchlass_damm_graben">
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
931 <dc:macro name="ddg_factory">
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
932 <dc:for-each>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
933 <hws factory="hwsfactory" name="{$hws_name}"/>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
934 </dc:for-each>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
935 </dc:macro>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
936
5605
6372fd8bfb00 It's hws_kind not kws_kind
Andre Heinecke <aheinecke@intevation.de>
parents: 5598
diff changeset
937 <dc:filter expr="$hws_kind=1">
5524
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
938 <dc:if test="dc:has-result()">
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
939 <Durchlass><dc:call-macro name="ddg_factory"/></Durchlass>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
940 </dc:if>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
941 </dc:filter>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
942
5605
6372fd8bfb00 It's hws_kind not kws_kind
Andre Heinecke <aheinecke@intevation.de>
parents: 5598
diff changeset
943 <dc:filter expr="$hws_kind=2">
5524
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
944 <dc:if test="dc:has-result()">
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
945 <Damm><dc:call-macro name="ddg_factory"/></Damm>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
946 </dc:if>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
947 </dc:filter>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
948
5605
6372fd8bfb00 It's hws_kind not kws_kind
Andre Heinecke <aheinecke@intevation.de>
parents: 5598
diff changeset
949 <dc:filter expr="$hws_kind=3">
5524
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
950 <dc:if test="dc:has-result()">
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
951 <Graben><dc:call-macro name="ddg_factory"/></Graben>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
952 </dc:if>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
953 </dc:filter>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
954 </dc:macro>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
955
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
956 <dc:filter expr="$hws_official=1">
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
957 <dc:if test="dc:has-result()">
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
958 <official>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
959 <dc:call-macro name="durchlass_damm_graben"/>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
960 </official>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
961 </dc:if>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
962 </dc:filter>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
963
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
964 <dc:filter expr="$hws_official=0">
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
965 <dc:if test="dc:has-result()">
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
966 <inofficial>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
967 <dc:call-macro name="durchlass_damm_graben"/>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
968 </inofficial>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
969 </dc:if>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
970 </dc:filter>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
971 </dc:macro>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
972
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
973 <dc:macro name="flood-map-hws-lines">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
974 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
975 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
976 SELECT DISTINCT
5524
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
977 name AS hws_name,
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
978 official AS hws_official,
5524
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
979 kind_id AS hws_kind
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
980 FROM hws_lines
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
981 WHERE river_id = ${river_id}
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
982 </dc:statement>
5524
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
983 <dc:if test="dc:has-result()">
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
984 <lines>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
985 <dc:call-macro name="filter_hws_ddg"/>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
986 </lines>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
987 </dc:if>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
988 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
989 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
990
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
991 <dc:macro name="flood-map-hws-points">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
992 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
993 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
994 SELECT DISTINCT
5524
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
995 name AS hws_name,
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
996 official AS hws_official,
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
997 kind_id AS hws_kind
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
998 FROM hws_points
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
999 WHERE river_id = ${river_id}
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1000 </dc:statement>
5524
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1001 <dc:if test="dc:has-result()">
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1002 <points>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1003 <dc:call-macro name="filter_hws_ddg"/>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1004 </points>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1005 </dc:if>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1006 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1007 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1008
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1009 <dc:macro name="flood-map-km">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1010 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1011 <dc:statement>
5548
9840c2e65e28 Fix distinction for kilometrage.
Andre Heinecke <aheinecke@intevation.de>
parents: 5547
diff changeset
1012 SELECT DISTINCT 1 FROM river_axes_km WHERE river_id = ${river_id}
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1013 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1014 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1015 <kilometrage factory="wmskmfactory" ids="{$river_id}"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1016 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1017 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1018 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1019
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1020 <dc:macro name="flood-map-qps">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1021 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1022 <dc:comment>Grab only the actual first</dc:comment>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1023 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1024 SELECT DISTINCT
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1025 cs.kind_id AS kind_id,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1026 ck.name AS kind_name
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1027 FROM cross_section_tracks cs
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1028 JOIN cross_section_track_kinds ck on cs.kind_id = ck.id
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1029 WHERE river_id = ${river_id}
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1030 AND kind_id=1
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1031 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1032 <dc:if test="dc:has-result()">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1033 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1034 <actual description="{$kind_name}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1035 factory="wmsqpsfactory"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1036 ids="{$river_id};{$kind_name};{$kind_id}"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1037 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1038 </dc:if>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1039 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1040 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1041 <dc:comment>Now the other tracks</dc:comment>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1042 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1043 SELECT DISTINCT
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1044 cs.kind_id AS kind_id,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1045 ck.name AS kind_name,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1046 cs.name AS layer_name
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1047 FROM cross_section_tracks cs
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1048 JOIN cross_section_track_kinds ck on cs.kind_id = ck.id
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1049 WHERE river_id = ${river_id}
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1050 AND kind_id=0
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1051 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1052 <dc:if test="dc:has-result()">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1053 <other>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1054 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1055 <misc-qps description="{$layer_name}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1056 factory="wmsqpsfactory"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1057 ids="{$river_id};{$layer_name};{$kind_id}"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1058 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1059 </other>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1060 </dc:if>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1061 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1062 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1063
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1064 <dc:macro name="flood-map-riveraxis">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1065 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1066 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1067 SELECT DISTINCT
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1068 ax.kind_id AS kind_id,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1069 ak.name AS kind_name
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1070 FROM river_axes ax
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1071 JOIN axis_kinds ak on ax.kind_id = ak.id
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1072 WHERE river_id = ${river_id}
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1073 AND kind_id=1
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1074 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1075 <dc:if test="dc:has-result()">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1076 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1077 <actual description="{$kind_name}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1078 ids="{$river_id};{$kind_name};{$kind_id}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1079 factory="riveraxis"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1080 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1081 </dc:if>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1082 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1083 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1084 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1085 SELECT DISTINCT
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1086 ak.name AS kind_name,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1087 ax.kind_id AS kind_id,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1088 ax.name AS layer_name
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1089 FROM river_axes ax
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1090 JOIN axis_kinds ak on ax.kind_id = ak.id
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1091 WHERE river_id = ${river_id}
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1092 AND kind_id &lt;&gt; 1
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1093 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1094 <dc:if test="dc:has-result()">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1095 <other>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1096 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1097 <misc-axis description="{$layer_name}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1098 ids="{$river_id};{$layer_name};{$kind_id}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1099 factory="riveraxis"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1100 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1101 </other>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1102 </dc:if>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1103 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1104 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1105
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1106 <dc:macro name="flood-map-hydr-boundaries-state">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1107 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1108 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1109 SELECT DISTINCT
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1110 name
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1111 FROM hydr_boundaries
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1112 WHERE river_id = ${river_id}
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1113 AND kind = 2
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1114 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1115 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1116 <line factory="wmshydrboundariesfactory"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1117 ids="{$river_id};{$name};2"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1118 name="{$name}"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1119 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1120 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1121 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1122 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1123 SELECT DISTINCT
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1124 name
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1125 FROM hydr_boundaries_poly
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1126 WHERE river_id = ${river_id}
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1127 AND kind = 2
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1128 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1129 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1130 <line factory="wmshydrboundariespolyfactory"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1131 ids="{$river_id};{$name};2"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1132 name="{$name}"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1133 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1134 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1135 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1136
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1137 <dc:macro name="flood-map-hydr-boundaries-lines">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1138 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1139 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1140 SELECT DISTINCT
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1141 name
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1142 FROM hydr_boundaries
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1143 WHERE river_id = ${river_id}
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1144 AND kind = 1
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1145 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1146 <dc:comment> What about all other line kinds?</dc:comment>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1147 <dc:if test="dc:has-result()">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1148 <lines>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1149 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1150 <line factory="wmshydrboundariesfactory"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1151 ids="{$river_id};{$name};1"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1152 name="{$name}"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1153 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1154 </lines>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1155 </dc:if>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1156 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1157 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1158
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1159 <dc:macro name="flood-map-hydr-boundaries-poly">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1160 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1161 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1162 SELECT DISTINCT
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1163 b.sectie AS sectie_id,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1164 sk.name AS sectie
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1165 FROM hydr_boundaries_poly b
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1166 JOIN sectie_kinds sk ON b.sectie = sk.id
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1167 WHERE b.river_id = ${river_id}
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1168 AND b.kind = 1
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1169 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1170 <dc:if test="dc:has-result()">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1171 <sobek_areas>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1172 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1173 <boundary name="{$sectie}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1174 factory="wmshydrboundariespolyfactory"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1175 ids="{$river_id};{$sectie};1;{$sectie_id};-1"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1176 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1177 </sobek_areas>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1178 </dc:if>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1179 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1180 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1181 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1182 SELECT DISTINCT
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1183 b.sobek AS sobek_id,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1184 sk.name AS sobek
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1185 FROM hydr_boundaries_poly b
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1186 JOIN sobek_kinds sk ON b.sobek = sk.id
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1187 WHERE b.river_id = ${river_id}
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1188 AND b.kind = 1
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1189 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1190 <dc:if test="dc:has-result()">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1191 <sobek_flooded>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1192 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1193 <boundary name="{$sobek}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1194 factory="wmshydrboundariespolyfactory"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1195 ids="{$river_id};{$sobek};1;-1;{$sobek_id}"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1196 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1197 </sobek_flooded>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1198 </dc:if>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1199 </dc:context>
5760
dc5f81885918 Add hydroboundaries where sectie and sobek is null
Andre Heinecke <aheinecke@intevation.de>
parents: 5758
diff changeset
1200 <dc:context>
dc5f81885918 Add hydroboundaries where sectie and sobek is null
Andre Heinecke <aheinecke@intevation.de>
parents: 5758
diff changeset
1201 <dc:statement>
dc5f81885918 Add hydroboundaries where sectie and sobek is null
Andre Heinecke <aheinecke@intevation.de>
parents: 5758
diff changeset
1202 SELECT DISTINCT
dc5f81885918 Add hydroboundaries where sectie and sobek is null
Andre Heinecke <aheinecke@intevation.de>
parents: 5758
diff changeset
1203 b.name AS name
dc5f81885918 Add hydroboundaries where sectie and sobek is null
Andre Heinecke <aheinecke@intevation.de>
parents: 5758
diff changeset
1204 FROM hydr_boundaries_poly b
dc5f81885918 Add hydroboundaries where sectie and sobek is null
Andre Heinecke <aheinecke@intevation.de>
parents: 5758
diff changeset
1205 WHERE b.river_id = ${river_id}
dc5f81885918 Add hydroboundaries where sectie and sobek is null
Andre Heinecke <aheinecke@intevation.de>
parents: 5758
diff changeset
1206 AND b.kind = 1
dc5f81885918 Add hydroboundaries where sectie and sobek is null
Andre Heinecke <aheinecke@intevation.de>
parents: 5758
diff changeset
1207 AND b.sobek IS NULL
dc5f81885918 Add hydroboundaries where sectie and sobek is null
Andre Heinecke <aheinecke@intevation.de>
parents: 5758
diff changeset
1208 AND b.sectie is NULL
dc5f81885918 Add hydroboundaries where sectie and sobek is null
Andre Heinecke <aheinecke@intevation.de>
parents: 5758
diff changeset
1209 </dc:statement>
dc5f81885918 Add hydroboundaries where sectie and sobek is null
Andre Heinecke <aheinecke@intevation.de>
parents: 5758
diff changeset
1210 <dc:for-each>
dc5f81885918 Add hydroboundaries where sectie and sobek is null
Andre Heinecke <aheinecke@intevation.de>
parents: 5758
diff changeset
1211 <boundary name="{$name}"
dc5f81885918 Add hydroboundaries where sectie and sobek is null
Andre Heinecke <aheinecke@intevation.de>
parents: 5758
diff changeset
1212 factory="wmshydrboundariespolyfactory"
dc5f81885918 Add hydroboundaries where sectie and sobek is null
Andre Heinecke <aheinecke@intevation.de>
parents: 5758
diff changeset
1213 ids="{$river_id};{$name}"/>
dc5f81885918 Add hydroboundaries where sectie and sobek is null
Andre Heinecke <aheinecke@intevation.de>
parents: 5758
diff changeset
1214 </dc:for-each>
dc5f81885918 Add hydroboundaries where sectie and sobek is null
Andre Heinecke <aheinecke@intevation.de>
parents: 5758
diff changeset
1215 </dc:context>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1216 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1217
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1218 <dc:macro name="flood-map-hydr-boundaries">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1219 <bfg_model>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1220 <areas>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1221 <dc:call-macro name="flood-map-hydr-boundaries-poly"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1222 </areas>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1223 <dc:call-macro name="flood-map-hydr-boundaries-lines"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1224 </bfg_model>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1225 <federal>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1226 <dc:call-macro name="flood-map-hydr-boundaries-state"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1227 </federal>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1228 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1229
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1230 <dc:macro name="flood-map-floodplain">
5619
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1231 <floodplain>
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1232 <dc:context>
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1233 <dc:statement>
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1234 SELECT DISTINCT
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1235 fp.kind_id AS kind_id,
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1236 flk.name AS kind_name
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1237 FROM floodplain fp
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1238 JOIN floodplain_kinds flk on fp.kind_id = flk.id
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1239 WHERE river_id = ${river_id}
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1240 AND kind_id=1
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1241 </dc:statement>
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1242 <dc:if test="dc:has-result()">
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
1243 <dc:for-each>
5496
23d8f2700b38 Add support for multiple floodplains and add them to the datacage accordingly
Andre Heinecke <aheinecke@intevation.de>
parents: 5477
diff changeset
1244 <floody factory="wmsfloodplainfactory"
5619
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1245 description="{$kind_name}"
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1246 ids="{$river_id};{$kind_name};{$kind_id}"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
1247 </dc:for-each>
5619
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1248 </dc:if>
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1249 </dc:context>
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1250 <dc:context>
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1251 <dc:statement>
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1252 SELECT DISTINCT
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1253 flk.name AS kind_name,
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1254 fp.kind_id AS kind_id,
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1255 fp.name AS layer_name
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1256 FROM floodplain fp
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1257 JOIN floodplain_kinds flk on fp.kind_id = flk.id
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1258 WHERE river_id = ${river_id}
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1259 AND kind_id &lt;&gt; 1
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1260 </dc:statement>
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1261 <dc:if test="dc:has-result()">
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1262 <other>
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1263 <dc:for-each>
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1264 <floody factory="wmsfloodplainfactory"
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1265 description="{$layer_name}"
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1266 ids="{$river_id};{$layer_name};{$kind_id}"/>
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1267 </dc:for-each>
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1268 </other>
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1269 </dc:if>
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1270 </dc:context>
51208225eb41 Move floodplain into its own directory and reindent
Andre Heinecke <aheinecke@intevation.de>
parents: 5614
diff changeset
1271 </floodplain>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1272 </dc:macro>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1273
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1274 <dc:macro name="hwslines_by_kind">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1275 <dc:comment>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1276 Call from a context where fed_name hws_kind hws_name and river_id is
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1277 availble
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1278 </dc:comment>
5524
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1279
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1280 <dc:macro name="hwslines_by_kind_factory">
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1281 <dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1282 <hws factory="wmshwslinesfactory"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1283 ids="{$river_id};{$hws_name}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1284 name="{$hws_name}"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1285 </dc:for-each>
5524
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1286 </dc:macro>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1287
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1288 <dc:filter expr="$hws_kind=1">
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1289 <dc:if test="dc:has-result()">
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1290 <Durchlass>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1291 <dc:call-macro name="hwslines_by_kind_factory"/>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1292 </Durchlass>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1293 </dc:if>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1294 </dc:filter>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1295
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1296 <dc:filter expr="$hws_kind=2">
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1297 <dc:if test="dc:has-result()">
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1298 <Damm>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1299 <dc:call-macro name="hwslines_by_kind_factory"/>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1300 </Damm>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1301 </dc:if>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1302 </dc:filter>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1303
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1304 <dc:filter expr="$hws_kind=3">
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1305 <dc:if test="dc:has-result()">
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1306 <Graben>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1307 <dc:call-macro name="hwslines_by_kind_factory"/>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1308 </Graben>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1309 </dc:if>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1310 </dc:filter>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1311 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1312
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1313 <dc:macro name="hwslines">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1314 <hws_lines>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1315 <official>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1316 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1317 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1318 SELECT DISTINCT
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1319 fs.name AS fed_name,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1320 fs.id AS fed_id
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1321 FROM hws_lines hws
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1322 JOIN fed_states fs ON hws.fed_state_id = fs.id
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1323 WHERE river_id = ${river_id}
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1324 AND hws.official=1
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1325 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1326 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1327 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1328 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1329 SELECT DISTINCT
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1330 name AS hws_name,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1331 kind_id AS hws_kind
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1332 FROM hws_lines
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1333 WHERE river_id = ${river_id}
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1334 AND official=1
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1335 AND fed_state_id = ${fed_id} ORDER BY name
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1336 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1337 <fedstate description="{$fed_name}">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1338 <dc:call-macro name="hwslines_by_kind"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1339 </fedstate>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1340 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1341 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1342 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1343 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1344 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1345 SELECT distinct
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1346 name AS hws_name,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1347 kind_id AS hws_kind
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1348 FROM hws_lines
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1349 WHERE river_id = ${river_id}
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1350 AND official=1
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1351 AND fed_state_id IS NULL
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1352 ORDER BY name
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1353 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1354 <hws_fed_unknown>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1355 <dc:call-macro name="hwslines_by_kind"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1356 </hws_fed_unknown>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1357 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1358 </official>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1359 <inofficial>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1360 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1361 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1362 SELECT DISTINCT
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1363 fs.name AS fed_name,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1364 fs.id AS fed_id
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1365 FROM hws_lines hws
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1366 JOIN fed_states fs ON hws.fed_state_id = fs.id
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1367 WHERE river_id = ${river_id}
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1368 AND hws.official=0
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1369 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1370 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1371 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1372 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1373 SELECT DISTINCT
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1374 name AS hws_name,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1375 kind_id AS hws_kind
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1376 FROM hws_lines
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1377 WHERE river_id = ${river_id}
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1378 AND official=0
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1379 AND fed_state_id = ${fed_id} ORDER BY name
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1380 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1381 <fedstate description="{$fed_name}">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1382 <dc:call-macro name="hwslines_by_kind"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1383 </fedstate>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1384 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1385 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1386 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1387 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1388 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1389 SELECT distinct
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1390 name AS hws_name,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1391 kind_id AS hws_kind
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1392 FROM hws_lines
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1393 WHERE river_id = ${river_id}
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1394 AND official=0
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1395 AND fed_state_id IS NULL ORDER BY name
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1396 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1397 <hws_fed_unknown>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1398 <dc:call-macro name="hwslines_by_kind"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1399 </hws_fed_unknown>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1400 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1401 </inofficial>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1402 </hws_lines>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1403 </dc:macro>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1404
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1405 <dc:macro name="hwspoints_by_kind">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1406 <dc:comment>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1407 Call from a context where fed_name hws_kind hws_name and river_id is
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1408 availble
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1409 </dc:comment>
5524
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1410
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1411 <dc:macro name="hwspoints_by_kind_factory">
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1412 <dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1413 <hws factory="wmshwspointsfactory"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1414 ids="{$river_id};{$hws_name}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1415 name="{$hws_name}"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1416 </dc:for-each>
5524
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1417 </dc:macro>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1418
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1419 <dc:filter expr="$hws_kind=1">
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1420 <dc:if test="dc:has-result()">
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1421 <Durchlass>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1422 <dc:call-macro name="hwspoints_by_kind_factory"/>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1423 </Durchlass>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1424 </dc:if>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1425 </dc:filter>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1426
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1427 <dc:filter expr="$hws_kind=2">
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1428 <dc:if test="dc:has-result()">
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1429 <Damm>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1430 <dc:call-macro name="hwspoints_by_kind_factory"/>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1431 </Damm>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1432 </dc:if>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1433 </dc:filter>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1434
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1435 <dc:filter expr="$hws_kind=3">
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1436 <dc:if test="dc:has-result()">
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1437 <Graben>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1438 <dc:call-macro name="hwspoints_by_kind_factory"/>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1439 </Graben>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1440 </dc:if>
3badc699af0e Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5523
diff changeset
1441 </dc:filter>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1442 </dc:macro>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1443
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1444 <dc:macro name="hwspoints">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1445 <hws_points>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1446 <official>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1447 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1448 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1449 SELECT DISTINCT
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1450 fs.name AS fed_name,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1451 fs.id AS fed_id
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1452 FROM hws_points hws
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1453 JOIN fed_states fs ON hws.fed_state_id = fs.id
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1454 WHERE river_id = ${river_id}
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1455 AND hws.official=1
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1456 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1457 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1458 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1459 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1460 SELECT DISTINCT
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1461 name AS hws_name,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1462 kind_id AS hws_kind
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1463 FROM hws_points
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1464 WHERE river_id = ${river_id}
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1465 AND official=1
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1466 AND fed_state_id = ${fed_id} ORDER BY name
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1467 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1468 <fedstate description="{$fed_name}">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1469 <dc:call-macro name="hwspoints_by_kind"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1470 </fedstate>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1471 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1472 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1473 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1474 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1475 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1476 SELECT distinct
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1477 name AS hws_name,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1478 kind_id AS hws_kind
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1479 FROM hws_points
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1480 WHERE river_id = ${river_id}
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1481 AND official=1
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1482 AND fed_state_id IS NULL
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1483 ORDER BY name
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1484 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1485 <hws_fed_unknown>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1486 <dc:call-macro name="hwspoints_by_kind"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1487 </hws_fed_unknown>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1488 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1489 </official>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1490 <inofficial>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1491 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1492 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1493 SELECT DISTINCT
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1494 fs.name AS fed_name,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1495 fs.id AS fed_id
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1496 FROM hws_points hws
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1497 JOIN fed_states fs ON hws.fed_state_id = fs.id
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1498 WHERE river_id = ${river_id}
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1499 AND hws.official=0
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1500 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1501 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1502 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1503 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1504 SELECT DISTINCT
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1505 name AS hws_name,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1506 kind_id AS hws_kind
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1507 FROM hws_points
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1508 WHERE river_id = ${river_id}
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1509 AND official=0
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1510 AND fed_state_id = ${fed_id} ORDER BY name
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1511 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1512 <fedstate description="{$fed_name}">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1513 <dc:call-macro name="hwspoints_by_kind"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1514 </fedstate>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1515 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1516 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1517 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1518 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1519 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1520 SELECT distinct
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1521 name AS hws_name,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1522 kind_id AS hws_kind
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1523 FROM hws_points
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1524 WHERE river_id = ${river_id}
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1525 AND official=0
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1526 AND fed_state_id IS NULL ORDER BY name
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1527 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1528 <hws_fed_unknown>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1529 <dc:call-macro name="hwspoints_by_kind"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1530 </hws_fed_unknown>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1531 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1532 </inofficial>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1533 </hws_points>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1534 </dc:macro>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1535
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1536 <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
1537 <dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1538 <dc:statement>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1539 SELECT DISTINCT
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1540 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
1541 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
1542 FROM buildings b
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1543 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
1544 WHERE b.river_id = ${river_id}
5467
6aa04b30f7ff Do not use != in sql statement
Andre Heinecke <aheinecke@intevation.de>
parents: 5466
diff changeset
1545 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
1546 </dc:statement>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
1547 <dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1548 <buildings description="{$building_kind}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1549 factory="wmsbuildingsfactory"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1550 ids="{$river_id};{$building_kind};{$building_kind_id}"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
1551 </dc:for-each>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1552 </dc:context>
5435
70026e3b6af3 Add buildings of kind 0 to data cage
Andre Heinecke <aheinecke@intevation.de>
parents: 5405
diff changeset
1553 <dc:context>
70026e3b6af3 Add buildings of kind 0 to data cage
Andre Heinecke <aheinecke@intevation.de>
parents: 5405
diff changeset
1554 <dc:statement>
70026e3b6af3 Add buildings of kind 0 to data cage
Andre Heinecke <aheinecke@intevation.de>
parents: 5405
diff changeset
1555 SELECT DISTINCT
70026e3b6af3 Add buildings of kind 0 to data cage
Andre Heinecke <aheinecke@intevation.de>
parents: 5405
diff changeset
1556 b.name AS building_name,
5796
53cff50918b1 Fix other buildings.
Andre Heinecke <aheinecke@intevation.de>
parents: 5772
diff changeset
1557 bk.name AS building_kind,
53cff50918b1 Fix other buildings.
Andre Heinecke <aheinecke@intevation.de>
parents: 5772
diff changeset
1558 b.kind_id AS building_kind_id
5435
70026e3b6af3 Add buildings of kind 0 to data cage
Andre Heinecke <aheinecke@intevation.de>
parents: 5405
diff changeset
1559 FROM buildings b
70026e3b6af3 Add buildings of kind 0 to data cage
Andre Heinecke <aheinecke@intevation.de>
parents: 5405
diff changeset
1560 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
1561 WHERE river_id = ${river_id}
5796
53cff50918b1 Fix other buildings.
Andre Heinecke <aheinecke@intevation.de>
parents: 5772
diff changeset
1562 AND kind_id = 0
5435
70026e3b6af3 Add buildings of kind 0 to data cage
Andre Heinecke <aheinecke@intevation.de>
parents: 5405
diff changeset
1563 </dc:statement>
5796
53cff50918b1 Fix other buildings.
Andre Heinecke <aheinecke@intevation.de>
parents: 5772
diff changeset
1564 <dc:if test="dc:has-result()">
53cff50918b1 Fix other buildings.
Andre Heinecke <aheinecke@intevation.de>
parents: 5772
diff changeset
1565 <other>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
1566 <dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1567 <buildings description="{$building_name}"
5796
53cff50918b1 Fix other buildings.
Andre Heinecke <aheinecke@intevation.de>
parents: 5772
diff changeset
1568 factory="wmsbuildingsfactory"
53cff50918b1 Fix other buildings.
Andre Heinecke <aheinecke@intevation.de>
parents: 5772
diff changeset
1569 ids="{$river_id};{$building_name}"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
1570 </dc:for-each>
5796
53cff50918b1 Fix other buildings.
Andre Heinecke <aheinecke@intevation.de>
parents: 5772
diff changeset
1571 </other>
53cff50918b1 Fix other buildings.
Andre Heinecke <aheinecke@intevation.de>
parents: 5772
diff changeset
1572 </dc:if>
5435
70026e3b6af3 Add buildings of kind 0 to data cage
Andre Heinecke <aheinecke@intevation.de>
parents: 5405
diff changeset
1573 </dc:context>
5437
b582df0c7b00 Add Jetties to floodmap
Andre Heinecke <aheinecke@intevation.de>
parents: 5435
diff changeset
1574 <dc:context>
b582df0c7b00 Add Jetties to floodmap
Andre Heinecke <aheinecke@intevation.de>
parents: 5435
diff changeset
1575 <dc:statement>
b582df0c7b00 Add Jetties to floodmap
Andre Heinecke <aheinecke@intevation.de>
parents: 5435
diff changeset
1576 SELECT DISTINCT
b582df0c7b00 Add Jetties to floodmap
Andre Heinecke <aheinecke@intevation.de>
parents: 5435
diff changeset
1577 j.kind_id AS jetty_kind_id,
b582df0c7b00 Add Jetties to floodmap
Andre Heinecke <aheinecke@intevation.de>
parents: 5435
diff changeset
1578 jk.name AS jetty_kind
b582df0c7b00 Add Jetties to floodmap
Andre Heinecke <aheinecke@intevation.de>
parents: 5435
diff changeset
1579 FROM jetties j
b582df0c7b00 Add Jetties to floodmap
Andre Heinecke <aheinecke@intevation.de>
parents: 5435
diff changeset
1580 JOIN jetty_kinds jk ON j.kind_id = jk.id
b582df0c7b00 Add Jetties to floodmap
Andre Heinecke <aheinecke@intevation.de>
parents: 5435
diff changeset
1581 WHERE river_id = ${river_id}
b582df0c7b00 Add Jetties to floodmap
Andre Heinecke <aheinecke@intevation.de>
parents: 5435
diff changeset
1582 </dc:statement>
b582df0c7b00 Add Jetties to floodmap
Andre Heinecke <aheinecke@intevation.de>
parents: 5435
diff changeset
1583 <dc:if test="dc:has-result()">
b582df0c7b00 Add Jetties to floodmap
Andre Heinecke <aheinecke@intevation.de>
parents: 5435
diff changeset
1584 <jetties>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
1585 <dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1586 <jetty description="{$jetty_kind}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1587 factory="wmsjettiesfactory"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1588 ids="{$river_id};{$jetty_kind};{$jetty_kind_id}"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
1589 </dc:for-each>
5437
b582df0c7b00 Add Jetties to floodmap
Andre Heinecke <aheinecke@intevation.de>
parents: 5435
diff changeset
1590 </jetties>
b582df0c7b00 Add Jetties to floodmap
Andre Heinecke <aheinecke@intevation.de>
parents: 5435
diff changeset
1591 </dc:if>
b582df0c7b00 Add Jetties to floodmap
Andre Heinecke <aheinecke@intevation.de>
parents: 5435
diff changeset
1592 </dc:context>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1593 </dc:macro>
5464
f2bcf0fb1efd Add externalwms for Catchments to datacage config
Andre Heinecke <aheinecke@intevation.de>
parents: 5463
diff changeset
1594
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1595 <dc:macro name="flood-map-fixpoints">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1596 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1597 <dc:statement>
5533
65fa2b22dc46 Remove useless km_exists statements
Andre Heinecke <aheinecke@intevation.de>
parents: 5529
diff changeset
1598 SELECT name AS name
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1599 FROM fixpoints WHERE river_id = ${river_id} GROUP BY name
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1600 </dc:statement>
5533
65fa2b22dc46 Remove useless km_exists statements
Andre Heinecke <aheinecke@intevation.de>
parents: 5529
diff changeset
1601 <dc:for-each>
5614
15476d76b6f9 Remove uneccessary complication fixpoints are always fixpoints
Andre Heinecke <aheinecke@intevation.de>
parents: 5613
diff changeset
1602 <fixpoints factory="wmsfixpointsfactory"
15476d76b6f9 Remove uneccessary complication fixpoints are always fixpoints
Andre Heinecke <aheinecke@intevation.de>
parents: 5613
diff changeset
1603 ids="{$river_id};{$name}"/>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1604 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1605 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1606 </dc:macro>
5466
ba1bf40a9787 Restructure datacage to have a route_data folder
Andre Heinecke <aheinecke@intevation.de>
parents: 5464
diff changeset
1607
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1608 <dc:macro name="flood-map-gaugelocations">
5547
38713f32a785 Add Floodmarks and all specified WMS services to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5534
diff changeset
1609 <gauge_points factory="externalwmsfactory" ids="http://www.pegelonline.wsv.de/webservices/gis/wms;Pegelpunkte;Pegelpunkte (WSV)"/>
38713f32a785 Add Floodmarks and all specified WMS services to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5534
diff changeset
1610 <gauge_names factory="externalwmsfactory" ids="http://www.pegelonline.wsv.de/webservices/gis/wms;Pegelnamen;Pegelnamen (WSV)"/>
38713f32a785 Add Floodmarks and all specified WMS services to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5534
diff changeset
1611 <gauge_level factory="externalwmsfactory" ids="http://www.pegelonline.wsv.de/webservices/gis/wms;Pegelwasserstand;Aktueller Wasserstand (WSV)"/>
38713f32a785 Add Floodmarks and all specified WMS services to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5534
diff changeset
1612 <gauge_tendency factory="externalwmsfactory" ids="http://www.pegelonline.wsv.de/webservices/gis/wms;TendenzWasserstand;Tendenz des Wasserstands (WSV)"/>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1613 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1614
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1615 <dc:macro name="flood-map-uesk">
5534
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1616 <dc:context>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1617 <dc:statement>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1618 SELECT DISTINCT 1 from floodmaps where river_id = ${river_id}
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1619 </dc:statement>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1620 <dc:if test="dc:has-result()">
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1621 <uesk>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1622 <calculations>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1623 <dc:context>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1624 <dc:statement>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1625 SELECT DISTINCT 1 from floodmaps where river_id = ${river_id}
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1626 AND (kind = 112 OR kind = 111)
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1627 </dc:statement>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1628 <dc:if test="dc:has-result()">
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1629 <current>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1630 <dc:context>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1631 <dc:statement>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1632 SELECT DISTINCT name AS name
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1633 FROM floodmaps
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1634 WHERE river_id = ${river_id} AND kind = 111
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1635 </dc:statement>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1636 <dc:if test="dc:has-result()">
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1637 <bfg>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1638 <dc:for-each>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1639 <floodmaps factory="wmsfloodmapsfactory"
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1640 ids="{$river_id};{$name}"
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1641 name="{$name}"/>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1642 </dc:for-each>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1643 </bfg>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1644 </dc:if>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1645 </dc:context>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1646 <dc:context>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1647 <dc:statement>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1648 SELECT DISTINCT name AS name
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1649 FROM floodmaps
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1650 WHERE river_id = ${river_id} AND kind = 112
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1651 </dc:statement>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1652 <dc:if test="dc:has-result()">
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1653 <federal>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1654 <dc:for-each>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1655 <floodmaps factory="wmsfloodmapsfactory"
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1656 ids="{$river_id};{$name}"
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1657 name="{$name}"/>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1658 </dc:for-each>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1659 </federal>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1660 </dc:if>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1661 </dc:context>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1662 </current>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1663 </dc:if>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1664 </dc:context>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1665 <dc:context>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1666 <dc:statement>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1667 SELECT DISTINCT 1 from floodmaps where river_id = ${river_id}
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1668 AND (kind = 122 OR kind = 121)
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1669 </dc:statement>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1670 <dc:if test="dc:has-result()">
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1671 <potential>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1672 <dc:context>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1673 <dc:statement>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1674 SELECT DISTINCT name AS name
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1675 FROM floodmaps
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1676 WHERE river_id = ${river_id} AND kind = 121
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1677 </dc:statement>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1678 <dc:if test="dc:has-result()">
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1679 <bfg>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1680 <dc:for-each>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1681 <floodmaps factory="wmsfloodmapsfactory"
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1682 ids="{$river_id};{$name}"
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1683 name="{$name}"/>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1684 </dc:for-each>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1685 </bfg>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1686 </dc:if>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1687 </dc:context>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1688 <dc:context>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1689 <dc:statement>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1690 SELECT DISTINCT
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1691 name AS name
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1692 FROM floodmaps
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1693 WHERE river_id = ${river_id} AND kind = 122
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1694 </dc:statement>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1695 <dc:if test="dc:has-result()">
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1696 <federal>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1697 <dc:for-each>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1698 <floodmaps factory="wmsfloodmapsfactory"
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1699 ids="{$river_id};{$name}"
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1700 name="{$name}"/>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1701 </dc:for-each>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1702 </federal>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1703 </dc:if>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1704 </dc:context>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1705 </potential>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1706 </dc:if>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1707 </dc:context>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1708 </calculations>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1709 <dc:context>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1710 <dc:statement>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1711 SELECT DISTINCT
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1712 source AS source
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1713 FROM floodmaps
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1714 WHERE river_id = ${river_id} AND kind = 200
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1715 </dc:statement>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1716 <dc:if test="dc:has-result()">
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1717 <measurements>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1718 <dc:for-each>
5534
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1719 <year name="{$source}">
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1720 <dc:context>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1721 <dc:statement>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1722 SELECT DISTINCT
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1723 name AS name
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1724 FROM floodmaps
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1725 WHERE river_id = ${river_id} AND kind = 200 AND source =
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1726 ${source}
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1727 </dc:statement>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1728 <dc:for-each>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1729 <floodmaps factory="wmsfloodmapsfactory"
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1730 ids="{$river_id};{$name}"
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1731 name="{$name}"/>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1732 </dc:for-each>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1733 </dc:context>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1734 </year>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1735 </dc:for-each>
5534
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1736 </measurements>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1737 </dc:if>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1738 </dc:context>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1739 </uesk>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1740 </dc:if>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1741 </dc:context>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1742 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1743
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1744 <dc:macro name="flood-map-routing">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1745 <qps>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1746 <dc:call-macro name="flood-map-qps"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1747 </qps>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1748 <dc:call-macro name="flood-map-fixpoints"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1749 <dc:call-macro name="flood-map-km"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1750 <axis>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1751 <dc:call-macro name="flood-map-riveraxis"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1752 </axis>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1753 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1754
5547
38713f32a785 Add Floodmarks and all specified WMS services to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5534
diff changeset
1755 <dc:macro name="floodmarks">
38713f32a785 Add Floodmarks and all specified WMS services to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5534
diff changeset
1756 <dc:context>
38713f32a785 Add Floodmarks and all specified WMS services to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5534
diff changeset
1757 <dc:statement>
38713f32a785 Add Floodmarks and all specified WMS services to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5534
diff changeset
1758 SELECT DISTINCT
38713f32a785 Add Floodmarks and all specified WMS services to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5534
diff changeset
1759 coalesce(CAST (year AS VARCHAR(64)), 'Unbekanntes Jahr') as year
38713f32a785 Add Floodmarks and all specified WMS services to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5534
diff changeset
1760 FROM flood_marks
38713f32a785 Add Floodmarks and all specified WMS services to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5534
diff changeset
1761 WHERE river_id = ${river_id}
38713f32a785 Add Floodmarks and all specified WMS services to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5534
diff changeset
1762 </dc:statement>
38713f32a785 Add Floodmarks and all specified WMS services to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5534
diff changeset
1763 <dc:if test="dc:has-result()">
38713f32a785 Add Floodmarks and all specified WMS services to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5534
diff changeset
1764 <floodmarks>
38713f32a785 Add Floodmarks and all specified WMS services to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5534
diff changeset
1765 <dc:for-each>
38713f32a785 Add Floodmarks and all specified WMS services to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5534
diff changeset
1766 <floodmark name="{$year}"
38713f32a785 Add Floodmarks and all specified WMS services to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5534
diff changeset
1767 factory="wmsfloodmarkfactory"
38713f32a785 Add Floodmarks and all specified WMS services to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5534
diff changeset
1768 ids="{$river_id};{$year};{$year}"/>
38713f32a785 Add Floodmarks and all specified WMS services to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5534
diff changeset
1769 </dc:for-each>
38713f32a785 Add Floodmarks and all specified WMS services to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5534
diff changeset
1770 </floodmarks>
38713f32a785 Add Floodmarks and all specified WMS services to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5534
diff changeset
1771 </dc:if>
38713f32a785 Add Floodmarks and all specified WMS services to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5534
diff changeset
1772 </dc:context>
38713f32a785 Add Floodmarks and all specified WMS services to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5534
diff changeset
1773 </dc:macro>
38713f32a785 Add Floodmarks and all specified WMS services to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5534
diff changeset
1774
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1775 <dc:macro name="flood-map-complete">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1776 <buildings>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1777 <dc:call-macro name="flood-map-buildings"/>
5761
4416dd518103 Remove OSM Intevation.de background layer from datacage :(
Andre Heinecke <aheinecke@intevation.de>
parents: 5760
diff changeset
1778 </buildings>
4416dd518103 Remove OSM Intevation.de background layer from datacage :(
Andre Heinecke <aheinecke@intevation.de>
parents: 5760
diff changeset
1779 <catchments>
4416dd518103 Remove OSM Intevation.de background layer from datacage :(
Andre Heinecke <aheinecke@intevation.de>
parents: 5760
diff changeset
1780 <catchment_wms factory="externalwmsfactory"
4416dd518103 Remove OSM Intevation.de background layer from datacage :(
Andre Heinecke <aheinecke@intevation.de>
parents: 5760
diff changeset
1781 ids="http://geoportal.bafg.de/wmsproxy/INSPIRE/DrainageBasin;HY.PHYSICALWATERS.CATCHMENTS;Einzugsgebiete (WMS)" />
4416dd518103 Remove OSM Intevation.de background layer from datacage :(
Andre Heinecke <aheinecke@intevation.de>
parents: 5760
diff changeset
1782 <gaugelocations>
4416dd518103 Remove OSM Intevation.de background layer from datacage :(
Andre Heinecke <aheinecke@intevation.de>
parents: 5760
diff changeset
1783 <dc:call-macro name="flood-map-gaugelocations"/>
4416dd518103 Remove OSM Intevation.de background layer from datacage :(
Andre Heinecke <aheinecke@intevation.de>
parents: 5760
diff changeset
1784 </gaugelocations>
4416dd518103 Remove OSM Intevation.de background layer from datacage :(
Andre Heinecke <aheinecke@intevation.de>
parents: 5760
diff changeset
1785 </catchments>
5547
38713f32a785 Add Floodmarks and all specified WMS services to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5534
diff changeset
1786 <dc:call-macro name="floodmarks"/>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1787 <hws>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1788 <dc:call-macro name="hwslines"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1789 <dc:call-macro name="hwspoints"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1790 </hws>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1791 <route_data>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1792 <dc:call-macro name="flood-map-routing"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1793 </route_data>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1794 <hydrboundaries>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1795 <dc:call-macro name="flood-map-floodplain"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1796 <dc:call-macro name="flood-map-hydr-boundaries"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1797 </hydrboundaries>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1798 <dc:call-macro name="flood-map-uesk"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1799 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1800
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1801 </dc:if>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1802
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1803 <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
1804 <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
1805 <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
1806 <bedheights>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1807 <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
1808 <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
1809 </bedheights>
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 3592
diff changeset
1810 </dc:macro>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1811 </dc:if>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1812 <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
1813 <bedheights>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1814 <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
1815 </bedheights>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1816 </dc:if>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1817
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1818 <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
1819 <single>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1820 <dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1821 <dc:statement>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1822 SELECT id AS bedh_id,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1823 year AS bedh_year,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1824 description AS bedh_descr
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1825 FROM bed_height_single WHERE river_id = ${river_id}
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1826 </dc:statement>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
1827 <dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1828 <height factory="bedheight"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1829 ids="bedheight-single-{$bedh_id}-{$bedh_year}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1830 description="{$bedh_descr}"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
1831 </dc:for-each>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1832 </dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1833 </single>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1834 </dc:macro>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1835
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1836 <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
1837 <epoch>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1838 <dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1839 <dc:statement>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1840 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
1841 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
1842 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
1843 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
1844 </dc:statement>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
1845 <dc:for-each>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1846 <height factory="bedheight"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1847 ids="bedheight-epoch-{$bedh_id}-{$bedh_interval_id}"
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1848 description="{$bedh_descr}"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
1849 </dc:for-each>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1850 </dc:context>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1851 </epoch>
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1852 </dc:macro>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1853
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
1854 </dc:for-each>
1181
dd59431d648f Repaired datacage configuration. The system specific stuff is also displayed if a user-id is given.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 1097
diff changeset
1855 </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
1856 </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
1857
1046
0a5eff5511b1 Fixed flys/issue262: Unified user and system datacage template
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
1858 <dc:choose>
0a5eff5511b1 Fixed flys/issue262: Unified user and system datacage template
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
1859 <dc:comment>
0a5eff5511b1 Fixed flys/issue262: Unified user and system datacage template
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
1860 User specific part
0a5eff5511b1 Fixed flys/issue262: Unified user and system datacage template
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
1861 ------------------
0a5eff5511b1 Fixed flys/issue262: Unified user and system datacage template
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
1862 </dc:comment>
5598
989c0d196bfe Do not show old calculations in hws datacage selection
Andre Heinecke <aheinecke@intevation.de>
parents: 5597
diff changeset
1863 <dc:when test="dc:contains($parameters, 'user-id') and
989c0d196bfe Do not show old calculations in hws datacage selection
Andre Heinecke <aheinecke@intevation.de>
parents: 5597
diff changeset
1864 not(dc:contains($artifact-outs, 'floodmap-hws'))">
1657
91d038c7aae5 Bugfix: #328 Improved datacage configuration and labels for selected waterlevels.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 1186
diff changeset
1865
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1866 <old_calculations>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
1867
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1868 <dc:comment><!-- <dc:macro name="load-user">--></dc:comment>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1869 <dc:call-macro name="user-range">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1870 <dc:context connection="user">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1871 <dc:comment> Get the user and collection-id. </dc:comment>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1872 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1873 SELECT u.id AS user_id, c.id AS collection_id, c.name AS collection_name
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1874 FROM collections c JOIN users u ON c.user_id = u.id
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1875 WHERE u.gid = CAST(${user-id} AS uuid)
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1876 ORDER BY c.creation DESC
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1877 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1878
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1879 <dc:macro name="range-filter">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1880 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1881 SELECT m.id AS a_id,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1882 m.state AS a_state,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1883 m.gid AS a_gid,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1884 m.creation AS a_creation,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1885 COALESCE(ld_mode, '') AS ld_m,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1886 COALESCE(ld_locations, '') AS ld_l,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1887 COALESCE(ld_from, '') AS ld_f,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1888 COALESCE(ld_to, '') AS ld_t
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1889 FROM master_artifacts_range m
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1890 WHERE m.collection_id = ${collection_id} AND m.gid &lt;&gt; CAST(${artifact-id} AS uuid)
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1891 AND EXISTS (
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1892 SELECT id FROM artifact_data ad WHERE ad.artifact_id = m.id AND k = 'river' AND v = ${river})
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1893 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1894 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1895 <dc:variable name="from" type="number" expr="dc:fromValue($ld_m, $ld_l, $ld_f)"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1896 <dc:variable name="to" type="number" expr="dc:toValue($ld_m, $ld_l, $ld_t)"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1897 <dc:if test="($from &gt;= $fromkm and $from &lt;= $tokm) or ($to &lt;= $tokm and $to &gt;= $fromkm) or ($from &lt;= $fromkm and $to &gt;= $tokm)">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1898 <dc:macro-body/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1899 </dc:if>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1900 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1901 </dc:macro>
5670
40e909e52e4e Cosmetics.
Raimund Renkert <rrenkert@intevation.de>
parents: 5669
diff changeset
1902
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1903 <!-- OFFICIAL LINES -->
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1904 <dc:if test="dc:contains($artifact-outs, 'longitudinal_section')">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1905 <dc:comment comment=".wst -------------------------------"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1906 <officiallines>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1907 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1908 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1909 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1910 SELECT m.id AS a_id,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1911 m.state AS a_state,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1912 m.gid AS a_gid,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1913 m.creation AS a_creation,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1914 ardg.v AS gaugy,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1915 arv.v AS wqsingle
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1916 FROM master_artifacts m,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1917 artifact_data ardg,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1918 artifact_data arv
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1919 WHERE m.collection_id = ${collection_id}
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1920 AND m.gid = CAST(${artifact-id} AS uuid)
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1921 AND ardg.artifact_id = m.id
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1922 AND ardg.k = 'ld_gaugename'
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1923 AND arv.artifact_id = m.id
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1924 AND arv.k = 'wq_single'
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1925 AND EXISTS (
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1926 SELECT id
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1927 FROM artifact_data ad
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1928 WHERE ad.artifact_id = m.id
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1929 AND k = 'river'
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1930 AND v = ${river})
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1931 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1932 <dc:for-each>
3307
81a98f360553 Very basic official lines in dc, malplaced.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3283
diff changeset
1933 <dc:context connection="system">
81a98f360553 Very basic official lines in dc, malplaced.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3283
diff changeset
1934 <dc:statement>
81a98f360553 Very basic official lines in dc, malplaced.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3283
diff changeset
1935 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
1936 FROM official_q_values ol
81a98f360553 Very basic official lines in dc, malplaced.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3283
diff changeset
1937 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
1938 </dc:statement>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
1939 <dc:for-each>
3307
81a98f360553 Very basic official lines in dc, malplaced.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3283
diff changeset
1940 <dc:element name="${olname}">
81a98f360553 Very basic official lines in dc, malplaced.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3283
diff changeset
1941 <dc:attribute name="name" value="${olname}"/>
81a98f360553 Very basic official lines in dc, malplaced.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3283
diff changeset
1942 <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
1943 <dc:attribute name="factory" value="staticwkms"/>
81a98f360553 Very basic official lines in dc, malplaced.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3283
diff changeset
1944 </dc:element>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
1945 </dc:for-each>
3307
81a98f360553 Very basic official lines in dc, malplaced.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3283
diff changeset
1946 </dc:context>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1947 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1948 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1949 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1950 </officiallines>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1951 </dc:if>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1952 <!-- 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
1953
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1954 <dc:comment>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1955 SHOW W-DIFFERENCES
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1956 </dc:comment>
1657
91d038c7aae5 Bugfix: #328 Improved datacage configuration and labels for selected waterlevels.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 1186
diff changeset
1957
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1958 <dc:macro name="differences">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1959 <differences>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1960 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1961 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1962 <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
1963 <dc:context>
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
1964 <dc:statement>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1965 SELECT a.gid AS aid, f.id AS fid, f.name AS facet_name, f.num AS facet_num, f.description AS facet_description
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1966 FROM outs AS o, facets AS f, artifacts AS a
1879
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
1967 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
1968 </dc:statement>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
1969 <dc:for-each>
1879
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
1970 <dc:element name="${facet_name}">
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
1971 <dc:attribute name="description" value="${facet_description}"/>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1972 <dc:attribute name="factory" value="winfo"/>
1879
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
1973 <dc:attribute name="artifact-id" value="${aid}"/>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1974 <dc:attribute name="ids" value="${aid}"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1975 <dc:attribute name="out" value="w_differences"/>
1879
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
1976 </dc:element>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
1977 </dc:for-each>
1879
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
1978 </dc:context>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
1979 </dc:call-macro>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1980 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1981 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1982 </differences>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1983 </dc:macro>
1657
91d038c7aae5 Bugfix: #328 Improved datacage configuration and labels for selected waterlevels.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 1186
diff changeset
1984
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1985 <dc:comment>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1986 SHOW REFERENCE CURVE
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1987 </dc:comment>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
1988
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1989 <dc:macro name="reference-curves">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1990 <reference_curves>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1991 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1992 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1993 <dc:call-macro name="user-range">
2722
36631f23acdf Allow loading of previous reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2721
diff changeset
1994 <dc:context>
36631f23acdf Allow loading of previous reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2721
diff changeset
1995 <dc:statement>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1996 SELECT a.gid AS aid, f.id AS fid, f.name AS facet_name, f.num AS facet_num, f.description AS facet_description
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1997 FROM outs AS o, facets AS f, artifacts AS a
2722
36631f23acdf Allow loading of previous reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2721
diff changeset
1998 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
1999 </dc:statement>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
2000 <dc:for-each>
2722
36631f23acdf Allow loading of previous reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2721
diff changeset
2001 <dc:element name="${facet_name}">
36631f23acdf Allow loading of previous reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2721
diff changeset
2002 <dc:attribute name="description" value="${facet_description}"/>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2003 <dc:attribute name="factory" value="winfo"/>
2722
36631f23acdf Allow loading of previous reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2721
diff changeset
2004 <dc:attribute name="artifact-id" value="${aid}"/>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2005 <dc:attribute name="ids" value="${aid}"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2006 <dc:attribute name="out" value="reference_curve"/>
2722
36631f23acdf Allow loading of previous reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2721
diff changeset
2007 </dc:element>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
2008 </dc:for-each>
2722
36631f23acdf Allow loading of previous reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2721
diff changeset
2009 </dc:context>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2010 </dc:call-macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2011 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2012 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2013 </reference_curves>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2014 </dc:macro>
2722
36631f23acdf Allow loading of previous reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2721
diff changeset
2015
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2016 <dc:comment>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2017 SHOW COMPUTED DISCHARGE CURVES
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2018 </dc:comment>
2722
36631f23acdf Allow loading of previous reference curves.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2721
diff changeset
2019
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2020 <dc:macro name="computed-discharge-curve">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2021 <computed_discharge_curves>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2022 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2023 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2024 <dc:call-macro name="range-filter">
1880
ebd16028efa3 Include computed discharge curves in dc conf.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1879
diff changeset
2025 <dc:context>
ebd16028efa3 Include computed discharge curves in dc conf.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1879
diff changeset
2026 <dc:statement>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2027 SELECT a.gid AS aid, f.id AS fid, f.name AS facet_name, f.num AS facet_num, f.description AS facet_description
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2028 FROM outs AS o, facets AS f, artifacts AS a
1880
ebd16028efa3 Include computed discharge curves in dc conf.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1879
diff changeset
2029 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
2030 </dc:statement>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
2031 <dc:for-each>
1880
ebd16028efa3 Include computed discharge curves in dc conf.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1879
diff changeset
2032 <dc:element name="${facet_name}">
ebd16028efa3 Include computed discharge curves in dc conf.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1879
diff changeset
2033 <dc:attribute name="description" value="${facet_description}"/>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2034 <dc:attribute name="factory" value="winfo"/>
1880
ebd16028efa3 Include computed discharge curves in dc conf.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1879
diff changeset
2035 <dc:attribute name="artifact-id" value="${aid}"/>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2036 <dc:attribute name="ids" value="${aid}"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2037 <dc:attribute name="out" value="computed_discharge_curve"/>
1880
ebd16028efa3 Include computed discharge curves in dc conf.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1879
diff changeset
2038 </dc:element>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
2039 </dc:for-each>
1880
ebd16028efa3 Include computed discharge curves in dc conf.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1879
diff changeset
2040 </dc:context>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2041 </dc:call-macro>
3579
accb64be866c Add annotations to fixA longitudinal Sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3574
diff changeset
2042 </dc:context>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2043 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2044 </computed_discharge_curves>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2045 </dc:macro>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2046
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2047 <dc:comment>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2048 CROSS SECTION
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2049 </dc:comment>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2050
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2051 <dc:macro name="waterlevels">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2052 <waterlevels>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2053 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2054 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2055 <dc:call-macro name="range-filter">
2690
15c6f79ca3e2 Add duration_curve.q loading via datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2689
diff changeset
2056 <dc:context>
15c6f79ca3e2 Add duration_curve.q loading via datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2689
diff changeset
2057 <dc:statement>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2058 SELECT id AS out_id
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2059 FROM outs
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2060 WHERE artifact_id = ${a_id} AND name = 'cross_section'
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2061 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2062 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2063 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2064 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2065 SELECT name AS facet_name, num AS facet_num, description AS facet_description
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2066 FROM facets
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2067 WHERE out_id = ${out_id}
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2068 ORDER BY num ASC, name DESC
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2069 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2070 <longitudinal_section_columns description="{$river} {$a_creation}">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2071 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2072 <dc:element name="${facet_name}">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2073 <dc:attribute name="description" value="${facet_description}"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2074 <dc:attribute name="ids" value="${facet_num}"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2075 <dc:attribute name="factory" value="winfo"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2076 <dc:attribute name="artifact-id" value="${a_gid}"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2077 <dc:attribute name="out" value="cross_section"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2078 </dc:element>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2079 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2080 </longitudinal_section_columns>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2081 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2082 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2083 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2084 </dc:call-macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2085 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2086 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2087 </waterlevels>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2088 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2089
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2090 <dc:macro name="longitudinal">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2091 <waterlevels>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2092 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2093 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2094 <dc:call-macro name="range-filter">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2095 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2096 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2097 SELECT id AS out_id
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2098 FROM outs
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2099 WHERE artifact_id = ${a_id} AND name = 'longitudinal_section'
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2100 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2101 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2102 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2103 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2104 SELECT name AS facet_name, num AS facet_num, description AS facet_description
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2105 FROM facets
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2106 WHERE out_id = ${out_id}
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2107 ORDER BY num ASC, name DESC
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2108 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2109 <longitudinal_section_columns description="{$river} {$a_creation}">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2110 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2111 <dc:element name="${facet_name}">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2112 <dc:attribute name="description" value="${facet_description}"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2113 <dc:attribute name="ids" value="${facet_num}"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2114 <dc:attribute name="factory" value="winfo"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2115 <dc:attribute name="artifact-id" value="${a_gid}"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2116 <dc:attribute name="out" value="longitudinal_section"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2117 </dc:element>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2118 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2119 </longitudinal_section_columns>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2120 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2121 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2122 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2123 </dc:call-macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2124 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2125 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2126 </waterlevels>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2127 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2128
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2129 <dc:macro name="longitudinal-section">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2130 <waterlevels>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2131 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2132 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2133 <dc:call-macro name="range-filter">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2134 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2135 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2136 SELECT id AS out_id
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2137 FROM outs
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2138 WHERE artifact_id = ${a_id} AND name = 'fix_longitudinal_section_curve'
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2139 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2140 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2141 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2142 <dc:comment><!-- average und deviation ls_0 . ls_1 ...--></dc:comment>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2143 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2144 SELECT name AS facet_name, num AS facet_num, description AS facet_description
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2145 FROM facets
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2146 WHERE out_id = ${out_id} AND (
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2147 name LIKE 'fix_deviation_ls%' OR
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2148 name LIKE 'fix_sector_average_ls%' OR
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2149 name LIKE 'fix_analysis_events_ls%' OR
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2150 name LIKE 'fix_reference_events_ls%' )
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2151 ORDER BY num ASC, name DESC
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2152 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2153 <waterlevels description="{$river} {$a_creation} {$collection_name}">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2154 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2155 <dc:element name="${facet_name}">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2156 <dc:attribute name="description" value="${facet_description}"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2157 <dc:attribute name="ids" value="${facet_num}"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2158 <dc:attribute name="factory" value="fixanalysis"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2159 <dc:attribute name="artifact-id" value="${a_gid}"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2160 <dc:attribute name="out" value="fix_longitudinal_section_curve"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2161 </dc:element>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2162 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2163 </waterlevels>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2164 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2165 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2166 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2167 </dc:call-macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2168 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2169 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2170 </waterlevels>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2171 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2172
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2173 <dc:macro name="delta-wt">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2174 <waterlevels>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2175 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2176 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2177 <dc:call-macro name="range-filter">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2178 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2179 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2180 SELECT id AS out_id
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2181 FROM outs
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2182 WHERE artifact_id = ${a_id} AND name = 'fix_deltawt_curve'
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2183 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2184 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2185 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2186 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2187 SELECT name AS facet_name, num AS facet_num, description AS facet_description
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2188 FROM facets
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2189 WHERE out_id = ${out_id} and (
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2190 name LIKE 'fix_sector_average_dwt%' OR
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2191 name LIKE 'fix_deviation_dwt%' OR
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2192 name = 'fix_analysis_events_dwt' OR
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2193 name = 'fix_reference_events_dwt' OR
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2194 name = 'fix_analysis_periods_dwt' )
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2195 ORDER BY num ASC, name DESC
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2196 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2197 <waterlevels description="{$river} {$a_creation} {$collection_name}">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2198 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2199 <dc:element name="${facet_name}">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2200 <dc:attribute name="description" value="${facet_description}"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2201 <dc:attribute name="ids" value="${facet_num}"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2202 <dc:attribute name="factory" value="fixanalysis"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2203 <dc:attribute name="artifact-id" value="${a_gid}"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2204 <dc:attribute name="out" value="fix_deltawt_curve"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2205 </dc:element>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2206 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2207 </waterlevels>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2208 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2209 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2210 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2211 </dc:call-macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2212 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2213 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2214 </waterlevels>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2215 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2216
5758
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2217 <dc:macro name="delta-wt-ls">
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2218 <waterlevels>
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2219 <dc:for-each>
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2220 <dc:context>
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2221 <dc:call-macro name="range-filter">
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2222 <dc:context>
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2223 <dc:statement>
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2224 SELECT id AS out_id
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2225 FROM outs
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2226 WHERE artifact_id = ${a_id} AND name = 'fix_deltawt_curve'
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2227 </dc:statement>
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2228 <dc:for-each>
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2229 <dc:context>
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2230 <dc:statement>
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2231 SELECT name AS facet_name, num AS facet_num, description AS facet_description
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2232 FROM facets
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2233 WHERE out_id = ${out_id} and (
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2234 name LIKE 'fix_sector_average_dwt%' OR
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2235 name LIKE 'fix_deviation_dwt%')
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2236 ORDER BY num ASC, name DESC
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2237 </dc:statement>
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2238 <waterlevels description="{$river} {$a_creation} {$collection_name}">
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2239 <dc:for-each>
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2240 <dc:element name="${facet_name}">
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2241 <dc:attribute name="description" value="${facet_description}"/>
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2242 <dc:attribute name="ids" value="${facet_num}"/>
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2243 <dc:attribute name="factory" value="fixanalysis"/>
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2244 <dc:attribute name="artifact-id" value="${a_gid}"/>
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2245 <dc:attribute name="out" value="fix_deltawt_curve"/>
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2246 </dc:element>
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2247 </dc:for-each>
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2248 </waterlevels>
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2249 </dc:context>
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2250 </dc:for-each>
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2251 </dc:context>
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2252 </dc:call-macro>
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2253 </dc:context>
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2254 </dc:for-each>
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2255 </waterlevels>
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2256 </dc:macro>
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
2257
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2258 <dc:macro name="fix-derivate-curve">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2259 <waterlevels>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2260 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2261 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2262 <dc:call-macro name="range-filter">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2263 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2264 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2265 SELECT id AS out_id
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2266 FROM outs
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2267 WHERE artifact_id = ${a_id} AND name = 'fix_derivate_curve'
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2268 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2269 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2270 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2271 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2272 SELECT name AS facet_name, num AS facet_num, description AS facet_description
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2273 FROM facets
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2274 WHERE out_id = ${out_id} and name = 'fix_derivate_curve'
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2275 ORDER BY num ASC, name DESC
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2276 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2277 <waterlevels description="{$river} {$a_creation} {$collection_name}">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2278 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2279 <dc:element name="${facet_name}">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2280 <dc:attribute name="description" value="${facet_description}"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2281 <dc:attribute name="ids" value="${facet_num}"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2282 <dc:attribute name="factory" value="fixanalysis"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2283 <dc:attribute name="artifact-id" value="${a_gid}"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2284 <dc:attribute name="out" value="fix_derivate_curve"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2285 </dc:element>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2286 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2287 </waterlevels>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2288 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2289 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2290 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2291 </dc:call-macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2292 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2293 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2294 </waterlevels>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2295 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2296
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2297 <dc:macro name="fix-wq-curve">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2298 <waterlevels>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2299 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2300 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2301 <dc:call-macro name="range-filter">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2302 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2303 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2304 SELECT id AS out_id
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2305 FROM outs
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2306 WHERE artifact_id = ${a_id} AND name = 'fix_wq_curve'
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2307 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2308 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2309 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2310 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2311 SELECT name AS facet_name, num AS facet_num, description AS facet_description
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2312 FROM facets
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2313 WHERE out_id = ${out_id} and (
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2314 name LIKE 'fix_sector_average_wq%' OR
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2315 name = 'fix_wq_curve' OR
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2316 name LIKE 'fix_analysis_events_wq%' OR
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2317 name LIKE 'fix_reference_events_wq%' )
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2318 ORDER BY num ASC, name DESC
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2319 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2320 <waterlevels description="{$river} {$a_creation} {$collection_name}">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2321 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2322 <dc:element name="${facet_name}">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2323 <dc:attribute name="description" value="${facet_description}"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2324 <dc:attribute name="ids" value="${facet_num}"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2325 <dc:attribute name="factory" value="fixanalysis"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2326 <dc:attribute name="artifact-id" value="${a_gid}"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2327 <dc:attribute name="out" value="fix_wq_curve"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2328 </dc:element>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2329 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2330 </waterlevels>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2331 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2332 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2333 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2334 </dc:call-macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2335 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2336 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2337 </waterlevels>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2338 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2339
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2340 <dc:macro name="duration-curve">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2341 <computed_discharge_curves>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2342 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2343 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2344 <dc:call-macro name="range-filter">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2345 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2346 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2347 SELECT a.gid AS aid,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2348 f.id AS fid,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2349 f.name AS facet_name,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2350 f.num AS facet_num,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2351 f.description AS facet_description
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2352 FROM outs AS o, facets AS f, artifacts AS a
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2353 WHERE
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2354 (f.name = 'duration_curve.q' OR f.name = 'duration_curve.w') AND
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2355 f.out_id = o.id AND
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2356 o.artifact_id = ${a_id} AND
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2357 a.id = ${a_id}
2690
15c6f79ca3e2 Add duration_curve.q loading via datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2689
diff changeset
2358 </dc:statement>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
2359 <dc:for-each>
2690
15c6f79ca3e2 Add duration_curve.q loading via datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2689
diff changeset
2360 <dc:element name="${facet_name}">
15c6f79ca3e2 Add duration_curve.q loading via datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2689
diff changeset
2361 <dc:attribute name="description" value="${facet_description}"/>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2362 <dc:attribute name="factory" value="winfo"/>
2690
15c6f79ca3e2 Add duration_curve.q loading via datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2689
diff changeset
2363 <dc:attribute name="artifact-id" value="${aid}"/>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2364 <dc:attribute name="ids" value="${aid}"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2365 <dc:attribute name="out" value="duration_curve"/>
2690
15c6f79ca3e2 Add duration_curve.q loading via datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2689
diff changeset
2366 </dc:element>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
2367 </dc:for-each>
2690
15c6f79ca3e2 Add duration_curve.q loading via datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2689
diff changeset
2368 </dc:context>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2369 </dc:call-macro>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2370 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2371 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2372 </computed_discharge_curves>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2373 </dc:macro>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2374
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2375 <dc:comment>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2376 WATERLEVELS - ONLY SHOW Ws
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2377 </dc:comment>
1879
d7369f395a80 Somewhat unified user-part of dc config.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1875
diff changeset
2378
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2379 <dc:comment><!-- TODO doesnt work nicely for fix/wq-diags. --></dc:comment>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
2380
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2381 <dc:macro name="waterlevels-fix">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2382 <waterlevels>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2383 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2384 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2385 <dc:call-macro name="range-filter">
2096
bf598599782a Made old calculation results available for floodmaps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2086
diff changeset
2386 <dc:context>
bf598599782a Made old calculation results available for floodmaps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2086
diff changeset
2387 <dc:statement>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2388 SELECT id AS out_id
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2389 FROM outs
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2390 WHERE artifact_id = ${a_id} AND name = 'longitudinal_section'
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2391 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2392 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2393 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2394 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2395 SELECT name AS facet_name, num AS facet_num, description AS facet_description
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2396 FROM facets
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2397 WHERE out_id = ${out_id} and name = 'longitudinal_section.w'
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2398 ORDER BY num ASC, name DESC
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2399 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2400 <waterlevels description="{$river} {$a_creation} {$collection_name}">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2401 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2402 <dc:element name="${facet_name}">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2403 <dc:attribute name="description" value="${facet_description}"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2404 <dc:attribute name="ids" value="${facet_num}"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2405 <dc:attribute name="factory" value="winfo"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2406 <dc:attribute name="artifact-id" value="${a_gid}"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2407 <dc:attribute name="out" value="longitudinal_section"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2408 </dc:element>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2409 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2410 </waterlevels>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2411 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2412 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2413 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2414 </dc:call-macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2415 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2416 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2417 </waterlevels>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2418 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2419
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2420 <dc:comment>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2421 SHOW FLOODMAPS
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2422 </dc:comment>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2423
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2424 <dc:macro name="flood-map">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2425 <floodmap>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2426 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2427 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2428 <dc:call-macro name="range-filter">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2429 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2430 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2431 SELECT a.gid AS aid,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2432 f.id AS fid,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2433 f.name AS facet_name,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2434 f.num AS facet_num,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2435 f.description AS facet_description
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2436 FROM outs AS o, facets AS f, artifacts AS a
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2437 WHERE f.name = 'floodmap.wsplgen' AND
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2438 f.out_id = o.id AND
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2439 o.artifact_id = ${a_id} AND
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2440 a.id = ${a_id}
2096
bf598599782a Made old calculation results available for floodmaps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2086
diff changeset
2441 </dc:statement>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
2442 <dc:for-each>
2096
bf598599782a Made old calculation results available for floodmaps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2086
diff changeset
2443 <dc:element name="${facet_name}">
bf598599782a Made old calculation results available for floodmaps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2086
diff changeset
2444 <dc:attribute name="description" value="${facet_description}"/>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2445 <dc:attribute name="factory" value="winfo"/>
2096
bf598599782a Made old calculation results available for floodmaps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2086
diff changeset
2446 <dc:attribute name="artifact-id" value="${aid}"/>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2447 <dc:attribute name="ids" value="${aid}"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2448 <dc:attribute name="out" value="floodmap"/>
2096
bf598599782a Made old calculation results available for floodmaps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2086
diff changeset
2449 </dc:element>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
2450 </dc:for-each>
2096
bf598599782a Made old calculation results available for floodmaps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2086
diff changeset
2451 </dc:context>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2452 </dc:call-macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2453 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2454 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2455 </floodmap>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2456 </dc:macro>
2096
bf598599782a Made old calculation results available for floodmaps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2086
diff changeset
2457
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2458 <dc:comment>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2459 MINFO bedheight middle
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2460 </dc:comment>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2461
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2462 <dc:macro name="bed-height">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2463 <fix_vollmer_wq_curve>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2464 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2465 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2466 <dc:call-macro name="range-filter">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2467 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2468 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2469 SELECT a.gid AS aid,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2470 f.id AS fid,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2471 f.name AS facet_name,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2472 f.num AS facet_num,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2473 f.description AS facet_description
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2474 FROM outs AS o, facets AS f, artifacts AS a
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2475 WHERE (
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2476 f.name = 'longitudinal_section.w' OR
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2477 f.name = 'heightmarks_points'
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2478 ) AND f.out_id = o.id AND o.artifact_id = ${a_id} AND a.id = ${a_id}
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2479 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2480 <fix_vollmer_wq_curve description="{$river} {$a_creation} {$collection_name}">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2481 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2482 <dc:element name="${facet_name}">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2483 <dc:attribute name="description" value="${facet_description}"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2484 <dc:attribute name="factory" value="fixanalysis"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2485 <dc:attribute name="artifact-id" value="${aid}"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2486 <dc:attribute name="ids" value="${facet_num}"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2487 <dc:attribute name="out" value="longitudinal_section"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2488 </dc:element>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2489 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2490 </fix_vollmer_wq_curve>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2491 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2492 </dc:call-macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2493 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2494 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2495 </fix_vollmer_wq_curve>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2496 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2497
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2498 <dc:macro name="floodmap-hws-user">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2499 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2500 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2501 SELECT id AS out_id
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2502 FROM outs
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2503 WHERE artifact_id = ${a_id} AND name = 'floodmap'
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2504 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2505 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2506 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2507 <dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2508 SELECT name AS facet_name,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2509 num AS facet_num,
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2510 description AS facet_description
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2511 FROM facets
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2512 WHERE out_id = ${out_id} AND name = 'floodmap.usershape'
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2513 ORDER BY num ASC, name DESC
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2514 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2515 <own-hws>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2516 <dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2517 <dc:element name="${facet_name}">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2518 <dc:attribute name="description" value="${facet_description}"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2519 <dc:attribute name="ids" value="${facet_num}"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2520 <dc:attribute name="factory" value="winfo"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2521 <dc:attribute name="artifact-id" value="${a_gid}"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2522 <dc:attribute name="out" value="floodmap"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2523 </dc:element>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2524 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2525 </own-hws>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2526 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2527 </dc:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2528 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2529 </dc:macro>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2530
5549
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2531 <dc:macro name="bedquality-bed">
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2532 <bed_quality_bed>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2533 <dc:for-each>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2534 <dc:context>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2535 <dc:call-macro name="range-filter">
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2536 <dc:context>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2537 <dc:statement>
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2538 SELECT id AS oid
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2539 FROM outs AS o
5549
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2540 WHERE
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2541 o.artifact_id = ${a_id} AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2542 o.name='bed_longitudinal_section'
5549
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2543 </dc:statement>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2544 <dc:for-each>
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2545 <quality-bed description="{$river} {$a_creation} {$collection_name}">
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2546 <dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2547 <dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2548 SELECT a.gid AS aid,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2549 f.id AS fid,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2550 f.name AS facet_name,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2551 f.num AS facet_num,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2552 f.description AS facet_description
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2553 FROM outs AS o, facets AS f, artifacts AS a
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2554 WHERE
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2555 (f.name = 'bed_longitudinal_section.bed_diameter_toplayer'
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2556 OR f.name = 'bed_longitudinal_section.bed_diameter_sublayer') AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2557 f.out_id = o.id AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2558 o.artifact_id = ${a_id} AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2559 a.id = ${a_id}
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2560 </dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2561 <dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2562 <dc:element name="${facet_name}">
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2563 <dc:attribute name="factory" value="minfo"/>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2564 <dc:attribute name="description" value="${facet_description}"/>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2565 <dc:attribute name="ids" value="${facet_num}-${facet_name}"/>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2566 <dc:attribute name="artifact-id" value="${aid}"/>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2567 <dc:attribute name="out" value="bed_longitudinal_section"/>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2568 </dc:element>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2569 </dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2570 </dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2571 </quality-bed>
5549
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2572 </dc:for-each>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2573 </dc:context>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2574 </dc:call-macro>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2575 </dc:context>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2576 </dc:for-each>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2577 </bed_quality_bed>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2578 </dc:macro>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2579
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2580 <dc:macro name="bedquality-load">
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2581 <bed_quality_load>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2582 <dc:for-each>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2583 <dc:context>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2584 <dc:call-macro name="range-filter">
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2585 <dc:context>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2586 <dc:statement>
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2587 SELECT id AS oid
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2588 FROM outs AS o
5549
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2589 WHERE
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2590 o.artifact_id = ${a_id} AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2591 o.name='bed_longitudinal_section'
5549
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2592 </dc:statement>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2593 <dc:for-each>
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2594 <quality-load description="{$river} {$a_creation} {$collection_name}">
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2595 <dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2596 <dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2597 SELECT a.gid AS aid,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2598 f.id AS fid,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2599 f.name AS facet_name,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2600 f.num AS facet_num,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2601 f.description AS facet_description
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2602 FROM outs AS o, facets AS f, artifacts AS a
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2603 WHERE
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2604 f.name = 'bed_longitudinal_section.bedload_diameter' AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2605 f.out_id = o.id AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2606 o.artifact_id = ${a_id} AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2607 a.id = ${a_id}
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2608 </dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2609 <dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2610 <dc:element name="${facet_name}">
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2611 <dc:attribute name="factory" value="minfo"/>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2612 <dc:attribute name="description" value="${facet_description}"/>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2613 <dc:attribute name="ids" value="${facet_num}-${facet_name}"/>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2614 <dc:attribute name="artifact-id" value="${aid}"/>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2615 <dc:attribute name="out" value="bed_longitudinal_section"/>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2616 </dc:element>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2617 </dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2618 </dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2619 </quality-load>
5549
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2620 </dc:for-each>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2621 </dc:context>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2622 </dc:call-macro>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2623 </dc:context>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2624 </dc:for-each>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2625 </bed_quality_load>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2626 </dc:macro>
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2627
5591
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2628 <dc:macro name="bedquality-density">
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2629 <bed_quality_density>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2630 <dc:for-each>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2631 <dc:context>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2632 <dc:call-macro name="range-filter">
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2633 <dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2634 <dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2635 SELECT id AS oid
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2636 FROM outs AS o
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2637 WHERE
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2638 o.artifact_id = ${a_id} AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2639 o.name='bed_longitudinal_section'
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2640 </dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2641 <dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2642 <density description="{$river} {$a_creation} {$collection_name}">
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2643 <dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2644 <dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2645 SELECT a.gid AS aid,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2646 f.id AS fid,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2647 f.name AS facet_name,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2648 f.num AS facet_num,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2649 f.description AS facet_description
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2650 FROM outs AS o, facets AS f, artifacts AS a
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2651 WHERE
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2652 (f.name = 'bed_longitudinal_section.sediment_density_toplayer' OR
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2653 f.name = 'bed_longitudinal_section.sediment_density_sublayer') AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2654 f.out_id = o.id AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2655 o.artifact_id = ${a_id} AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2656 a.id = ${a_id}
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2657 </dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2658 <dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2659 <dc:element name="${facet_name}">
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2660 <dc:attribute name="factory" value="minfo"/>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2661 <dc:attribute name="description" value="${facet_description}"/>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2662 <dc:attribute name="ids" value="${facet_num}-${facet_name}"/>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2663 <dc:attribute name="artifact-id" value="${aid}"/>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2664 <dc:attribute name="out" value="bed_longitudinal_section"/>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2665 </dc:element>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2666 </dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2667 </dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2668 </density>
5591
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2669 </dc:for-each>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2670 </dc:context>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2671 </dc:call-macro>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2672 </dc:context>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2673 </dc:for-each>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2674 </bed_quality_density>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2675 </dc:macro>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2676
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2677 <dc:macro name="bedquality-porosity">
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2678 <bed_quality_porosity>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2679 <dc:for-each>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2680 <dc:context>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2681 <dc:call-macro name="range-filter">
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2682 <dc:context>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2683 <dc:statement>
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2684 SELECT id AS oid
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2685 FROM outs AS o
5591
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2686 WHERE
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2687 o.artifact_id = ${a_id} AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2688 o.name='bed_longitudinal_section'
5591
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2689 </dc:statement>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2690 <dc:for-each>
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2691 <porosity description="{$river} {$a_creation} {$collection_name}">
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2692 <dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2693 <dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2694 SELECT a.gid AS aid,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2695 f.id AS fid,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2696 f.name AS facet_name,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2697 f.num AS facet_num,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2698 f.description AS facet_description
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2699 FROM outs AS o, facets AS f, artifacts AS a
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2700 WHERE
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2701 (f.name = 'bed_longitudinal_section.porosity_toplayer' OR
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2702 f.name = 'bed_longitudinal_section.porosity_sublayer') AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2703 f.out_id = o.id AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2704 o.artifact_id = ${a_id} AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2705 a.id = ${a_id}
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2706 </dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2707 <dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2708 <dc:element name="${facet_name}">
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2709 <dc:attribute name="factory" value="minfo"/>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2710 <dc:attribute name="description" value="${facet_description}"/>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2711 <dc:attribute name="ids" value="${facet_num}-${facet_name}"/>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2712 <dc:attribute name="artifact-id" value="${aid}"/>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2713 <dc:attribute name="out" value="bed_longitudinal_section"/>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2714 </dc:element>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2715 </dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2716 </dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2717 </porosity>
5591
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2718 </dc:for-each>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2719 </dc:context>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2720 </dc:call-macro>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2721 </dc:context>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2722 </dc:for-each>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2723 </bed_quality_porosity>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2724 </dc:macro>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2725
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2726 <dc:macro name="flow-velocity">
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2727 <flow-velocity>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2728 <dc:for-each>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2729 <dc:context>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2730 <dc:call-macro name="range-filter">
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2731 <dc:context>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2732 <dc:statement>
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2733 SELECT id AS oid
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2734 FROM outs AS o
5591
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2735 WHERE
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2736 o.artifact_id = ${a_id} and o.name='flow_velocity'
5591
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2737 </dc:statement>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2738 <dc:for-each>
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2739 <flow description="{$river} {$a_creation} {$collection_name}">
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2740 <dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2741 <dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2742 SELECT a.gid AS aid,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2743 f.id AS fid,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2744 f.name AS facet_name,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2745 f.num AS facet_num,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2746 f.description AS facet_description
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2747 FROM outs AS o, facets AS f, artifacts AS a
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2748 WHERE
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2749 (f.name = 'flow_velocity.totalchannel' OR
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2750 f.name = 'flow_velocity.mainchannel' OR
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2751 f.name = 'flow_velocity.totalchannel.filtered' OR
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2752 f.name = 'flow_velocity.mainchannel.filtered') AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2753 f.out_id = o.id AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2754 o.artifact_id = ${a_id} AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2755 a.id = ${a_id}
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2756 </dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2757 <dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2758 <dc:element name="${facet_name}">
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2759 <dc:attribute name="factory" value="minfo"/>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2760 <dc:attribute name="description" value="${facet_description}"/>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2761 <dc:attribute name="ids" value="${facet_num}-${facet_name}"/>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2762 <dc:attribute name="artifact-id" value="${aid}"/>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2763 <dc:attribute name="out" value="flow_velocity"/>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2764 </dc:element>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2765 </dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2766 </dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2767 </flow>
5591
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2768 </dc:for-each>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2769 </dc:context>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2770 </dc:call-macro>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2771 </dc:context>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2772 </dc:for-each>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2773 </flow-velocity>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2774 </dc:macro>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2775
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2776 <dc:macro name="sediment-load">
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2777 <sediment-load>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2778 <dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2779 <dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2780 <dc:call-macro name="range-filter">
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2781 <dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2782 <dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2783 SELECT id AS oid
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2784 FROM outs AS o
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2785 WHERE
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2786 o.artifact_id = ${a_id} and o.name='sedimentload_ls'
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2787 </dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2788 <dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2789 <load description="{$river} {$a_creation} {$collection_name}">
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2790 <dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2791 <dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2792 SELECT a.gid AS aid,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2793 f.id AS fid,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2794 f.name AS facet_name,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2795 f.num AS facet_num,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2796 f.description AS facet_description
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2797 FROM outs AS o, facets AS f, artifacts AS a
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2798 WHERE f.name LIKE 'sedimentload%' AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2799 f.out_id = o.id AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2800 o.artifact_id = ${a_id} AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2801 a.id = ${a_id}
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2802 </dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2803 <dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2804 <dc:element name="${facet_name}">
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2805 <dc:attribute name="factory" value="minfo"/>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2806 <dc:attribute name="description" value="${facet_description}"/>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2807 <dc:attribute name="ids" value="${facet_num}-${facet_name}"/>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2808 <dc:attribute name="artifact-id" value="${aid}"/>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2809 <dc:attribute name="out" value="sedimentload_ls"/>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2810 </dc:element>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2811 </dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2812 </dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2813 </load>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2814 </dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2815 </dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2816 </dc:call-macro>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2817 </dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2818 </dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2819 </sediment-load>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2820 </dc:macro>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2821
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2822 <dc:macro name="bedheight-differences">
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2823 <bedheight-differences>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2824 <dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2825 <dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2826 <dc:call-macro name="range-filter">
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2827 <dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2828 <dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2829 SELECT id AS oid,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2830 name AS o_name
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2831 FROM outs AS o
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2832 WHERE
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2833 o.artifact_id = ${a_id} AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2834 (o.name = 'bed_difference_year' OR
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2835 o.name = 'bed_differnece_epoch')
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2836 </dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2837 <dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2838 <difference description="{$river} {$a_creation} {$collection_name}">
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2839 <dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2840 <dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2841 SELECT a.gid AS aid,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2842 f.id AS fid,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2843 f.name AS facet_name,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2844 f.num AS facet_num,
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2845 f.description AS facet_description
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2846 FROM outs AS o, facets AS f, artifacts AS a
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2847 WHERE (f.name LIKE 'bedheight_difference.year%' OR
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2848 f.name LIKE 'bedheight_difference.epoch%') AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2849 f.out_id = o.id AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2850 o.artifact_id = ${a_id} AND
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2851 a.id = ${a_id}
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2852 </dc:statement>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2853 <dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2854 <dc:element name="${facet_name}">
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2855 <dc:attribute name="factory" value="minfo"/>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2856 <dc:attribute name="description" value="${facet_description}"/>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2857 <dc:attribute name="ids" value="${facet_num}-${facet_name}"/>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2858 <dc:attribute name="artifact-id" value="${aid}"/>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2859 <dc:choose>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2860 <dc:when test="dc:contains($o_name, 'bed_difference_year')">
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2861 <dc:attribute name="out" value="bed_difference_year"/>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2862 </dc:when>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2863 <dc:otherwise>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2864 <dc:attribute name="out" value="bed_difference_epoch"/>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2865 </dc:otherwise>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2866 </dc:choose>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2867 </dc:element>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2868 </dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2869 </dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2870 </difference>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2871 </dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2872 </dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2873 </dc:call-macro>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2874 </dc:context>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2875 </dc:for-each>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2876 </bedheight-differences>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2877 </dc:macro>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2878
5669
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2879 <dc:macro name="fixings-year">
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2880 <fixings>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2881 <dc:for-each>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2882 <dc:context>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2883 <dc:call-macro name="range-filter">
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2884 <dc:context>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2885 <dc:statement>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2886 SELECT ou.id AS oid
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2887 FROM outs AS ou, artifacts AS ar
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2888 WHERE
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2889 ar.state = 'state.fix.vollmer.compute' AND
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2890 ou.name = 'longitudinal_section'
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2891 </dc:statement>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2892 <dc:for-each>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2893 <fix description="{$river} {$a_id} {$a_creation} {$collection_name}">
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2894 <dc:context>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2895 <dc:statement>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2896 SELECT a.gid AS aid,
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2897 f.id AS fid,
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2898 f.name AS facet_name,
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2899 f.num AS facet_num,
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2900 f.description AS facet_description
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2901 FROM outs AS o, facets AS f, artifacts AS a
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2902 WHERE f.name = 'longitudinal_section.w' AND
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2903 f.out_id = o.id AND
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2904 o.artifact_id = ${a_id} AND
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2905 a.id = ${a_id}
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2906 </dc:statement>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2907 <dc:for-each>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2908 <dc:element name="${facet_name}">
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2909 <dc:attribute name="factory" value="fixanalysis"/>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2910 <dc:attribute name="description" value="${facet_description}"/>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2911 <dc:attribute name="ids" value="${facet_num}-${facet_name}"/>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2912 <dc:attribute name="artifact-id" value="${aid}"/>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2913 <dc:attribute name="out" value="longitudinal_section"/>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2914 </dc:element>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2915 </dc:for-each>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2916 </dc:context>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2917 </fix>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2918 </dc:for-each>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2919 </dc:context>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2920 </dc:call-macro>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2921 </dc:context>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2922 </dc:for-each>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2923 </fixings>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2924 </dc:macro>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2925
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2926 <dc:macro name="waterlevels-discharge">
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2927 <waterlevels-discharge>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2928 <dc:for-each>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2929 <dc:context>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2930 <dc:call-macro name="range-filter">
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2931 <dc:context>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2932 <dc:statement>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2933 SELECT id AS oid
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2934 FROM outs AS o
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2935 WHERE
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2936 o.artifact_id = ${a_id} AND
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2937 o.name = 'discharge_longitudinal_section'
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2938 </dc:statement>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2939 <dc:for-each>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2940 <discharge description="{$oid} {$river} {$a_id} {$a_creation} {$collection_name}">
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2941 <dc:context>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2942 <dc:statement>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2943 SELECT a.gid AS aid,
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2944 f.id AS fid,
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2945 f.name AS facet_name,
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2946 f.num AS facet_num,
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2947 f.description AS facet_description
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2948 FROM outs AS o, facets AS f, artifacts AS a
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2949 WHERE f.name = 'discharge_longitudinal_section.w' AND
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2950 f.out_id = o.id AND
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2951 o.artifact_id = ${a_id} AND
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2952 a.id = ${a_id}
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2953 </dc:statement>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2954 <dc:for-each>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2955 <dc:element name="${facet_name}">
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2956 <dc:attribute name="factory" value="winfo"/>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2957 <dc:attribute name="description" value="${facet_description}"/>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2958 <dc:attribute name="ids" value="${facet_num}-${facet_name}"/>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2959 <dc:attribute name="artifact-id" value="${aid}"/>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2960 <dc:attribute name="out" value="longitudinal_section"/>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2961 </dc:element>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2962 </dc:for-each>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2963 </dc:context>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2964 </discharge>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2965 </dc:for-each>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2966 </dc:context>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2967 </dc:call-macro>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2968 </dc:context>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2969 </dc:for-each>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2970 </waterlevels-discharge>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
2971 </dc:macro>
5549
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2972
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2973 <dc:if test="dc:contains($artifact-outs, 'longitudinal_section') or (dc:contains($artifact-outs, 'discharge_longitudinal_section') or (dc:contains($artifact-outs, 'w_differences')))">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2974 <dc:call-macro name="longitudinal"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2975 </dc:if>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2976 <dc:if test="dc:contains($artifact-outs, 'fix_deltawt_curve')">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2977 <dc:call-macro name="delta-wt"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2978 </dc:if>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2979 <dc:if test="dc:contains($artifact-outs, 'longitudinal_section') or (dc:contains($artifact-outs, 'w_differences') or (dc:contains($artifact-outs, 'discharge_longitudinal_section')))">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2980 <dc:call-macro name="differences"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2981 </dc:if>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2982 <dc:if test="dc:contains($artifact-outs, 'reference_curve')">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2983 <dc:call-macro name="reference-curves"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2984 </dc:if>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2985 <dc:if test="dc:contains($artifact-outs, 'computed_discharge_curve')">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2986 <dc:call-macro name="computed-discharge-curve"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2987 </dc:if>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2988 <dc:if test="dc:contains($artifact-outs, 'cross_section')">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2989 <dc:call-macro name="waterlevels"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2990 </dc:if>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2991 <dc:if test="dc:contains($artifact-outs, 'fix_longitudinal_section_curve')">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2992 <dc:call-macro name="longitudinal-section"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2993 </dc:if>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2994 <dc:if test="dc:contains($artifact-outs, 'fix_derivate_curve')">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2995 <dc:call-macro name="fix-derivate-curve"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2996 </dc:if>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2997 <dc:if test="dc:contains($artifact-outs, 'fix_wq_curve')">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2998 <dc:call-macro name="fix-wq-curve"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
2999 </dc:if>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
3000 <dc:if test="dc:contains($artifact-outs, 'duration_curve')">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
3001 <dc:call-macro name="duration-curve"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
3002 </dc:if>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
3003 <dc:if test="dc:contains($artifact-outs, 'waterlevels') or (dc:contains($artifact-outs, 'fix_wq_curve'))">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
3004 <dc:call-macro name="waterlevels-fix"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
3005 </dc:if>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
3006 <dc:if test="dc:contains($artifact-outs, 'floodmap') or dc:contains($artifact-outs, 'map')">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
3007 <dc:call-macro name="flood-map"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
3008 </dc:if>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
3009 <dc:if test="dc:contains($artifact-outs, 'bedheight_middle')">
5669
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3010 <dc:call-macro name="waterlevels-discharge"/>
dc731d2937f9 Added basedata and old calculations to middle bedheight dc and added new macros.
Raimund Renkert <rrenkert@intevation.de>
parents: 5631
diff changeset
3011 <dc:call-macro name="waterlevels-fix"/>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
3012 </dc:if>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
3013 <dc:if test="dc:contains($artifact-outs, 'floodmap-hws')">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
3014 <dc:call-macro name="floodmap-hws-user"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
3015 </dc:if>
5549
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
3016 <dc:if test="dc:contains($artifact-outs, 'flow_velocity')">
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
3017 <dc:call-macro name="bedquality-bed"/>
5591
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
3018 <dc:call-macro name="bedquality-load"/>
5549
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
3019 </dc:if>
5591
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
3020 <dc:if test="dc:contains($artifact-outs, 'bed_longitudinal_section')">
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
3021 <dc:call-macro name="bedquality-bed"/>
5549
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
3022 <dc:call-macro name="bedquality-load"/>
5591
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
3023 <dc:call-macro name="bedquality-density"/>
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
3024 <dc:call-macro name="bedquality-porosity"/>
5549
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
3025 </dc:if>
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3026 <dc:if test="dc:contains($artifact-outs, 'sedimentload_ls')">
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3027 <dc:call-macro name="differences"/>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3028 <dc:call-macro name="bedheight-differences"/>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3029 <dc:call-macro name="flow-velocity"/>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3030 <dc:call-macro name="sediment-load"/>
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
3031 </dc:if>
5682
b536c0e7abd7 Added old calculation and additional data to dc config for bed difference charts.
Raimund Renkert <rrenkert@intevation.de>
parents: 5670
diff changeset
3032 <dc:if test="dc:contains($artifact-outs, 'bed_difference_year') or
b536c0e7abd7 Added old calculation and additional data to dc config for bed difference charts.
Raimund Renkert <rrenkert@intevation.de>
parents: 5670
diff changeset
3033 dc:contains($artifact-outs, 'bed_difference_epoch')">
b536c0e7abd7 Added old calculation and additional data to dc config for bed difference charts.
Raimund Renkert <rrenkert@intevation.de>
parents: 5670
diff changeset
3034 <dc:call-macro name="waterlevels-discharge"/>
b536c0e7abd7 Added old calculation and additional data to dc config for bed difference charts.
Raimund Renkert <rrenkert@intevation.de>
parents: 5670
diff changeset
3035 <dc:call-macro name="bedheight-differences"/>
b536c0e7abd7 Added old calculation and additional data to dc config for bed difference charts.
Raimund Renkert <rrenkert@intevation.de>
parents: 5670
diff changeset
3036 <dc:call-macro name="differences"/>
b536c0e7abd7 Added old calculation and additional data to dc config for bed difference charts.
Raimund Renkert <rrenkert@intevation.de>
parents: 5670
diff changeset
3037 <dc:call-macro name="waterlevels-fix"/>
5758
c59ba0eade8e Added new macro for deltaW ls and removed the old one. Use the new macro in bed
Raimund Renkert <rrenkert@intevation.de>
parents: 5746
diff changeset
3038 <dc:call-macro name="delta-wt-ls"/>
5682
b536c0e7abd7 Added old calculation and additional data to dc config for bed difference charts.
Raimund Renkert <rrenkert@intevation.de>
parents: 5670
diff changeset
3039 </dc:if>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
3040 </dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
3041 </dc:call-macro>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
3042
1046
0a5eff5511b1 Fixed flys/issue262: Unified user and system datacage template
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
3043 </old_calculations>
1657
91d038c7aae5 Bugfix: #328 Improved datacage configuration and labels for selected waterlevels.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 1186
diff changeset
3044
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
3045 <dc:if test="dc:contains($parameters,'load-system')">
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
3046 <dc:comment>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
3047 Include System specific part when 'load-system' is in parameters.
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
3048 -----------------------------------------------------------------
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
3049 </dc:comment>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
3050 <dc:call-macro name="load-system"/>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
3051 </dc:if>
1046
0a5eff5511b1 Fixed flys/issue262: Unified user and system datacage template
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
3052 </dc:when>
1657
91d038c7aae5 Bugfix: #328 Improved datacage configuration and labels for selected waterlevels.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 1186
diff changeset
3053
1046
0a5eff5511b1 Fixed flys/issue262: Unified user and system datacage template
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
3054 <dc:otherwise>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
3055 <dc:comment>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
3056 Include System specific part only if no user ID is given.
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
3057 ---------------------------------------------------------
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
3058 </dc:comment>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
3059 <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
3060 </dc:otherwise>
0a5eff5511b1 Fixed flys/issue262: Unified user and system datacage template
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
3061 </dc:choose>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
3062
1046
0a5eff5511b1 Fixed flys/issue262: Unified user and system datacage template
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
3063 </datacage>
0a5eff5511b1 Fixed flys/issue262: Unified user and system datacage template
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
3064 </dc:template>

http://dive4elements.wald.intevation.org