annotate artifacts/doc/conf/meta-data.xml @ 6111:6815714c1f97

Commit changes described in r6110
author Andre Heinecke <aheinecke@intevation.de>
date Mon, 27 May 2013 15:40:42 +0200
parents 5ba28b563614
children 06cb01e8aef3
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">
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
3 <datacage>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
4
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
5 <dc:comment>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
6 User specific part
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
7 ------------------
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
8 </dc:comment>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
9 <dc:if test="dc:contains($parameters, 'user-id') and not(dc:contains($artifact-outs, 'floodmap-hws'))">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
10 <dc:call-macro name="load-user"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
11 </dc:if>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
12
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
13 <dc:call-macro name="load-system"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
14
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
15 <dc:macro name="load-system">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
16 <dc:context connection="system">
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
17 <dc:statement>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
18 SELECT id AS river_id, name AS river_name
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
19 FROM rivers
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
20 WHERE lower(name) LIKE lower(${river})
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
21 </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
22 <dc:for-each>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
23 <dc:call-macro name="generate-system-content"/>
5522
eeac800eb4cd Datacage: Rename <dc:elements> to <dc:for-each>. We should have done this much earlier.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5516
diff changeset
24 </dc:for-each>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
25 </dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
26 </dc:macro>
3283
a8ce3263b0a7 Make official lines loadable from dc (by hand) for longitudinal sections.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3219
diff changeset
27
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
28 <dc:macro name="load-user">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
29 <old_calculations>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
30 <dc:call-macro name="generate-user-content"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
31 </old_calculations>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
32 </dc:macro>
4014
e5e1331d0440 Show 'per-type' annotations in longitudinal-section DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3975
diff changeset
33
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
34 <dc:macro name="generate-system-content">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
35 <dc:call-macro name="user-range">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
36 <dc:call-macro name="km-filtered-wsts">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
37 <dc:choose>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
38 <dc:when test="dc:contains($parameters, 'recommended')">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
39 <dc:comment>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
40 Recommendations (client shall load immediately).
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
41 </dc:comment>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
42 <dc:iterate var="out" container="artifact-outs">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
43 <dc:choose>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
44 <dc:when test="$out = 'w_differences'">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
45 <dc:call-macro name="annotations"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
46 </dc:when>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
47 <dc:when test="$out = 'discharge_longitudinal_section'">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
48 <dc:call-macro name="annotations"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
49 </dc:when>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
50 <dc:when test="$out = 'historical_discharge_wq'">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
51 <dc:call-macro name="mainvalues"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
52 </dc:when>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
53 <dc:when test="$out = 'cross_section'">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
54 <dc:call-macro name="cross_sections"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
55 <dc:call-macro name="hyks"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
56 </dc:when>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
57 <dc:when test="$out = 'discharge_curve'">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
58 <dc:call-macro name="mainvalues"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
59 </dc:when>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
60 <dc:when test="$out = 'computed_discharge_curve'">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
61 <dc:call-macro name="mainvalues"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
62 <dc:call-macro name="basedata_2_fixations_wqkms"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
63 </dc:when>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
64 <dc:when test="$out = 'duration_curve'">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
65 <dc:call-macro name="mainvalues"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
66 </dc:when>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
67 <dc:when test="$out = 'reference_curve'">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
68 <dc:call-macro name="annotations"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
69 <dc:call-macro name="mainvalues"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
70 </dc:when>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
71 <dc:when test="$out = 'fix_wq_curve'">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
72 <dc:call-macro name="mainvalues"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
73 <dc:call-macro name="qsectors"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
74 </dc:when>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
75 <dc:when test="$out = 'longitudinal_section'">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
76 <dc:call-macro name="annotations"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
77 </dc:when>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
78 <dc:when test="$out = 'fix_longitudinal_section_curve'">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
79 <dc:call-macro name="annotations"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
80 </dc:when>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
81 <dc:when test="$out = 'bed_difference_epoch'">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
82 <dc:call-macro name="annotations"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
83 </dc:when>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
84 <dc:when test="$out = 'bed_difference_year'">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
85 <dc:call-macro name="annotations"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
86 </dc:when>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
87 <dc:when test="$out = 'bed_difference_height_year'">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
88 <dc:call-macro name="annotations"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
89 </dc:when>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
90 <dc:when test="$out = 'floodmap'">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
91 <dc:call-macro name="flood-map-recommended"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
92 </dc:when>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
93 <dc:when test="$out = 'floodmap-hws'">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
94 <dc:call-macro name="flood-map-recommended"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
95 </dc:when>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
96 <dc:when test="$out = 'minfo-heights'">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
97 <dc:call-macro name="minfo-heights"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
98 </dc:when>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
99 <dc:when test="$out = 'minfo-heights-epoch'">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
100 <bedheights>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
101 <dc:call-macro name="bed-heights-epoch"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
102 </bedheights>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
103 </dc:when>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
104 </dc:choose>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
105 </dc:iterate>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
106 </dc:when>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
107 <dc:otherwise>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
108 <dc:comment>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
109 Non - Recommendations.
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
110 </dc:comment>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
111 <dc:iterate var="out" container="artifact-outs">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
112 <dc:choose>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
113 <dc:when test="$out = 'cross_section'">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
114 <dc:call-macro name="basedata_0"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
115 <dc:call-macro name="basedata_1_additionals"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
116 <dc:call-macro name="basedata_2_fixations"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
117 <dc:call-macro name="basedata_3_officials"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
118 <dc:call-macro name="basedata_4_heightmarks-points"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
119 <dc:call-macro name="cross_sections"/>
6075
b121b865907d issue954/2: Flood- Protections in Cross-Sections Datacage.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 6073
diff changeset
120 <dc:call-macro name="basedata_5_flood-protections"/>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
121 <dc:call-macro name="hyks"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
122 </dc:when>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
123 <dc:when test="$out = 'longitudinal_section'">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
124 <dc:call-macro name="longitudinal-section-prototype"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
125 </dc:when>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
126 <dc:when test="$out = 'w_differences'">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
127 <dc:call-macro name="longitudinal-section-prototype"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
128 </dc:when>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
129 <dc:when test="$out = 'discharge_longitudinal_section'">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
130 <dc:call-macro name="longitudinal-section-prototype"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
131 </dc:when>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
132 <dc:when test="$out = 'discharge_curve'">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
133 <dc:call-macro name="mainvalues"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
134 </dc:when>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
135 <dc:when test="$out = 'duration_curve'">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
136 <dc:call-macro name="mainvalues"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
137 <dc:call-macro name="basedata_2_fixations_relative_point"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
138 <dc:call-macro name="basedata_4_heightmarks-points-relative_points"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
139 <dc:call-macro name="basedata_5_flood-protections_relative_points"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
140 </dc:when>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
141 <dc:when test="$out = 'reference_curve'">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
142 <dc:call-macro name="mainvalues"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
143 <dc:call-macro name="annotations"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
144 <dc:call-macro name="basedata_1_additionals-relative_point"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
145 <dc:call-macro name="basedata_2_fixations_relative_point"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
146 <dc:call-macro name="basedata_4_heightmarks-points-relative_points"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
147 <dc:call-macro name="basedata_5_flood-protections_relative_points"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
148 </dc:when>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
149 <dc:when test="$out = 'fix_wq_curve'">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
150 <dc:call-macro name="basedata_0_wq"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
151 <dc:call-macro name="basedata_1_additionals_marks"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
152 <dc:call-macro name="basedata_2_fixations_wqkms"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
153 <dc:call-macro name="basedata_3_officials"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
154 <dc:call-macro name="basedata_4_heightmarks-points"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
155 <dc:call-macro name="basedata_5_flood-protections_relative_points"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
156 <dc:call-macro name="discharge_table_gauge"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
157 <dc:call-macro name="discharge_fix_wq"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
158 </dc:when>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
159 <dc:when test="$out = 'fix_longitudinal_section_curve'">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
160 <dc:call-macro name="annotations"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
161 </dc:when>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
162 <dc:when test="$out = 'map'">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
163 <dc:call-macro name="flood-map-complete"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
164 </dc:when>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
165 <dc:when test="$out = 'flow_velocity'">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
166 <dc:call-macro name="annotations_per_type"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
167 <dc:call-macro name="flow_velocity_measurements"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
168 </dc:when>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
169 <dc:when test="$out = 'bed_longitudinal_section'">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
170 <dc:call-macro name="annotations_per_type"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
171 </dc:when>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
172 <dc:when test="$out = 'sedimentload_ls'">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
173 <dc:call-macro name="annotations_per_type"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
174 <dc:call-macro name="morph_width"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
175 </dc:when>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
176 <dc:when test="$out = 'bedheight_middle'">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
177 <dc:call-macro name="sounding-width"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
178 <dc:call-macro name="basedata_0"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
179 <dc:call-macro name="basedata_1_additionals"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
180 <dc:call-macro name="basedata_2_fixations"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
181 <dc:call-macro name="basedata_3_officials"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
182 <dc:call-macro name="annotations_per_type"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
183 </dc:when>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
184 <dc:when test="$out = 'bed_difference_year'">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
185 <dc:call-macro name="basedata_0"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
186 <dc:call-macro name="basedata_1_additionals"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
187 <dc:call-macro name="basedata_2_fixations"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
188 <dc:call-macro name="basedata_3_officials"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
189 <dc:call-macro name="annotations_per_type"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
190 <dc:call-macro name="morph_width"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
191 </dc:when>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
192 <dc:when test="$out = 'bed_difference_epoch'">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
193 <dc:call-macro name="basedata_0"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
194 <dc:call-macro name="basedata_1_additionals"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
195 <dc:call-macro name="basedata_2_fixations"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
196 <dc:call-macro name="basedata_3_officials"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
197 <dc:call-macro name="annotations_per_type"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
198 <dc:call-macro name="morph_width"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
199 </dc:when>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
200 <dc:when test="$out = 'floodmap'">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
201 <dc:choose>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
202 <dc:when test="dc:contains($parameters, 'dem')">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
203 <dc:call-macro name="flood-map-dem"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
204 </dc:when>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
205 <dc:when test="dc:contains($parameters, 'hws')">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
206 <hws>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
207 <dc:call-macro name="flood-map-hws-lines"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
208 <dc:call-macro name="flood-map-hws-points"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
209 </hws>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
210 </dc:when>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
211 <dc:otherwise>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
212 <dc:call-macro name="flood-map-complete"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
213 </dc:otherwise>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
214 </dc:choose>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
215 </dc:when>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
216 <dc:when test="$out = 'floodmap-hws'">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
217 <dc:choose>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
218 <dc:when test="dc:contains($parameters, 'dem')">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
219 <dc:call-macro name="flood-map-dem"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
220 </dc:when>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
221 <dc:when test="dc:contains($parameters, 'hws')">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
222 <hws>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
223 <dc:call-macro name="flood-map-hws-lines"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
224 <dc:call-macro name="flood-map-hws-points"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
225 </hws>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
226 </dc:when>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
227 <dc:otherwise>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
228 <dc:call-macro name="flood-map-complete"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
229 </dc:otherwise>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
230 </dc:choose>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
231 </dc:when>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
232 <dc:when test="$out = 'computed_discharge_curve'">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
233 <dc:call-macro name="discharge_computed"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
234 <dc:call-macro name="basedata_2_fixations_wqkms"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
235 <dc:call-macro name="basedata_5_flood-protections"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
236 <dc:call-macro name="basedata_0"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
237 <dc:call-macro name="basedata_1_additionals"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
238 <dc:call-macro name="basedata_4_heightmarks-points"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
239 <computed_discharge_curve>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
240 <dc:call-macro name="mainvalues"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
241 </computed_discharge_curve>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
242 </dc:when>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
243 <dc:when test="$out = 'minfo-heights'">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
244 <dc:call-macro name="minfo-heights"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
245 <dc:macro name="minfo-heights">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
246 <bedheights>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
247 <dc:call-macro name="bed-heights-single"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
248 <dc:call-macro name="bed-heights-epoch"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
249 </bedheights>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
250 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
251 </dc:when>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
252 <dc:when test="$out = 'minfo-heights-epoch'">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
253 <bedheights>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
254 <dc:call-macro name="bed-heights-epoch"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
255 </bedheights>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
256 </dc:when>
6081
cdd9759b15b6 Fix old calculations datacage parts.
Andre Heinecke <aheinecke@intevation.de>
parents: 6075
diff changeset
257 <dc:when test="$out = 'waterlevels'">
6099
96b5066ab55e Datacage: Another variable access fix.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 6098
diff changeset
258 <dc:if test="$current-state-id != 'state.winfo.uesk.wsp'">
6081
cdd9759b15b6 Fix old calculations datacage parts.
Andre Heinecke <aheinecke@intevation.de>
parents: 6075
diff changeset
259 <dc:call-macro name="basedata_0"/>
cdd9759b15b6 Fix old calculations datacage parts.
Andre Heinecke <aheinecke@intevation.de>
parents: 6075
diff changeset
260 <dc:call-macro name="basedata_1_additionals"/>
cdd9759b15b6 Fix old calculations datacage parts.
Andre Heinecke <aheinecke@intevation.de>
parents: 6075
diff changeset
261 <dc:call-macro name="basedata_2_fixations"/>
cdd9759b15b6 Fix old calculations datacage parts.
Andre Heinecke <aheinecke@intevation.de>
parents: 6075
diff changeset
262 <dc:call-macro name="basedata_4_heightmarks-points"/>
cdd9759b15b6 Fix old calculations datacage parts.
Andre Heinecke <aheinecke@intevation.de>
parents: 6075
diff changeset
263 <dc:call-macro name="basedata_5_flood-protections"/>
cdd9759b15b6 Fix old calculations datacage parts.
Andre Heinecke <aheinecke@intevation.de>
parents: 6075
diff changeset
264 </dc:if>
cdd9759b15b6 Fix old calculations datacage parts.
Andre Heinecke <aheinecke@intevation.de>
parents: 6075
diff changeset
265 </dc:when>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
266 </dc:choose>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
267 </dc:iterate>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
268 </dc:otherwise>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
269 </dc:choose>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
270 </dc:call-macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
271 </dc:call-macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
272 </dc:macro>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
273
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
274 <dc:macro name="generate-user-content">
6072
8320eb8ed8c8 meta-data.xml: Wrap user-content in user-range to use 'range intelligence'.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 6071
diff changeset
275 <dc:call-macro name="user-range">
6095
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
276 <dc:call-macro name="all-user-artifacts">
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
277 <dc:call-macro name="km-filtered-user-artifacts">
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
278 <dc:choose>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
279 <dc:when test="dc:contains($parameters, 'recommended')">
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
280 <dc:comment>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
281 Recommendations (user)
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
282 </dc:comment>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
283 <dc:iterate var="out" container="artifact-outs">
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
284 <dc:choose>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
285 <dc:when test="$out = 'longitudinal_section'">
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
286 <dc:call-macro name="officiallines_user"/>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
287 </dc:when>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
288 </dc:choose>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
289 </dc:iterate>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
290 </dc:when>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
291 <dc:otherwise>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
292 <dc:comment>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
293 Non Recommendations (user)
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
294 </dc:comment>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
295 <dc:iterate var="out" container="artifact-outs">
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
296 <dc:choose>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
297 <dc:when test="$out = 'longitudinal_section'">
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
298 <dc:call-macro name="longitudinal"/>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
299 <dc:call-macro name="differences"/>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
300 </dc:when>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
301 <dc:when test="$out = 'discharge_longitudinal_section'">
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
302 <dc:call-macro name="longitudinal"/>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
303 <dc:call-macro name="differences"/>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
304 </dc:when>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
305 <dc:when test="$out = 'w_differences'">
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
306 <dc:call-macro name="longitudinal"/>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
307 <dc:call-macro name="differences"/>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
308 </dc:when>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
309 <dc:when test="$out = 'fix_deltawt_curve'">
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
310 <dc:call-macro name="delta-wt"/>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
311 </dc:when>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
312 <dc:when test="$out = 'reference_curve'">
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
313 <dc:call-macro name="reference-curves"/>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
314 </dc:when>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
315 <dc:when test="$out = 'computed_discharge_curve'">
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
316 <dc:call-macro name="computed-discharge-curve"/>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
317 </dc:when>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
318 <dc:when test="$out = 'cross_section'">
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
319 <dc:call-macro name="waterlevels"/>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
320 </dc:when>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
321 <dc:when test="$out = 'fix_longitudinal_section_curve'">
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
322 <dc:call-macro name="longitudinal-section"/>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
323 </dc:when>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
324 <dc:when test="$out = 'fix_derivate_curve'">
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
325 <dc:call-macro name="fix-derivate-curve"/>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
326 </dc:when>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
327 <dc:when test="$out = 'fix_wq_curve'">
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
328 <dc:call-macro name="fix-wq-curve"/>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
329 </dc:when>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
330 <dc:when test="$out = 'duration_curve'">
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
331 <dc:call-macro name="duration-curve"/>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
332 </dc:when>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
333 <dc:when test="$out = 'waterlevels'">
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
334 <dc:call-macro name="waterlevels-fix"/>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
335 </dc:when>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
336 <dc:when test="$out = 'fix_wq_curve'">
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
337 <dc:call-macro name="waterlevels-fix"/>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
338 </dc:when>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
339 <dc:when test="$out = 'floodmap'">
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
340 <dc:call-macro name="flood-map"/>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
341 </dc:when>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
342 <dc:when test="$out = 'map'">
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
343 <dc:call-macro name="flood-map"/>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
344 </dc:when>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
345 <dc:when test="$out = 'bedheight_middle'">
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
346 <dc:call-macro name="waterlevels-discharge"/>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
347 <dc:call-macro name="waterlevels-fix"/>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
348 </dc:when>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
349 <dc:when test="$out = 'floodmap-hws'">
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
350 <dc:call-macro name="floodmap-hws-user"/>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
351 </dc:when>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
352 <dc:when test="$out = 'flow_velocity'">
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
353 <dc:call-macro name="bedquality-bed"/>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
354 <dc:call-macro name="bedquality-load"/>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
355 </dc:when>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
356 <dc:when test="$out = 'bed_longitudinal_section'">
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
357 <dc:call-macro name="bedquality-bed"/>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
358 <dc:call-macro name="bedquality-load"/>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
359 <dc:call-macro name="bedquality-density"/>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
360 <dc:call-macro name="bedquality-porosity"/>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
361 </dc:when>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
362 <dc:when test="$out = 'sedimentload_ls'">
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
363 <dc:call-macro name="differences"/>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
364 <dc:call-macro name="bedheight-differences"/>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
365 <dc:call-macro name="flow-velocity"/>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
366 <dc:call-macro name="sediment-load"/>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
367 </dc:when>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
368 <dc:when test="$out = 'bed_difference_year'">
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
369 <dc:call-macro name="waterlevels-discharge"/>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
370 <dc:call-macro name="bedheight-differences"/>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
371 <dc:call-macro name="differences"/>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
372 <dc:call-macro name="waterlevels-fix"/>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
373 <dc:call-macro name="delta-wt-ls"/>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
374 </dc:when>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
375 <dc:when test="$out = 'bed_difference_epoch'">
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
376 <dc:call-macro name="waterlevels-discharge"/>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
377 <dc:call-macro name="bedheight-differences"/>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
378 <dc:call-macro name="differences"/>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
379 <dc:call-macro name="waterlevels-fix"/>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
380 <dc:call-macro name="delta-wt-ls"/>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
381 </dc:when>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
382 </dc:choose>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
383 </dc:iterate>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
384 </dc:otherwise>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
385 </dc:choose>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
386 </dc:call-macro>
6081
cdd9759b15b6 Fix old calculations datacage parts.
Andre Heinecke <aheinecke@intevation.de>
parents: 6075
diff changeset
387 </dc:call-macro>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
388 </dc:call-macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
389 </dc:macro>
4455
06c07cb478a8 meta-data.xml: Add annotations and flow velocity measurements to the DC.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4449
diff changeset
390
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
391 <!-- Macros to load user data -->
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
392
6110
5ba28b563614 Fix datacage for user data by adding facet filtering.
Andre Heinecke <aheinecke@intevation.de>
parents: 6099
diff changeset
393 <dc:macro name="differences">
5ba28b563614 Fix datacage for user data by adding facet filtering.
Andre Heinecke <aheinecke@intevation.de>
parents: 6099
diff changeset
394 <dc:filter expr="$facet_name = 'w_differences'">
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
395 <dc:if test="dc:has-result()">
6110
5ba28b563614 Fix datacage for user data by adding facet filtering.
Andre Heinecke <aheinecke@intevation.de>
parents: 6099
diff changeset
396 <differences>
5ba28b563614 Fix datacage for user data by adding facet filtering.
Andre Heinecke <aheinecke@intevation.de>
parents: 6099
diff changeset
397 <dc:for-each>
5ba28b563614 Fix datacage for user data by adding facet filtering.
Andre Heinecke <aheinecke@intevation.de>
parents: 6099
diff changeset
398 <w_differences
5ba28b563614 Fix datacage for user data by adding facet filtering.
Andre Heinecke <aheinecke@intevation.de>
parents: 6099
diff changeset
399 description="{$facet_description}"
5ba28b563614 Fix datacage for user data by adding facet filtering.
Andre Heinecke <aheinecke@intevation.de>
parents: 6099
diff changeset
400 factory="winfo"
5ba28b563614 Fix datacage for user data by adding facet filtering.
Andre Heinecke <aheinecke@intevation.de>
parents: 6099
diff changeset
401 artifact-id="{$aid}"
5ba28b563614 Fix datacage for user data by adding facet filtering.
Andre Heinecke <aheinecke@intevation.de>
parents: 6099
diff changeset
402 ids="{$aid}"
5ba28b563614 Fix datacage for user data by adding facet filtering.
Andre Heinecke <aheinecke@intevation.de>
parents: 6099
diff changeset
403 out="w_differences"/>
5ba28b563614 Fix datacage for user data by adding facet filtering.
Andre Heinecke <aheinecke@intevation.de>
parents: 6099
diff changeset
404 </dc:for-each>
5ba28b563614 Fix datacage for user data by adding facet filtering.
Andre Heinecke <aheinecke@intevation.de>
parents: 6099
diff changeset
405 </differences>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
406 </dc:if>
6110
5ba28b563614 Fix datacage for user data by adding facet filtering.
Andre Heinecke <aheinecke@intevation.de>
parents: 6099
diff changeset
407 </dc:filter>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
408 </dc:macro>
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
409
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
410 <dc:macro name="reference-curves">
6111
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
411 <dc:filter expr="$facet_name = 'reference_curve'">
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
412 <dc:if test="dc:has-result()">
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
413 <reference_curves>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
414 <dc:for-each>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
415 <dc:element name="${facet_name}">
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
416 <dc:attribute name="description" value="${facet_description}"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
417 <dc:attribute name="factory" value="winfo"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
418 <dc:attribute name="artifact-id" value="${a_id}"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
419 <dc:attribute name="ids" value="${a_id}"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
420 <dc:attribute name="out" value="reference_curve"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
421 </dc:element>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
422 </dc:for-each>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
423 </reference_curves>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
424 </dc:if>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
425 </dc:filter>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
426 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
427
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
428 <dc:macro name="computed-discharge-curve">
6111
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
429 <dc:filter expr="$facet_name = 'computed_discharge_curve.q'">
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
430 <dc:if test="dc:has-result()">
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
431 <computed_discharge_curves>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
432 <dc:for-each>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
433 <dc:element name="${facet_name}">
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
434 <dc:attribute name="description" value="${facet_description}"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
435 <dc:attribute name="factory" value="winfo"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
436 <dc:attribute name="artifact-id" value="${a_id}"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
437 <dc:attribute name="ids" value="${a_id}"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
438 <dc:attribute name="out" value="computed_discharge_curve"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
439 </dc:element>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
440 </dc:for-each>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
441 </computed_discharge_curves>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
442 </dc:if>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
443 </dc:filter>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
444 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
445
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
446 <dc:macro name="flood-map">
6111
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
447 <dc:filter expr="$facet_name = 'floodmap.wsplgen'">
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
448 <dc:if test="dc:has-result()">
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
449 <floodmap>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
450 <dc:for-each>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
451 <dc:element name="${facet_name}">
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
452 <dc:attribute name="description" value="${facet_description}"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
453 <dc:attribute name="factory" value="winfo"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
454 <dc:attribute name="artifact-id" value="${a_id}"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
455 <dc:attribute name="ids" value="${a_id}"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
456 <dc:attribute name="out" value="floodmap"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
457 </dc:element>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
458 </dc:for-each>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
459 </floodmap>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
460 </dc:if>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
461 </dc:filter>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
462 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
463
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
464 <dc:macro name="waterlevels">
6095
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
465 <dc:filter expr="$out_name = 'cross_section'">
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
466 <dc:if test="dc:has-result()">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
467 <waterlevels>
6111
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
468 <dc:group expr="concat($river, ' ', $a_creation)">
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
469 <dc:comment>Aheinecke: Why is this grouping different from the rest?</dc:comment>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
470 <longitudinal_section_columns description="{dc:group-key()}">
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
471 <dc:for-each>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
472 <dc:element name="${facet_name}">
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
473 <dc:attribute name="description" value="${facet_description}"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
474 <dc:attribute name="ids" value="${facet_num}"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
475 <dc:attribute name="factory" value="winfo"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
476 <dc:attribute name="artifact-id" value="${a_gid}"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
477 <dc:attribute name="out" value="cross_section"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
478 </dc:element>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
479 </dc:for-each>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
480 </longitudinal_section_columns>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
481 </dc:group>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
482 </waterlevels>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
483 </dc:if>
6095
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
484 </dc:filter>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
485 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
486
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
487 <dc:macro name="longitudinal">
6095
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
488 <dc:filter expr="$out_name = 'longitudinal_section'">
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
489 <dc:if test="dc:has-result()">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
490 <waterlevels>
6111
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
491 <dc:group expr="$river $a_creation">
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
492 <dc:comment>Aheinecke: Why is this grouping different from the rest?</dc:comment>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
493 <longitudinal_section_columns description="{dc:group-key()}">
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
494 <dc:for-each>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
495 <dc:element name="${facet_name}">
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
496 <dc:attribute name="description" value="${facet_description}"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
497 <dc:attribute name="ids" value="${facet_num}"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
498 <dc:attribute name="factory" value="winfo"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
499 <dc:attribute name="artifact-id" value="${a_gid}"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
500 <dc:attribute name="out" value="longitudinal_section"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
501 </dc:element>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
502 </dc:for-each>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
503 </longitudinal_section_columns>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
504 </dc:group>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
505 </waterlevels>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
506 </dc:if>
6095
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
507 </dc:filter>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
508 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
509
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
510 <dc:macro name="longitudinal-section">
6111
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
511 <dc:filter expr="$out_name = 'fix_longitudinal_section_curve' and
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
512 (starts-with($facet_name, 'fix_deviation_ls') or
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
513 starts-with($facet_name, 'fix_sector_average_ls') or
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
514 starts-with($facet_name, 'fix_analysis_events_ls') or
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
515 starts-with($facet_name, 'fix_reference_events_ls'))">
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
516 <dc:if test="dc:has-result()">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
517 <waterlevels>
6111
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
518 <dc:group expr="concat($river, ' ', $a_creation, ' ', $collection_name)">
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
519 <waterlevels description="{dc:group-key()}">
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
520 <dc:for-each>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
521 <dc:element name="${facet_name}">
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
522 <dc:attribute name="description" value="${facet_description}"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
523 <dc:attribute name="ids" value="${facet_num}"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
524 <dc:attribute name="factory" value="fixanalysis"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
525 <dc:attribute name="artifact-id" value="${a_gid}"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
526 <dc:attribute name="out" value="fix_longitudinal_section_curve"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
527 </dc:element>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
528 </dc:for-each>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
529 </waterlevels>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
530 </dc:group>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
531 </waterlevels>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
532 </dc:if>
6095
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
533 </dc:filter>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
534 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
535
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
536 <dc:macro name="delta-wt">
6111
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
537 <dc:filter expr="$out_name = 'fix_deltawt_curve' and
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
538 ($facet_name = 'fix_analysis_events_dwt' or
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
539 $facet_name = 'fix_analysis_periods_dwt' or
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
540 $facet_name = 'fix_reference_events_dwt' or
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
541 starts-with($facet_name, 'fix_deviation_dwt') or
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
542 starts-with($facet_name, 'fix_sector_average_dwt'))">
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
543 <dc:if test="dc:has-result()">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
544 <waterlevels>
6111
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
545 <dc:group expr="concat($river, ' ', $a_creation, ' ', $collection_name)">
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
546 <waterlevels description="{dc:group-key()}">
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
547 <dc:for-each>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
548 <dc:element name="${facet_name}">
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
549 <dc:attribute name="description" value="${facet_description}"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
550 <dc:attribute name="ids" value="${facet_num}"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
551 <dc:attribute name="factory" value="fixanalysis"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
552 <dc:attribute name="artifact-id" value="${a_gid}"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
553 <dc:attribute name="out" value="fix_deltawt_curve"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
554 </dc:element>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
555 </dc:for-each>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
556 </waterlevels>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
557 </dc:group>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
558 </waterlevels>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
559 </dc:if>
6095
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
560 </dc:filter>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
561 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
562
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
563 <dc:macro name="delta-wt-ls">
6111
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
564 <dc:filter expr="$out_name = 'fix_deltawt_curve' and
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
565 (starts-with($facet_name, 'fix_sector_average_dwt') or
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
566 starts-with($facet_name, 'fix_deviation_dwt'))">
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
567 <dc:if test="dc:has-result()">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
568 <waterlevels>
6111
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
569 <dc:group expr="concat($river, ' ', $a_creation, ' ', $collection_name)">
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
570 <waterlevels description="{dc:group-key()}">
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
571 <dc:for-each>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
572 <dc:element name="${facet_name}">
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
573 <dc:attribute name="description" value="${facet_description}"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
574 <dc:attribute name="ids" value="${facet_num}"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
575 <dc:attribute name="factory" value="fixanalysis"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
576 <dc:attribute name="artifact-id" value="${a_gid}"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
577 <dc:attribute name="out" value="fix_deltawt_curve"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
578 </dc:element>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
579 </dc:for-each>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
580 </waterlevels>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
581 </dc:group>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
582 </waterlevels>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
583 </dc:if>
6095
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
584 </dc:filter>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
585 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
586
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
587 <dc:macro name="fix-derivate-curve">
6111
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
588 <dc:filter expr="$out_name = 'fix_derivate_curve' and $facet_name = 'fix_derivate_curve'">
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
589 <dc:if test="dc:has-result()">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
590 <waterlevels>
6111
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
591 <dc:group expr="concat($river, ' ', $a_creation, ' ', $collection_name)">
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
592 <waterlevels description="{dc:group-key()}">
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
593 <dc:for-each>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
594 <dc:element name="${facet_name}">
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
595 <dc:attribute name="description" value="${facet_description}"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
596 <dc:attribute name="ids" value="${facet_num}"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
597 <dc:attribute name="factory" value="fixanalysis"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
598 <dc:attribute name="artifact-id" value="${a_gid}"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
599 <dc:attribute name="out" value="fix_derivate_curve"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
600 </dc:element>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
601 </dc:for-each>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
602 </waterlevels>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
603 </dc:group>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
604 </waterlevels>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
605 </dc:if>
6095
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
606 </dc:filter>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
607 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
608
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
609 <dc:macro name="fix-wq-curve">
6111
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
610 <dc:filter expr="$out_name = 'fix_wq_curve' and
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
611 (starts-with($facet_name, 'fix_analysis_events_wq') or
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
612 starts-with($facet_name, 'fix_reference_events_wq') or
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
613 starts-with($facet_name, 'fix_sector_average_wq') or
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
614 $facet_name = 'fix_wq_curve')">
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
615 <dc:if test="dc:has-result()">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
616 <waterlevels>
6111
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
617 <dc:group expr="concat($river, ' ', $a_creation, ' ', $collection_name)">
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
618 <waterlevels description="{dc:group-key()}">
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
619 <dc:for-each>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
620 <dc:element name="${facet_name}">
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
621 <dc:attribute name="description" value="${facet_description}"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
622 <dc:attribute name="ids" value="${facet_num}"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
623 <dc:attribute name="factory" value="fixanalysis"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
624 <dc:attribute name="artifact-id" value="${a_gid}"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
625 <dc:attribute name="out" value="fix_wq_curve"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
626 </dc:element>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
627 </dc:for-each>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
628 </waterlevels>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
629 </dc:group>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
630 </waterlevels>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
631 </dc:if>
6095
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
632 </dc:filter>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
633 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
634
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
635 <dc:macro name="duration-curve">
6111
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
636 <dc:filter expr="$facet_name = 'duration_curve.q' or $facet_name = 'duration_curve.w'">
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
637 <dc:if test="dc:has-result()">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
638 <computed_discharge_curves>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
639 <dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
640 <dc:element name="${facet_name}">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
641 <dc:attribute name="description" value="${facet_description}"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
642 <dc:attribute name="factory" value="winfo"/>
6111
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
643 <dc:attribute name="artifact-id" value="${a_id}"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
644 <dc:attribute name="ids" value="${a_id}"/>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
645 <dc:attribute name="out" value="duration_curve"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
646 </dc:element>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
647 </dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
648 </computed_discharge_curves>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
649 </dc:if>
6111
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
650 </dc:filter>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
651 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
652
6111
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
653 <dc:comment>TODO doesnt work nicely for fix/wq-diags. Aheinecke (27.5.2013): Why?</dc:comment>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
654 <dc:macro name="waterlevels-fix">
6111
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
655 <dc:filter expr="$out_name = 'longitudinal_section' and $facet_name = 'longitudinal_section.w'">
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
656 <dc:if test="dc:has-result()">
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
657 <waterlevels>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
658 <dc:group expr="concat($river, ' ', $a_creation, ' ', $collection_name)">
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
659 <waterlevels description="{dc:group-key()}">
6095
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
660 <dc:for-each>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
661 <dc:element name="${facet_name}">
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
662 <dc:attribute name="description" value="${facet_description}"/>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
663 <dc:attribute name="ids" value="${facet_num}"/>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
664 <dc:attribute name="factory" value="winfo"/>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
665 <dc:attribute name="artifact-id" value="${a_gid}"/>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
666 <dc:attribute name="out" value="longitudinal_section"/>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
667 </dc:element>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
668 </dc:for-each>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
669 </waterlevels>
6111
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
670 </dc:group>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
671 </waterlevels>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
672 </dc:if>
6095
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
673 </dc:filter>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
674 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
675
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
676 <dc:macro name="floodmap-hws-user">
6111
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
677 <dc:comment>No grouping in this?</dc:comment>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
678 <dc:filter expr="$out_name = 'floodmap' and $facet_name = 'floodmap.usershape'">
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
679 <own-hws>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
680 <dc:for-each>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
681 <dc:element name="${facet_name}">
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
682 <dc:attribute name="description" value="${facet_description}"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
683 <dc:attribute name="ids" value="${facet_num}"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
684 <dc:attribute name="factory" value="winfo"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
685 <dc:attribute name="artifact-id" value="${a_gid}"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
686 <dc:attribute name="out" value="floodmap"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
687 </dc:element>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
688 </dc:for-each>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
689 </own-hws>
6095
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
690 </dc:filter>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
691 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
692
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
693 <dc:macro name="bedquality-bed">
6111
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
694 <dc:filter expr="$out_name = 'bed_longitudinal_section' and
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
695 ($facet_name = 'bed_longitudinal_section.bed_diameter_toplayer' or
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
696 $facet_name = 'bed_longitudinal_section.bed_diameter_sublayer')">
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
697 <dc:if test="dc:has-result()">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
698 <bed_quality_bed>
6111
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
699 <dc:group expr="concat($river, ' ', $a_creation, ' ', $collection_name)">
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
700 <quality-bed description="{dc:group-key()}">
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
701 <dc:for-each>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
702 <dc:element name="${facet_name}">
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
703 <dc:attribute name="factory" value="minfo"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
704 <dc:attribute name="description" value="${facet_description}"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
705 <dc:attribute name="ids" value="${facet_num}-${facet_name}"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
706 <dc:attribute name="artifact-id" value="${a_id}"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
707 <dc:attribute name="out" value="bed_longitudinal_section"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
708 </dc:element>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
709 </dc:for-each>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
710 </quality-bed>
6111
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
711 </dc:group>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
712 </bed_quality_bed>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
713 </dc:if>
6095
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
714 </dc:filter>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
715 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
716
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
717 <dc:macro name="bedquality-load">
6111
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
718 <dc:filter expr="$out_name = 'bed_longitudinal_section' and
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
719 $facet_name = 'bed_longitudinal_section.bedload_diameter'">
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
720 <dc:if test="dc:has-result()">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
721 <bed_quality_load>
6111
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
722 <dc:group expr="concat($river, ' ', $a_creation, ' ', $collection_name)">
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
723 <quality-load description="{dc:group-key()}">
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
724 <dc:for-each>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
725 <dc:element name="${facet_name}">
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
726 <dc:attribute name="factory" value="minfo"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
727 <dc:attribute name="description" value="${facet_description}"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
728 <dc:attribute name="ids" value="${facet_num}-${facet_name}"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
729 <dc:attribute name="artifact-id" value="${a_id}"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
730 <dc:attribute name="out" value="bed_longitudinal_section"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
731 </dc:element>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
732 </dc:for-each>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
733 </quality-load>
6111
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
734 </dc:group>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
735 </bed_quality_load>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
736 </dc:if>
6095
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
737 </dc:filter>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
738 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
739
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
740 <dc:macro name="bedquality-density">
6111
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
741 <dc:filter expr="$out_name = 'bed_longitudinal_section' and
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
742 ($facet_name = 'bed_longitudinal_section.sediment_density_toplayer' or
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
743 $facet_name = 'bed_longitudinal_section.sediment_density_sublayer')">
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
744 <dc:if test="dc:has-result()">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
745 <bed_quality_density>
6111
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
746 <dc:group expr="concat($river, ' ', $a_creation, ' ', $collection_name)">
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
747 <density description="{dc:group-key()}">
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
748 <dc:for-each>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
749 <dc:element name="${facet_name}">
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
750 <dc:attribute name="factory" value="minfo"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
751 <dc:attribute name="description" value="${facet_description}"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
752 <dc:attribute name="ids" value="${facet_num}-${facet_name}"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
753 <dc:attribute name="artifact-id" value="${a_id}"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
754 <dc:attribute name="out" value="bed_longitudinal_section"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
755 </dc:element>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
756 </dc:for-each>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
757 </density>
6111
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
758 </dc:group>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
759 </bed_quality_density>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
760 </dc:if>
6095
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
761 </dc:filter>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
762 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
763
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
764 <dc:macro name="bedquality-porosity">
6111
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
765 <dc:filter expr="$out_name = 'bed_longitudinal_section' and
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
766 ($facet_name = 'bed_longitudinal_section.porosity_toplayer' or
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
767 $facet_name = 'bed_longitudinal_section.porosity_sublayer')">
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
768 <dc:if test="dc:has-result()">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
769 <bed_quality_porosity>
6111
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
770 <dc:group expr="concat($river, ' ', $a_creation, ' ', $collection_name)">
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
771 <porosity description="{dc:group-key()}">
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
772 <dc:for-each>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
773 <dc:element name="${facet_name}">
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
774 <dc:attribute name="factory" value="minfo"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
775 <dc:attribute name="description" value="${facet_description}"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
776 <dc:attribute name="ids" value="${facet_num}-${facet_name}"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
777 <dc:attribute name="artifact-id" value="${a_id}"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
778 <dc:attribute name="out" value="bed_longitudinal_section"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
779 </dc:element>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
780 </dc:for-each>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
781 </porosity>
6111
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
782 </dc:group>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
783 </bed_quality_porosity>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
784 </dc:if>
6095
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
785 </dc:filter>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
786 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
787
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
788 <dc:macro name="flow-velocity">
6111
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
789 <dc:filter expr="$out_name = 'flow_velocity' and
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
790 ($facet_name = 'flow_velocity.totalchannel' or
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
791 $facet_name = 'flow_velocity.mainchannel' or
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
792 $facet_name = 'flow_velocity.totalchannel.filtered' or
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
793 $facet_name = 'flow_velocity.mainchannel.filtered')">
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
794 <dc:if test="dc:has-result()">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
795 <flow-velocity>
6111
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
796 <dc:group expr="concat($river, ' ', $a_creation, ' ', $collection_name)">
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
797 <flow description="{dc:group-key()}">
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
798 <dc:for-each>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
799 <dc:element name="${facet_name}">
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
800 <dc:attribute name="factory" value="minfo"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
801 <dc:attribute name="description" value="${facet_description}"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
802 <dc:attribute name="ids" value="${facet_num}-${facet_name}"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
803 <dc:attribute name="artifact-id" value="${a_id}"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
804 <dc:attribute name="out" value="flow_velocity"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
805 </dc:element>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
806 </dc:for-each>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
807 </flow>
6111
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
808 </dc:group>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
809 </flow-velocity>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
810 </dc:if>
6095
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
811 </dc:filter>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
812 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
813
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
814 <dc:macro name="sediment-load">
6111
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
815 <dc:filter expr="$out_name = 'sedimentload_ls' and starts-with($facet_name, 'sedimentload')">
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
816 <dc:if test="dc:has-result()">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
817 <sediment-load>
6111
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
818 <dc:group expr="concat($river, ' ', $a_creation, ' ', $collection_name)">
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
819 <load description="{dc:group-key()}">
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
820 <dc:for-each>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
821 <dc:element name="${facet_name}">
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
822 <dc:attribute name="factory" value="minfo"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
823 <dc:attribute name="description" value="${facet_description}"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
824 <dc:attribute name="ids" value="${facet_num}-${facet_name}"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
825 <dc:attribute name="artifact-id" value="${a_id}"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
826 <dc:attribute name="out" value="sedimentload_ls"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
827 </dc:element>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
828 </dc:for-each>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
829 </load>
6111
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
830 </dc:group>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
831 </sediment-load>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
832 </dc:if>
6095
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
833 </dc:filter>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
834 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
835
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
836 <dc:macro name="bedheight-differences">
6111
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
837 <dc:filter expr="($out_name = 'bed_difference_year' or $out_name = 'bed_difference_epoch') and
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
838 (starts-with($facet_name, 'bedheight_difference.year') or starts-with($facet_name, 'bedheight_difference.epoch'))">
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
839 <dc:if test="dc:has-result()">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
840 <bedheight-differences>
6111
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
841 <dc:group expr="concat($river, ' ', $a_creation, ' ', $collection_name)">
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
842 <difference description="{dc:group-key()}">
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
843 <dc:for-each>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
844 <dc:element name="${facet_name}">
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
845 <dc:attribute name="factory" value="minfo"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
846 <dc:attribute name="description" value="${facet_description}"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
847 <dc:attribute name="ids" value="${facet_num}-${facet_name}"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
848 <dc:attribute name="artifact-id" value="${a_id}"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
849 <dc:attribute name="out" value="${out}"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
850 </dc:element>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
851 </dc:for-each>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
852 </difference>
6111
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
853 </dc:group>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
854 </bedheight-differences>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
855 </dc:if>
6095
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
856 </dc:filter>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
857 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
858
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
859 <dc:macro name="waterlevels-discharge">
6111
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
860 <dc:filter expr="$out_name = 'discharge_longitudinal_section' and $facet_name = 'discharge_longitudinal_section.w">
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
861 <dc:if test="dc:has-result()">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
862 <waterlevels-discharge>
6111
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
863 <dc:group expr="concat($oid, ' ', $river, ' ', $a_id, ' ', $a_creation, ' ', $collection_name)">
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
864 <discharge description="{dc:group-key()}">
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
865 <dc:for-each>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
866 <dc:element name="${facet_name}">
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
867 <dc:attribute name="factory" value="winfo"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
868 <dc:attribute name="description" value="${facet_description}"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
869 <dc:attribute name="ids" value="${facet_num}-${facet_name}"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
870 <dc:attribute name="artifact-id" value="${a_id}"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
871 <dc:attribute name="out" value="longitudinal_section"/>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
872 </dc:element>
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
873 </dc:for-each>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
874 </discharge>
6111
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
875 </dc:group>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
876 </waterlevels-discharge>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
877 </dc:if>
6095
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
878 </dc:filter>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
879 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
880 <!-- Macros to load system data -->
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
881
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
882 <dc:macro name="annotations">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
883 <annotation factory="annotations" ids="{$river_id}"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
884 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
885
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
886 <dc:macro name="mainvalues">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
887 <wmainvalue factory="mainvalue" ids="{$river_id}:w"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
888 <qmainvalue factory="mainvalue" ids="{$river_id}:q"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
889 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
890
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
891 <dc:macro name="cross_sections">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
892 <cross_sections id="flood-protections-{$river_id}">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
893 <dc:context connection="system">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
894 <dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
895 SELECT DISTINCT
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
896 cs.id AS prot_id,
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
897 cs.description AS prot_description
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
898 FROM cross_sections cs
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
899 JOIN cross_section_lines csl ON csl.cross_section_id = cs.id
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
900 WHERE cs.river_id = ${river_id}
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
901 AND csl.km BETWEEN ${fromkm} AND ${tokm}
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
902 </dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
903 <dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
904 <cross_section name="{$prot_description}"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
905 ids="{$prot_id}"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
906 factory="crosssections"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
907 </dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
908 </dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
909 </cross_sections>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
910 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
911
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
912 <dc:macro name="hyks">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
913 <hyks id="hyk-{$river_id}">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
914 <dc:context connection="system">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
915 <dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
916 SELECT DISTINCT
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
917 h.id AS hyk_id,
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
918 h.description AS hyk_description
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
919 FROM hyks h
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
920 JOIN hyk_entries he ON he.hyk_id = h.id
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
921 WHERE river_id = ${river_id}
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
922 AND he.km BETWEEN ${fromkm} AND ${tokm}
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
923 </dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
924 <dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
925 <hyk name="{$hyk_description}"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
926 ids="{$hyk_id}"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
927 factory="hyk"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
928 </dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
929 </dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
930 </hyks>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
931 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
932
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
933 <dc:macro name="fixings-macro">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
934 <dc:filter expr="$kind=2">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
935 <dc:if test="dc:has-result()">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
936 <fixations>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
937 <dc:group expr="dc:replace($wst_description, 'Fixierungen/', '')">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
938 <fixation name="{dc:group-key()}">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
939 <dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
940 <dc:macro-body/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
941 </dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
942 </fixation>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
943 </dc:group>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
944 </fixations>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
945 </dc:if>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
946 </dc:filter>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
947 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
948
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
949 <dc:macro name="basedata_2_fixations_wqkms">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
950 <dc:call-macro name="fixings-macro">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
951 <column name="{$wst_column_name}"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
952 ids="fixations-wstv-{$wst_column_position}-{$wst_id}"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
953 factory="wqinterpol"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
954 info="{$info} [km {$deffrom} - {$defto}]"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
955 </dc:call-macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
956 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
957
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
958 <dc:macro name="basedata_2_fixations">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
959 <dc:call-macro name="fixings-macro">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
960 <column name="{$wst_column_name}"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
961 ids="fixations-wstv-{$wst_column_position}-{$wst_id}"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
962 factory="staticwqkms"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
963 info="{$info} [km {$deffrom} - {$defto}]"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
964 </dc:call-macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
965 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
966
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
967 <dc:macro name="basedata_3_officials">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
968 <dc:filter expr="$kind=3">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
969 <dc:if test="dc:has-result()">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
970 <officiallines>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
971 <dc:group expr="$wst_description">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
972 <official name="{dc:group-key()}">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
973 <dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
974 <column name="{$wst_column_name}"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
975 ids="additionals-wstv-{$wst_column_position}-{$wst_id}"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
976 factory="staticwqkms"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
977 info="{$info} [km {$deffrom} - {$defto}]"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
978 </dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
979 </official>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
980 </dc:group>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
981 </officiallines>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
982 </dc:if>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
983 </dc:filter>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
984 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
985
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
986 <dc:macro name="basedata_4_heightmarks-points">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
987 <dc:filter expr="$kind=4">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
988 <dc:if test="dc:has-result()">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
989 <heightmarks>
6081
cdd9759b15b6 Fix old calculations datacage parts.
Andre Heinecke <aheinecke@intevation.de>
parents: 6075
diff changeset
990 <dc:group expr="dc:replace($wst_description, 'HW-Marken/', '')">
6084
46c18b687fdc We want to expand the group key for the name
Andre Heinecke <aheinecke@intevation.de>
parents: 6081
diff changeset
991 <heightmark name="{dc:group-key()}">
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
992 <dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
993 <column name="{$wst_column_name}"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
994 ids="heightmarks_points-wstv-{$wst_column_position}-{$wst_id}"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
995 factory="staticwkms"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
996 info="{$info} [km {$deffrom} - {$defto}]"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
997 </dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
998 </heightmark>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
999 </dc:group>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1000 </heightmarks>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1001 </dc:if>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1002 </dc:filter>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1003 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1004
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1005 <dc:macro name="basedata_4_heightmarks-points-relative_points">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1006 <dc:filter expr="$kind=4">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1007 <dc:if test="dc:has-result()">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1008 <heightmarks>
6081
cdd9759b15b6 Fix old calculations datacage parts.
Andre Heinecke <aheinecke@intevation.de>
parents: 6075
diff changeset
1009 <dc:group expr="dc:replace($wst_description, 'HW-Marken/', '')">
6084
46c18b687fdc We want to expand the group key for the name
Andre Heinecke <aheinecke@intevation.de>
parents: 6081
diff changeset
1010 <relativepoint name="{dc:group-key()}">
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1011 <dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1012 <column name="{$wst_column_name}"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1013 ids="heightmarks_points-wstv-{$wst_column_position}-{$wst_id}"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1014 factory="staticwkms"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1015 info="{$info} [km {$deffrom} - {$defto}]"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1016 </dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1017 </relativepoint>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1018 </dc:group>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1019 </heightmarks>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1020 </dc:if>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1021 </dc:filter>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1022 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1023
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1024 <dc:macro name="longitudinal-section-prototype">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1025 <dc:call-macro name="basedata_0"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1026 <dc:call-macro name="basedata_1_additionals"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1027 <dc:call-macro name="basedata_2_fixations"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1028 <dc:call-macro name="basedata_4_heightmarks-points"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1029 <dc:call-macro name="basedata_3_officials"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1030 <dc:call-macro name="basedata_5_flood-protections"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1031 <dc:call-macro name="annotations_per_type"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1032 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1033
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1034 <dc:macro name="basedata_5_flood-protections">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1035 <dc:filter expr="$kind=5">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1036 <dc:if test="dc:has-result()">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1037 <flood_protections>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1038 <dc:group expr="dc:replace($wst_description, 'HW-Schutzanlagen/', '')">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1039 <flood_protection name="{dc:group-key()}">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1040 <dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1041 <column name="{$wst_column_name}"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1042 ids="flood_protection-wstv-{$wst_column_position}-{$wst_id}"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1043 factory="staticwkms"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1044 info="{$info} [km {$deffrom} - {$defto}]"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1045 </dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1046 </flood_protection>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1047 </dc:group>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1048 </flood_protections>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1049 </dc:if>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1050 </dc:filter>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1051 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1052
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1053 <dc:macro name="annotations_per_type">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1054 <annotations>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1055 <dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1056 <all_annotations factory="annotations" ids="{$river_id}"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1057 <dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1058 SELECT id AS anno_id,
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1059 name AS anno_description
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1060 FROM annotation_types
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1061 </dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1062 <dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1063 <annotation name="{$anno_description}"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1064 factory="annotations"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1065 ids="{$river_id}:{$anno_description}"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1066 </dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1067 </dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1068 </annotations>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1069 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1070
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1071 <dc:macro name="basedata_2_fixations_relative_point">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1072 <dc:filter expr="$kind=2">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1073 <dc:if test="dc:has-result()">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1074 <fixations>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1075 <dc:group expr="dc:replace($wst_description, 'Fixierungen/', '')">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1076 <relativepoint name="{dc:group-key()}">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1077 <dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1078 <column name="{$wst_column_name}"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1079 ids="fixations-wstv-{$wst_column_position}-{$wst_id}"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1080 factory="staticwkms"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1081 info="{$info} [km {$deffrom} - {$defto}]"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1082 </dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1083 </relativepoint>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1084 </dc:group>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1085 </fixations>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1086 </dc:if>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1087 </dc:filter>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1088 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1089
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1090 <dc:macro name="basedata_5_flood-protections_relative_points">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1091 <dc:filter expr="$kind=5">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1092 <dc:if test="dc:has-result()">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1093 <flood_protections>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1094 <dc:group expr="$wst_description">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1095 <relativepoint name="{dc:group-key()}">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1096 <dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1097 <column name="{$wst_column_name}"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1098 ids="flood_protection-wstv-{$wst_column_position}-{$wst_id}"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1099 factory="staticwkms"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1100 info="{$info} [km {$deffrom} - {$defto}]"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1101 </dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1102 </relativepoint>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1103 </dc:group>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1104 </flood_protections>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1105 </dc:if>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1106 </dc:filter>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1107 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1108
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1109 <dc:macro name="basedata_1_additionals-relative_point">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1110 <dc:filter expr="$kind=1">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1111 <dc:if test="dc:has-result()">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1112 <additionals>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1113 <dc:group expr="$wst_description">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1114 <relativepoint name="{dc:group-key()}">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1115 <dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1116 <column name="{$wst_column_name}"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1117 ids="additionals-wstv-{$wst_column_position}-{$wst_id}"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1118 factory="staticwkms"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1119 info="{$info} [km {$deffrom} - {$defto}]"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1120 </dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1121 </relativepoint>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1122 </dc:group>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1123 </additionals>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1124 </dc:if>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1125 </dc:filter>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1126 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1127
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1128 <dc:macro name="discharge_table_gauge">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1129 <dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1130 <dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1131 SELECT id AS gauge_id,
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1132 name AS gauge_name
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1133 FROM gauges WHERE river_id = ${river_id}
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1134 </dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1135 <dc:if test="dc:has-result()">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1136 <discharge_table_nn>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1137 <discharge_table_gauge>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1138 <dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1139 <gauge name="{$gauge_name}"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1140 factory="gaugedischarge"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1141 from="{$g_start}"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1142 to="{$g_stop}"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1143 ids="{$gauge_name}"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1144 </dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1145 </discharge_table_gauge>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1146 </discharge_table_nn>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1147 </dc:if>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1148 </dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1149 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1150
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1151 <dc:comment>TODO: Why is this just a copy of the discharge_table_gauge?</dc:comment>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1152 <dc:macro name="discharge_computed">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1153 <dc:call-macro name="discharge_table_gauge"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1154 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1155
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1156 <dc:comment>TODO: Why is this just a copy of the discharge_table_gauge?</dc:comment>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1157 <dc:macro name="discharge_fix_wq">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1158 <dc:call-macro name="discharge_table_gauge"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1159 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1160
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1161 <dc:macro name="qsectors">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1162 <qsector factory="qsectors" ids="{$river_id}"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1163 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1164
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1165 <dc:macro name="flood-map-recommended">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1166 <kilometrage>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1167 <riveraxis factory="riveraxis" ids="{$river_id}"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1168 </kilometrage>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1169 <rastermap>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1170 <background factory="wmsbackground" ids="{$river_id}"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1171 </rastermap>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1172 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1173
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1174 <dc:macro name="minfo-heights">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1175 <bedheights>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1176 <dc:call-macro name="bed-heights-single"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1177 <dc:call-macro name="bed-heights-epoch"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1178 </bedheights>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1179 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1180
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1181 <dc:macro name="bed-heights-single">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1182 <single>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1183 <dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1184 <dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1185 SELECT id AS bedh_id,
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1186 year AS bedh_year,
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1187 description AS bedh_descr
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1188 FROM bed_height_single WHERE river_id = ${river_id}
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1189 </dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1190 <dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1191 <height factory="bedheight"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1192 ids="bedheight-single-{$bedh_id}-{$bedh_year}"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1193 description="{$bedh_descr}"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1194 </dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1195 </dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1196 </single>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1197 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1198
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1199 <dc:macro name="bed-heights-epoch">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1200 <epoch>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1201 <dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1202 <dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1203 SELECT id AS bedh_id,
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1204 time_interval_id AS bedh_interval_id,
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1205 description AS bedh_descr
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1206 FROM bed_height_epoch WHERE river_id = ${river_id}
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1207 </dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1208 <dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1209 <height factory="bedheight"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1210 ids="bedheight-epoch-{$bedh_id}-{$bedh_interval_id}"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1211 description="{$bedh_descr}"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1212 </dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1213 </dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1214 </epoch>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1215 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1216
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1217 <dc:macro name="flow_velocity_measurements">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1218 <dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1219 <dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1220 SELECT id AS fvmid,
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1221 description AS fvmd
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1222 FROM flow_velocity_measurements WHERE river_id = ${river_id}
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1223 </dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1224 <dc:if test="dc:has-result()">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1225 <flowvelocitymeasurement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1226 <dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1227 <dc:comment>TODO: Why has this an id and factory?</dc:comment>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1228 <flow_velocity_measurement name="{$fvmd}"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1229 ids="{$fvmid}"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1230 factory="flowvelocity">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1231 <dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1232 <dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1233 SELECT id, description, station, datetime, v, w, q
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1234 FROM flow_velocity_measure_values
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1235 WHERE measurements_id = ${fvmid}
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1236 AND station BETWEEN ${fromkm} AND ${tokm}
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1237 </dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1238 <dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1239 <measurement_value name="{$description} - {$station} - {$datetime}"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1240 ids="{$id}"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1241 factory="flowvelocity"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1242 </dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1243 </dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1244 </flow_velocity_measurement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1245 </dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1246 </flowvelocitymeasurement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1247 </dc:if>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1248 </dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1249 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1250
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1251 <dc:macro name="morph_width">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1252 <dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1253 <dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1254 SELECT id AS width_id
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1255 FROM morphologic_width
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1256 WHERE river_id = ${river_id}
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1257 </dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1258 <dc:if test="dc:has-result()">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1259 <morph_width>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1260 <dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1261 <dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1262 <dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1263 SELECT min(station) AS from_station,
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1264 max(station) AS to_station
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1265 FROM morphologic_width_values
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1266 WHERE morphologic_width_id = ${width_id}
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1267 </dc:statement>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1268 <dc:for-each>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1269 <morphologic-width name="{$from_station} - {$to_station}"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1270 ids="{$width_id}"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1271 factory="morph-width"/>
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:for-each>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1273 </dc:context>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1274 </dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1275 </morph_width>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1276 </dc:if>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1277 </dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1278 </dc:macro>
5405
5ca06120b918 Remove river_name and map elements to reduce datacage level depth
Andre Heinecke <aheinecke@intevation.de>
parents: 5404
diff changeset
1279
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1280 <dc:macro name="sounding-width">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1281 <dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1282 <dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1283 SELECT id AS bedh_id,
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1284 year AS bedh_year,
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1285 description AS bedh_descr
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1286 FROM bed_height_single WHERE river_id = ${river_id}
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1287 </dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1288 <dc:if test="dc:has-result()">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1289 <soundings_width>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1290 <dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1291 <height factory="bedheight"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1292 ids="bedheight-singlevalues-{$bedh_id}-{$bedh_year}"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1293 description="{$bedh_descr}"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1294 </dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1295 </soundings_width>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1296 </dc:if>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1297 </dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1298 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1299
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1300 <dc:macro name="basedata_0_macro">
6073
f0417a8e4c39 meta-data.xml: dc:has-result()-guard additionals and basedata.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 6072
diff changeset
1301 <dc:filter expr="$kind = 0">
f0417a8e4c39 meta-data.xml: dc:has-result()-guard additionals and basedata.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 6072
diff changeset
1302 <dc:if test="dc:has-result()">
f0417a8e4c39 meta-data.xml: dc:has-result()-guard additionals and basedata.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 6072
diff changeset
1303 <basedata>
f0417a8e4c39 meta-data.xml: dc:has-result()-guard additionals and basedata.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 6072
diff changeset
1304 <dc:group expr="$wst_description">
f0417a8e4c39 meta-data.xml: dc:has-result()-guard additionals and basedata.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 6072
diff changeset
1305 <basedata name="{dc:group-key()}">
f0417a8e4c39 meta-data.xml: dc:has-result()-guard additionals and basedata.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 6072
diff changeset
1306 <dc:for-each>
f0417a8e4c39 meta-data.xml: dc:has-result()-guard additionals and basedata.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 6072
diff changeset
1307 <dc:macro-body/>
f0417a8e4c39 meta-data.xml: dc:has-result()-guard additionals and basedata.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 6072
diff changeset
1308 </dc:for-each>
f0417a8e4c39 meta-data.xml: dc:has-result()-guard additionals and basedata.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 6072
diff changeset
1309 </basedata>
f0417a8e4c39 meta-data.xml: dc:has-result()-guard additionals and basedata.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 6072
diff changeset
1310 </dc:group>
f0417a8e4c39 meta-data.xml: dc:has-result()-guard additionals and basedata.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 6072
diff changeset
1311 </basedata>
f0417a8e4c39 meta-data.xml: dc:has-result()-guard additionals and basedata.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 6072
diff changeset
1312 </dc:if>
f0417a8e4c39 meta-data.xml: dc:has-result()-guard additionals and basedata.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 6072
diff changeset
1313 </dc:filter>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1314 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1315
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1316 <dc:macro name="basedata_0">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1317 <dc:call-macro name="basedata_0_macro">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1318 <column name="{$wst_column_name}"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1319 ids="base_data-wstv-{$wst_column_position}-{$wst_id}"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1320 factory="staticwqkms"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1321 info="{$info} [km {$deffrom} - {$defto}]"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1322 </dc:call-macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1323 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1324
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1325 <dc:macro name="basedata_0_wq">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1326 <dc:call-macro name="basedata_0_macro">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1327 <column name="{$wst_column_name}"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1328 ids="base_data-wstv-{$wst_column_position}-{$wst_id}"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1329 factory="wqinterpol"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1330 info="{$info} [km {$deffrom} - {$defto}]"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1331 </dc:call-macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1332 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1333
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1334 <dc:macro name="basedata_1_additionals_macro">
6073
f0417a8e4c39 meta-data.xml: dc:has-result()-guard additionals and basedata.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 6072
diff changeset
1335 <dc:filter expr="$kind=1">
f0417a8e4c39 meta-data.xml: dc:has-result()-guard additionals and basedata.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 6072
diff changeset
1336 <dc:if test="dc:has-result()">
f0417a8e4c39 meta-data.xml: dc:has-result()-guard additionals and basedata.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 6072
diff changeset
1337 <additionals>
f0417a8e4c39 meta-data.xml: dc:has-result()-guard additionals and basedata.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 6072
diff changeset
1338 <dc:group expr="dc:replace($wst_description, 'Zus.Längsschnitte/', '')">
f0417a8e4c39 meta-data.xml: dc:has-result()-guard additionals and basedata.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 6072
diff changeset
1339 <additional name="{dc:group-key()}">
6081
cdd9759b15b6 Fix old calculations datacage parts.
Andre Heinecke <aheinecke@intevation.de>
parents: 6075
diff changeset
1340 <dc:for-each>
cdd9759b15b6 Fix old calculations datacage parts.
Andre Heinecke <aheinecke@intevation.de>
parents: 6075
diff changeset
1341 <dc:macro-body/>
cdd9759b15b6 Fix old calculations datacage parts.
Andre Heinecke <aheinecke@intevation.de>
parents: 6075
diff changeset
1342 </dc:for-each>
6073
f0417a8e4c39 meta-data.xml: dc:has-result()-guard additionals and basedata.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 6072
diff changeset
1343 </additional>
f0417a8e4c39 meta-data.xml: dc:has-result()-guard additionals and basedata.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 6072
diff changeset
1344 </dc:group>
f0417a8e4c39 meta-data.xml: dc:has-result()-guard additionals and basedata.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 6072
diff changeset
1345 </additionals>
f0417a8e4c39 meta-data.xml: dc:has-result()-guard additionals and basedata.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 6072
diff changeset
1346 </dc:if>
f0417a8e4c39 meta-data.xml: dc:has-result()-guard additionals and basedata.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 6072
diff changeset
1347 </dc:filter>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1348 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1349
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1350 <dc:macro name="basedata_1_additionals">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1351 <dc:call-macro name="basedata_1_additionals_macro">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1352 <column name="{$wst_column_name}"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1353 ids="additionals-wstv-{$wst_column_position}-{$wst_id}"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1354 factory="staticwqkms"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1355 info="{$info} [km {$deffrom} - {$defto}]"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1356 </dc:call-macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1357 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1358
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1359 <dc:macro name="basedata_1_additionals_marks">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1360 <dc:call-macro name="basedata_1_additionals_macro">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1361 <column name="{$wst_column_name}"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1362 ids="additionalsmarks-wstv-{$wst_column_position}-{$wst_id}"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1363 factory="staticwkms"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1364 info="{$info} [km {$deffrom} - {$defto}]"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1365 </dc:call-macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1366 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1367
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1368 <!-- Floodmap part -->
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1369 <dc:macro name="flood-map-complete">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1370 <dc:call-macro name="flood-map-buildings"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1371 <dc:call-macro name="catchments"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1372 <dc:call-macro name="floodmarks"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1373 <hws>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1374 <dc:call-macro name="hwslines"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1375 <dc:call-macro name="hwspoints"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1376 </hws>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1377 <dc:call-macro name="flood-map-routing"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1378 <hydrboundaries>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1379 <dc:call-macro name="flood-map-floodplain"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1380 <dc:call-macro name="flood-map-hydr-boundaries"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1381 </hydrboundaries>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1382 <dc:call-macro name="flood-map-uesk"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1383 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1384
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1385 <dc:macro name="flood-map-routing">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1386 <route_data>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1387 <dc:call-macro name="flood-map-qps"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1388 <dc:call-macro name="flood-map-fixpoints"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1389 <dc:call-macro name="flood-map-km"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1390 <dc:call-macro name="flood-map-riveraxis"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1391 </route_data>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1392 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1393
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1394 <dc:macro name="flood-map-hydr-boundaries">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1395 <bfg_model>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1396 <dc:call-macro name="flood-map-hydr-boundaries-poly"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1397 <dc:call-macro name="flood-map-hydr-boundaries-lines"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1398 </bfg_model>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1399 <dc:call-macro name="flood-map-hydr-boundaries-state"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1400 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1401
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1402 <dc:macro name="flood-map-recommended">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1403 <dc:comment>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1404 FIXME: Following two macros look identical to me.
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1405 </dc:comment>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1406 <kilometrage>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1407 <riveraxis factory="riveraxis" ids="{$river_id}"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1408 </kilometrage>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1409 <rastermap>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1410 <background factory="wmsbackground" ids="{$river_id}"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1411 </rastermap>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1412 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1413
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1414 <dc:macro name="flood-map-dem">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1415 <dems>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1416 <dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1417 <dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1418 SELECT d.id AS dem_id,
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1419 r.a AS dem_lower,
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1420 r.b AS dem_upper,
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1421 d.name AS name,
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1422 t.start_time AS start_time,
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1423 t.stop_time AS stop_time,
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1424 'Projektion: ' || d.projection || '$' ||
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1425 'Rasterweite: ' || d.resolution || 'm$' ||
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1426 'Format: ' || d.format || '$' ||
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1427 'Zeitraum: '
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1428 AS info
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1429 FROM dem d
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1430 JOIN ranges r ON d.range_id = r.id
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1431 LEFT JOIN time_intervals t ON d.time_interval_id = t.id
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1432 WHERE d.river_id = ${river_id}
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1433 </dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1434 <dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1435 <dem factory="demfactory"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1436 ids="{$dem_id}"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1437 name="{$name}"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1438 info="{dc:replace($info, '$', '&lt;BR&gt;')}{dc:date-format('yyyy', $start_time)} - {dc:date-format('yyyy', $stop_time)}"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1439 </dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1440 </dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1441 </dems>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1442 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1443
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1444 <dc:macro name="filter_hws_ddg">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1445 <dc:macro name="durchlass_damm_graben">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1446 <dc:macro name="ddg_factory">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1447 <dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1448 <hws factory="hwsfactory" name="{$hws_name}"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1449 </dc:for-each>
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1450 </dc:macro>
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1451
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1452 <dc:filter expr="$hws_kind=1">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1453 <dc:if test="dc:has-result()">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1454 <Durchlass><dc:call-macro name="ddg_factory"/></Durchlass>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1455 </dc:if>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1456 </dc:filter>
5976
178a873df7a9 Add OUT parameter to each ids parameter
Andre Heinecke <aheinecke@intevation.de>
parents: 5884
diff changeset
1457
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1458 <dc:filter expr="$hws_kind=2">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1459 <dc:if test="dc:has-result()">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1460 <Damm><dc:call-macro name="ddg_factory"/></Damm>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1461 </dc:if>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1462 </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
1463
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1464 <dc:filter expr="$hws_kind=3">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1465 <dc:if test="dc:has-result()">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1466 <Graben><dc:call-macro name="ddg_factory"/></Graben>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1467 </dc:if>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1468 </dc:filter>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1469 </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
1470
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1471 <dc:filter expr="$hws_official=1">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1472 <dc:if test="dc:has-result()">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1473 <official>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1474 <dc:call-macro name="durchlass_damm_graben"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1475 </official>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1476 </dc:if>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1477 </dc:filter>
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
1478
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1479 <dc:filter expr="$hws_official=0">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1480 <dc:if test="dc:has-result()">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1481 <inofficial>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1482 <dc:call-macro name="durchlass_damm_graben"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1483 </inofficial>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1484 </dc:if>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1485 </dc:filter>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1486 </dc:macro>
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
1487
6054
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
1488 <dc:macro name="flood-map-hws-lines">
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
1489 <dc:context>
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
1490 <dc:statement>
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
1491 SELECT DISTINCT
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
1492 name AS hws_name,
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
1493 official AS hws_official,
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
1494 kind_id AS hws_kind
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
1495 FROM hws_lines
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
1496 WHERE river_id = ${river_id}
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
1497 </dc:statement>
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
1498 <dc:if test="dc:has-result()">
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
1499 <lines>
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
1500 <dc:call-macro name="filter_hws_ddg"/>
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
1501 </lines>
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
1502 </dc:if>
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
1503 </dc:context>
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
1504 </dc:macro>
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
1505
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
1506 <dc:macro name="flood-map-hws-points">
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
1507 <dc:context>
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
1508 <dc:statement>
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
1509 SELECT DISTINCT
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
1510 name AS hws_name,
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
1511 official AS hws_official,
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
1512 kind_id AS hws_kind
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
1513 FROM hws_points
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
1514 WHERE river_id = ${river_id}
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
1515 </dc:statement>
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
1516 <dc:if test="dc:has-result()">
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
1517 <points>
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
1518 <dc:call-macro name="filter_hws_ddg"/>
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
1519 </points>
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
1520 </dc:if>
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
1521 </dc:context>
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
1522 </dc:macro>
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
1523
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1524 <dc:macro name="flood-map-hydr-boundaries-state">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1525 <federal>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1526 <dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1527 <dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1528 SELECT DISTINCT
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1529 name
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1530 FROM hydr_boundaries
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1531 WHERE river_id = ${river_id}
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1532 AND kind = 2
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1533 </dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1534 <dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1535 <line factory="wmshydrboundariesfactory"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1536 ids="{$river_id};{$name};2"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1537 name="{$name}"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1538 </dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1539 </dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1540 <dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1541 <dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1542 SELECT DISTINCT
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1543 name
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1544 FROM hydr_boundaries_poly
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1545 WHERE river_id = ${river_id}
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1546 AND kind = 2
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1547 </dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1548 <dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1549 <line factory="wmshydrboundariespolyfactory"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1550 ids="{$river_id};{$name};2"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1551 name="{$name}"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1552 </dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1553 </dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1554 </federal>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1555 </dc:macro>
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
1556
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1557 <dc:macro name="flood-map-hydr-boundaries-lines">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1558 <dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1559 <dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1560 SELECT DISTINCT
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1561 name
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1562 FROM hydr_boundaries
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1563 WHERE river_id = ${river_id}
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1564 AND kind = 1
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1565 </dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1566 <dc:comment> What about all other line kinds?</dc:comment>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1567 <dc:if test="dc:has-result()">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1568 <lines>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1569 <dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1570 <line factory="wmshydrboundariesfactory"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1571 ids="{$river_id};{$name};1"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1572 name="{$name}"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1573 </dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1574 </lines>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1575 </dc:if>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1576 </dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1577 </dc:macro>
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
1578
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1579 <dc:macro name="flood-map-hydr-boundaries-poly">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1580 <areas>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1581 <dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1582 <dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1583 SELECT DISTINCT
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1584 b.sectie AS sectie_id,
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1585 sk.name AS sectie
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1586 FROM hydr_boundaries_poly b
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1587 JOIN sectie_kinds sk ON b.sectie = sk.id
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1588 WHERE b.river_id = ${river_id}
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1589 AND b.kind = 1
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1590 </dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1591 <dc:if test="dc:has-result()">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1592 <sobek_areas>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1593 <dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1594 <boundary name="{$sectie}"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1595 factory="wmshydrboundariespolyfactory"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1596 ids="{$river_id};{$sectie};1;{$sectie_id};-1"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1597 </dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1598 </sobek_areas>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1599 </dc:if>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1600 </dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1601 <dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1602 <dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1603 SELECT DISTINCT
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1604 b.sobek AS sobek_id,
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1605 sk.name AS sobek
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1606 FROM hydr_boundaries_poly b
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1607 JOIN sobek_kinds sk ON b.sobek = sk.id
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1608 WHERE b.river_id = ${river_id}
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1609 AND b.kind = 1
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1610 </dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1611 <dc:if test="dc:has-result()">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1612 <sobek_flooded>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1613 <dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1614 <boundary name="{$sobek}"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1615 factory="wmshydrboundariespolyfactory"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1616 ids="{$river_id};{$sobek};1;-1;{$sobek_id}"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1617 </dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1618 </sobek_flooded>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1619 </dc:if>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1620 </dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1621 <dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1622 <dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1623 SELECT DISTINCT
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1624 b.name AS name
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1625 FROM hydr_boundaries_poly b
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1626 WHERE b.river_id = ${river_id}
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1627 AND b.kind = 1
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1628 AND b.sobek IS NULL
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1629 AND b.sectie is NULL
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1630 </dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1631 <dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1632 <boundary name="{$name}"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1633 factory="wmshydrboundariespolyfactory"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1634 ids="{$river_id};{$name}"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1635 </dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1636 </dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1637 </areas>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1638 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1639
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1640 <dc:macro name="flood-map-uesk">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1641 <dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1642 <dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1643 SELECT DISTINCT 1 FROM floodmaps WHERE river_id = ${river_id}
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1644 </dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1645 <dc:if test="dc:has-result()">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1646 <uesk>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1647 <calculations>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1648 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1649 <dc:statement>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1650 SELECT DISTINCT 1 FROM floodmaps WHERE river_id = ${river_id}
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1651 AND (kind = 112 OR kind = 111)
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1652 </dc:statement>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1653 <dc:if test="dc:has-result()">
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1654 <current>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1655 <dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1656 <dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1657 SELECT DISTINCT name AS name
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1658 FROM floodmaps
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1659 WHERE river_id = ${river_id} AND kind = 111
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1660 </dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1661 <dc:if test="dc:has-result()">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1662 <bfg>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1663 <dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1664 <floodmaps factory="wmsfloodmapsfactory"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1665 ids="{$river_id};{$name}"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1666 name="{$name}"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1667 </dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1668 </bfg>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1669 </dc:if>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1670 </dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1671 <dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1672 <dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1673 SELECT DISTINCT name AS name
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1674 FROM floodmaps
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1675 WHERE river_id = ${river_id} AND kind = 112
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1676 </dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1677 <dc:if test="dc:has-result()">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1678 <federal>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1679 <dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1680 <floodmaps factory="wmsfloodmapsfactory"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1681 ids="{$river_id};{$name}"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1682 name="{$name}"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1683 </dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1684 </federal>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1685 </dc:if>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1686 </dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1687 </current>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1688 </dc:if>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1689 </dc:context>
5760
dc5f81885918 Add hydroboundaries where sectie and sobek is null
Andre Heinecke <aheinecke@intevation.de>
parents: 5758
diff changeset
1690 <dc:context>
dc5f81885918 Add hydroboundaries where sectie and sobek is null
Andre Heinecke <aheinecke@intevation.de>
parents: 5758
diff changeset
1691 <dc:statement>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1692 SELECT DISTINCT 1 from floodmaps where river_id = ${river_id}
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1693 AND (kind = 122 OR kind = 121)
5435
70026e3b6af3 Add buildings of kind 0 to data cage
Andre Heinecke <aheinecke@intevation.de>
parents: 5405
diff changeset
1694 </dc:statement>
5796
53cff50918b1 Fix other buildings.
Andre Heinecke <aheinecke@intevation.de>
parents: 5772
diff changeset
1695 <dc:if test="dc:has-result()">
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1696 <potential>
5534
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1697 <dc:context>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1698 <dc:statement>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1699 SELECT DISTINCT name AS name
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1700 FROM floodmaps
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1701 WHERE river_id = ${river_id} AND kind = 121
5534
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1702 </dc:statement>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1703 <dc:if test="dc:has-result()">
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1704 <bfg>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1705 <dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1706 <floodmaps factory="wmsfloodmapsfactory"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1707 ids="{$river_id};{$name}"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1708 name="{$name}"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1709 </dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1710 </bfg>
5534
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1711 </dc:if>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1712 </dc:context>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1713 <dc:context>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1714 <dc:statement>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1715 SELECT DISTINCT
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1716 name AS name
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1717 FROM floodmaps
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1718 WHERE river_id = ${river_id} AND kind = 122
5534
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1719 </dc:statement>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1720 <dc:if test="dc:has-result()">
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1721 <federal>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1722 <dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1723 <floodmaps factory="wmsfloodmapsfactory"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1724 ids="{$river_id};{$name}"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1725 name="{$name}"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1726 </dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1727 </federal>
5534
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1728 </dc:if>
a11c6f680487 Add uesg as specified to the datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5533
diff changeset
1729 </dc:context>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1730 </potential>
5547
38713f32a785 Add Floodmarks and all specified WMS services to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5534
diff changeset
1731 </dc:if>
38713f32a785 Add Floodmarks and all specified WMS services to datacage
Andre Heinecke <aheinecke@intevation.de>
parents: 5534
diff changeset
1732 </dc:context>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1733 </calculations>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1734 <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
1735 <dc:statement>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1736 SELECT DISTINCT
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1737 source AS source
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1738 FROM floodmaps
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1739 WHERE river_id = ${river_id} AND kind = 200
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1740 </dc:statement>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1741 <dc:if test="dc:has-result()">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1742 <measurements>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1743 <dc:for-each>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1744 <year name="{$source}">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1745 <dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1746 <dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1747 SELECT DISTINCT
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1748 name AS name
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1749 FROM floodmaps
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1750 WHERE river_id = ${river_id} AND kind = 200 AND source =
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1751 ${source}
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1752 </dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1753 <dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1754 <floodmaps factory="wmsfloodmapsfactory"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1755 ids="{$river_id};{$name}"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1756 name="{$name}"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1757 </dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1758 </dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1759 </year>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1760 </dc:for-each>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1761 </measurements>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1762 </dc:if>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1763 </dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1764 </uesk>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1765 </dc:if>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1766 </dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1767 </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
1768
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1769 <dc:macro name="flood-map-floodplain">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1770 <dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1771 <dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1772 SELECT DISTINCT
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1773 fp.kind_id AS kind_id,
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1774 flk.name AS kind_name
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1775 FROM floodplain fp
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1776 JOIN floodplain_kinds flk on fp.kind_id = flk.id
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1777 WHERE river_id = ${river_id}
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1778 AND kind_id=1
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1779 </dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1780 <dc:if test="dc:has-result()">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1781 <floodplain>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1782 <dc:filter expr="$kind_id=1">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1783 <dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1784 <floody factory="wmsfloodplainfactory"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1785 description="{$kind_name}"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1786 ids="{$river_id};{$kind_name};{$kind_id}"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1787 </dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1788 </dc:filter>
6098
c21bfa653942 Datacage: Fixed wrong variable access in meta-data.xml
Sascha L. Teichmann <teichmann@intevation.de>
parents: 6095
diff changeset
1789 <dc:filter expr="$kind_id != 1">
c21bfa653942 Datacage: Fixed wrong variable access in meta-data.xml
Sascha L. Teichmann <teichmann@intevation.de>
parents: 6095
diff changeset
1790 <dc:if test="dc:has-result()">
c21bfa653942 Datacage: Fixed wrong variable access in meta-data.xml
Sascha L. Teichmann <teichmann@intevation.de>
parents: 6095
diff changeset
1791 <other>
c21bfa653942 Datacage: Fixed wrong variable access in meta-data.xml
Sascha L. Teichmann <teichmann@intevation.de>
parents: 6095
diff changeset
1792 <dc:for-each>
c21bfa653942 Datacage: Fixed wrong variable access in meta-data.xml
Sascha L. Teichmann <teichmann@intevation.de>
parents: 6095
diff changeset
1793 <floody factory="wmsfloodplainfactory"
c21bfa653942 Datacage: Fixed wrong variable access in meta-data.xml
Sascha L. Teichmann <teichmann@intevation.de>
parents: 6095
diff changeset
1794 description="{$layer_name}"
c21bfa653942 Datacage: Fixed wrong variable access in meta-data.xml
Sascha L. Teichmann <teichmann@intevation.de>
parents: 6095
diff changeset
1795 ids="{$river_id};{$layer_name};{$kind_id}"/>
c21bfa653942 Datacage: Fixed wrong variable access in meta-data.xml
Sascha L. Teichmann <teichmann@intevation.de>
parents: 6095
diff changeset
1796 </dc:for-each>
c21bfa653942 Datacage: Fixed wrong variable access in meta-data.xml
Sascha L. Teichmann <teichmann@intevation.de>
parents: 6095
diff changeset
1797 </other>
c21bfa653942 Datacage: Fixed wrong variable access in meta-data.xml
Sascha L. Teichmann <teichmann@intevation.de>
parents: 6095
diff changeset
1798 </dc:if>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1799 </dc:filter>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1800 </floodplain>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1801 </dc:if>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1802 </dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1803 </dc:macro>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
1804
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1805 <dc:macro name="hwspoints_by_kind">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1806 <dc:comment>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1807 Call from a context where fed_name hws_kind hws_name and river_id is
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1808 availble
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1809 </dc:comment>
5015
86e79fbb8fa3 Added km filter to dc-config.
Raimund Renkert <rrenkert@intevation.de>
parents: 4895
diff changeset
1810
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1811 <dc:macro name="hwspoints_by_kind_factory">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1812 <dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1813 <hws factory="wmshwspointsfactory"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1814 ids="{$river_id};{$hws_name}"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1815 name="{$hws_name}"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1816 </dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1817 </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
1818
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1819 <dc:filter expr="$hws_kind=1">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1820 <dc:if test="dc:has-result()">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1821 <Durchlass>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1822 <dc:call-macro name="hwspoints_by_kind_factory"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1823 </Durchlass>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1824 </dc:if>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1825 </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
1826
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1827 <dc:filter expr="$hws_kind=2">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1828 <dc:if test="dc:has-result()">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1829 <Damm>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1830 <dc:call-macro name="hwspoints_by_kind_factory"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1831 </Damm>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1832 </dc:if>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1833 </dc:filter>
2096
bf598599782a Made old calculation results available for floodmaps.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 2086
diff changeset
1834
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1835 <dc:filter expr="$hws_kind=3">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1836 <dc:if test="dc:has-result()">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1837 <Graben>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1838 <dc:call-macro name="hwspoints_by_kind_factory"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1839 </Graben>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1840 </dc:if>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1841 </dc:filter>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1842 </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
1843
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1844 <dc:macro name="hwspoints">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1845 <hws_points>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1846 <official>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1847 <dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1848 <dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1849 SELECT DISTINCT
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1850 fs.name AS fed_name,
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1851 fs.id AS fed_id
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1852 FROM hws_points hws
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1853 JOIN fed_states fs ON hws.fed_state_id = fs.id
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1854 WHERE river_id = ${river_id}
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1855 AND hws.official=1
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1856 </dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1857 <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
1858 <dc:context>
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1859 <dc:statement>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1860 SELECT DISTINCT
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1861 name AS hws_name,
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1862 kind_id AS hws_kind
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1863 FROM hws_points
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1864 WHERE river_id = ${river_id}
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1865 AND official=1
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1866 AND fed_state_id = ${fed_id} ORDER BY name
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1867 </dc:statement>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1868 <fedstate description="{$fed_name}">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1869 <dc:call-macro name="hwspoints_by_kind"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1870 </fedstate>
5523
35dba807966a Applied contrib/inline-dc-attribute.xsl und fix idention. Need testing
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5522
diff changeset
1871 </dc:context>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1872 </dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1873 </dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1874 <dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1875 <dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1876 SELECT distinct
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1877 name AS hws_name,
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1878 kind_id AS hws_kind
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1879 FROM hws_points
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1880 WHERE river_id = ${river_id}
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1881 AND official=1
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1882 AND fed_state_id IS NULL
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1883 ORDER BY name
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1884 </dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1885 <hws_fed_unknown>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1886 <dc:call-macro name="hwspoints_by_kind"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1887 </hws_fed_unknown>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1888 </dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1889 </official>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1890 <inofficial>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1891 <dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1892 <dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1893 SELECT DISTINCT
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1894 fs.name AS fed_name,
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1895 fs.id AS fed_id
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1896 FROM hws_points hws
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1897 JOIN fed_states fs ON hws.fed_state_id = fs.id
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1898 WHERE river_id = ${river_id}
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1899 AND hws.official=0
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1900 </dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1901 <dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1902 <dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1903 <dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1904 SELECT DISTINCT
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1905 name AS hws_name,
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1906 kind_id AS hws_kind
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1907 FROM hws_points
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1908 WHERE river_id = ${river_id}
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1909 AND official=0
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1910 AND fed_state_id = ${fed_id} ORDER BY name
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1911 </dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1912 <fedstate description="{$fed_name}">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1913 <dc:call-macro name="hwspoints_by_kind"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1914 </fedstate>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1915 </dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1916 </dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1917 </dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1918 <dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1919 <dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1920 SELECT distinct
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1921 name AS hws_name,
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1922 kind_id AS hws_kind
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1923 FROM hws_points
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1924 WHERE river_id = ${river_id}
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1925 AND official=0
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1926 AND fed_state_id IS NULL ORDER BY name
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1927 </dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1928 <hws_fed_unknown>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1929 <dc:call-macro name="hwspoints_by_kind"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1930 </hws_fed_unknown>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1931 </dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1932 </inofficial>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1933 </hws_points>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1934 </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
1935
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1936 <dc:macro name="hwslines_by_kind">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1937 <dc:comment>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1938 Call from a context where fed_name hws_kind hws_name and river_id is
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1939 availble
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1940 </dc:comment>
5549
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
1941
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1942 <dc:macro name="hwslines_by_kind_factory">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1943 <dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1944 <hws factory="wmshwslinesfactory"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1945 ids="{$river_id};{$hws_name}"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1946 name="{$hws_name}"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1947 </dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1948 </dc:macro>
5549
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
1949
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1950 <dc:filter expr="$hws_kind=1">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1951 <dc:if test="dc:has-result()">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1952 <Durchlass>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1953 <dc:call-macro name="hwslines_by_kind_factory"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1954 </Durchlass>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1955 </dc:if>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1956 </dc:filter>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1957
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1958 <dc:filter expr="$hws_kind=2">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1959 <dc:if test="dc:has-result()">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1960 <Damm>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1961 <dc:call-macro name="hwslines_by_kind_factory"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1962 </Damm>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1963 </dc:if>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1964 </dc:filter>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1965
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1966 <dc:filter expr="$hws_kind=3">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1967 <dc:if test="dc:has-result()">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1968 <Graben>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1969 <dc:call-macro name="hwslines_by_kind_factory"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1970 </Graben>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1971 </dc:if>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1972 </dc:filter>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1973 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1974
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1975 <dc:macro name="hwslines">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1976 <hws_lines>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1977 <official>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1978 <dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1979 <dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1980 SELECT DISTINCT
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1981 fs.name AS fed_name,
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1982 fs.id AS fed_id
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1983 FROM hws_lines hws
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1984 JOIN fed_states fs ON hws.fed_state_id = fs.id
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1985 WHERE river_id = ${river_id}
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1986 AND hws.official=1
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1987 </dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1988 <dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1989 <dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1990 <dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1991 SELECT DISTINCT
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1992 name AS hws_name,
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1993 kind_id AS hws_kind
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1994 FROM hws_lines
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1995 WHERE river_id = ${river_id}
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1996 AND official=1
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1997 AND fed_state_id = ${fed_id} ORDER BY name
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1998 </dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
1999 <fedstate description="{$fed_name}">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2000 <dc:call-macro name="hwslines_by_kind"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2001 </fedstate>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2002 </dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2003 </dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2004 </dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2005 <dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2006 <dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2007 SELECT distinct
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2008 name AS hws_name,
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2009 kind_id AS hws_kind
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2010 FROM hws_lines
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2011 WHERE river_id = ${river_id}
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2012 AND official=1
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2013 AND fed_state_id IS NULL
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2014 ORDER BY name
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2015 </dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2016 <hws_fed_unknown>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2017 <dc:call-macro name="hwslines_by_kind"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2018 </hws_fed_unknown>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2019 </dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2020 </official>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2021 <inofficial>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2022 <dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2023 <dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2024 SELECT DISTINCT
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2025 fs.name AS fed_name,
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2026 fs.id AS fed_id
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2027 FROM hws_lines hws
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2028 JOIN fed_states fs ON hws.fed_state_id = fs.id
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2029 WHERE river_id = ${river_id}
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2030 AND hws.official=0
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2031 </dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2032 <dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2033 <dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2034 <dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2035 SELECT DISTINCT
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2036 name AS hws_name,
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2037 kind_id AS hws_kind
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2038 FROM hws_lines
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2039 WHERE river_id = ${river_id}
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2040 AND official=0
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2041 AND fed_state_id = ${fed_id} ORDER BY name
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2042 </dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2043 <fedstate description="{$fed_name}">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2044 <dc:call-macro name="hwslines_by_kind"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2045 </fedstate>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2046 </dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2047 </dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2048 </dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2049 <dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2050 <dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2051 SELECT distinct
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2052 name AS hws_name,
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2053 kind_id AS hws_kind
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2054 FROM hws_lines
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2055 WHERE river_id = ${river_id}
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2056 AND official=0
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2057 AND fed_state_id IS NULL ORDER BY name
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2058 </dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2059 <hws_fed_unknown>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2060 <dc:call-macro name="hwslines_by_kind"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2061 </hws_fed_unknown>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2062 </dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2063 </inofficial>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2064 </hws_lines>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2065 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2066
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2067 <dc:macro name="floodmarks">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2068 <dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2069 <dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2070 SELECT DISTINCT
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2071 COALESCE(CAST (year AS VARCHAR(64)), 'Unbekanntes Jahr') AS year
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2072 FROM flood_marks
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2073 WHERE river_id = ${river_id}
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2074 </dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2075 <dc:if test="dc:has-result()">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2076 <floodmarks>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2077 <dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2078 <floodmark name="{$year}"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2079 factory="wmsfloodmarkfactory"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2080 ids="{$river_id};{$year};{$year}"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2081 </dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2082 </floodmarks>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2083 </dc:if>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2084 </dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2085 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2086
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2087 <dc:macro name="catchments">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2088 <catchments>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2089 <catchment_wms factory="externalwmsfactory"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2090 ids="http://geoportal.bafg.de/wmsproxy/INSPIRE/DrainageBasin;HY.PHYSICALWATERS.CATCHMENTS;Einzugsgebiete (WMS)" />
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2091 <dc:call-macro name="flood-map-gaugelocations"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2092 </catchments>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2093 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2094
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2095 <dc:macro name="flood-map-gaugelocations">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2096 <gaugelocations>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2097 <gauge_points factory="externalwmsfactory" ids="http://www.pegelonline.wsv.de/webservices/gis/wms;Pegelpunkte;Pegelpunkte (WSV)"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2098 <gauge_names factory="externalwmsfactory" ids="http://www.pegelonline.wsv.de/webservices/gis/wms;Pegelnamen;Pegelnamen (WSV)"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2099 <gauge_level factory="externalwmsfactory" ids="http://www.pegelonline.wsv.de/webservices/gis/wms;Pegelwasserstand;Aktueller Wasserstand (WSV)"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2100 <gauge_tendency factory="externalwmsfactory" ids="http://www.pegelonline.wsv.de/webservices/gis/wms;TendenzWasserstand;Tendenz des Wasserstands (WSV)"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2101 </gaugelocations>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2102 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2103
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2104 <dc:macro name="flood-map-riveraxis">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2105 <dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2106 <dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2107 SELECT DISTINCT
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2108 ak.name AS kind_name,
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2109 ax.kind_id AS kind_id,
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2110 ax.name AS layer_name
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2111 FROM river_axes ax
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2112 JOIN axis_kinds ak on ax.kind_id = ak.id
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2113 WHERE river_id = ${river_id}
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2114 </dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2115 <dc:if test="dc:has-result()">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2116 <axis>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2117 <dc:filter expr="$kind_id=1">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2118 <dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2119 <actual description="{$kind_name}"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2120 ids="{$river_id};{$kind_name};{$kind_id}"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2121 factory="riveraxis"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2122 </dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2123 </dc:filter>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2124 <dc:filter expr="$kind_id!=1">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2125 <other>
5591
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2126 <dc:for-each>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2127 <misc-axis description="{$layer_name}"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2128 ids="{$river_id};{$layer_name};{$kind_id}"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2129 factory="riveraxis"/>
5591
55d6c5cac9d1 Added new elements to M-INFO datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5579
diff changeset
2130 </dc:for-each>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2131 </other>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2132 </dc:filter>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2133 </axis>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2134 </dc:if>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2135 </dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2136 </dc:macro>
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2137
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2138 <dc:macro name="flood-map-km">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2139 <dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2140 <dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2141 SELECT DISTINCT 1 FROM river_axes_km WHERE river_id = ${river_id}
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2142 </dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2143 <dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2144 <kilometrage factory="wmskmfactory" ids="{$river_id}"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2145 </dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2146 </dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2147 </dc:macro>
5631
ca4b6263996c Added old calculations to datacage 'M-INFO Sedimentfracht'.
Raimund Renkert <rrenkert@intevation.de>
parents: 5627
diff changeset
2148
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2149 <dc:macro name="flood-map-fixpoints">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2150 <dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2151 <dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2152 SELECT name AS name
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2153 FROM fixpoints
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2154 WHERE river_id = ${river_id}
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2155 GROUP BY name
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2156 </dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2157 <dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2158 <fixpoints factory="wmsfixpointsfactory"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2159 ids="{$river_id};{$name}"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2160 </dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2161 </dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2162 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2163
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2164 <dc:macro name="flood-map-qps">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2165 <dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2166 <dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2167 SELECT DISTINCT
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2168 cs.kind_id AS kind_id,
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2169 cs.name AS layer_name,
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2170 ck.name AS kind_name
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2171 FROM cross_section_tracks cs
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2172 JOIN cross_section_track_kinds ck ON cs.kind_id = ck.id
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2173 WHERE river_id = ${river_id}
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2174 </dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2175 <dc:if test="dc:has-result()">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2176 <qps>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2177 <dc:filter expr="$kind_id=1">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2178 <dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2179 <actual description="{$kind_name}"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2180 factory="wmsqpsfactory"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2181 ids="{$river_id};{$kind_name};{$kind_id}"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2182 </dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2183 </dc:filter>
6098
c21bfa653942 Datacage: Fixed wrong variable access in meta-data.xml
Sascha L. Teichmann <teichmann@intevation.de>
parents: 6095
diff changeset
2184 <dc:filter expr="$kind_id = 0">
c21bfa653942 Datacage: Fixed wrong variable access in meta-data.xml
Sascha L. Teichmann <teichmann@intevation.de>
parents: 6095
diff changeset
2185 <dc:if test="dc:has-result()">
c21bfa653942 Datacage: Fixed wrong variable access in meta-data.xml
Sascha L. Teichmann <teichmann@intevation.de>
parents: 6095
diff changeset
2186 <other>
c21bfa653942 Datacage: Fixed wrong variable access in meta-data.xml
Sascha L. Teichmann <teichmann@intevation.de>
parents: 6095
diff changeset
2187 <dc:for-each>
c21bfa653942 Datacage: Fixed wrong variable access in meta-data.xml
Sascha L. Teichmann <teichmann@intevation.de>
parents: 6095
diff changeset
2188 <misc-qps description="{$layer_name}"
c21bfa653942 Datacage: Fixed wrong variable access in meta-data.xml
Sascha L. Teichmann <teichmann@intevation.de>
parents: 6095
diff changeset
2189 factory="wmsqpsfactory"
c21bfa653942 Datacage: Fixed wrong variable access in meta-data.xml
Sascha L. Teichmann <teichmann@intevation.de>
parents: 6095
diff changeset
2190 ids="{$river_id};{$layer_name};{$kind_id}"/>
c21bfa653942 Datacage: Fixed wrong variable access in meta-data.xml
Sascha L. Teichmann <teichmann@intevation.de>
parents: 6095
diff changeset
2191 </dc:for-each>
c21bfa653942 Datacage: Fixed wrong variable access in meta-data.xml
Sascha L. Teichmann <teichmann@intevation.de>
parents: 6095
diff changeset
2192 </other>
c21bfa653942 Datacage: Fixed wrong variable access in meta-data.xml
Sascha L. Teichmann <teichmann@intevation.de>
parents: 6095
diff changeset
2193 </dc:if>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2194 </dc:filter>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2195 </qps>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2196 </dc:if>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2197 </dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2198 </dc:macro>
5549
38acd82feeac Added bed quality facets to flow velocity datacage.
Raimund Renkert <rrenkert@intevation.de>
parents: 5534
diff changeset
2199
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2200 <dc:macro name="flood-map-buildings">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2201 <buildings>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2202 <dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2203 <dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2204 SELECT DISTINCT
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2205 b.name AS building_name,
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2206 bk.name AS building_kind,
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2207 b.kind_id AS building_kind_id
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2208 FROM buildings b
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2209 JOIN building_kinds bk ON b.kind_id = bk.id
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2210 WHERE river_id = ${river_id}
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2211 </dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2212 <dc:if test="dc:has-result()">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2213 <dc:filter expr="$building_kind_id!=0">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2214 <dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2215 <buildings description="{$building_kind}"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2216 factory="wmsbuildingsfactory"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2217 ids="{$river_id};{$building_kind};{$building_kind_id}"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2218 </dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2219 </dc:filter>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2220 <dc:filter expr="$building_kind_id=0">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2221 <other>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2222 <dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2223 <buildings description="{$building_name}"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2224 factory="wmsbuildingsfactory"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2225 ids="{$river_id};{$building_name}"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2226 </dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2227 </other>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2228 </dc:filter>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2229 </dc:if>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2230 </dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2231 <dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2232 <dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2233 SELECT DISTINCT
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2234 j.kind_id AS jetty_kind_id,
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2235 jk.name AS jetty_kind
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2236 FROM jetties j
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2237 JOIN jetty_kinds jk ON j.kind_id = jk.id
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2238 WHERE river_id = ${river_id}
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2239 </dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2240 <dc:if test="dc:has-result()">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2241 <jetties>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2242 <dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2243 <jetty description="{$jetty_kind}"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2244 factory="wmsjettiesfactory"
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2245 ids="{$river_id};{$jetty_kind};{$jetty_kind_id}"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2246 </dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2247 </jetties>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2248 </dc:if>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2249 </dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2250 </buildings>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2251 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2252
6054
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
2253 <dc:macro name="officiallines_user">
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
2254 <dc:comment comment=".wst -------------------------------"/>
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
2255 <officiallines>
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
2256 <dc:for-each>
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
2257 <dc:context>
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
2258 <dc:statement>
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
2259 SELECT m.id AS a_id,
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
2260 m.state AS a_state,
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
2261 m.gid AS a_gid,
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
2262 m.creation AS a_creation,
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
2263 ardg.v AS gaugy,
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
2264 arv.v AS wqsingle
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
2265 FROM master_artifacts m,
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
2266 artifact_data ardg,
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
2267 artifact_data arv
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
2268 WHERE m.collection_id = ${collection_id}
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
2269 AND m.gid = CAST(${artifact-id} AS uuid)
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
2270 AND ardg.artifact_id = m.id
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
2271 AND ardg.k = 'ld_gaugename'
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
2272 AND arv.artifact_id = m.id
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
2273 AND arv.k = 'wq_single'
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
2274 AND EXISTS (
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
2275 SELECT id
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
2276 FROM artifact_data ad
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
2277 WHERE ad.artifact_id = m.id
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
2278 AND k = 'river'
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
2279 AND v = ${river})
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
2280 </dc:statement>
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
2281 <dc:for-each>
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
2282 <dc:context connection="system">
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
2283 <dc:statement>
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
2284 SELECT ol.wst_id AS wstid,
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
2285 ol.wst_column_pos AS wstcolpos,
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
2286 ol.name AS olname,
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
2287 ol.value AS oval
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
2288 FROM official_q_values ol
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
2289 WHERE ol.value = CAST(${wqsingle} AS NUMERIC(10,2))
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
2290 AND ol.gauge_name = ${gaugy}
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
2291 </dc:statement>
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
2292 <dc:for-each>
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
2293 <dc:element name="${olname}">
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
2294 <dc:attribute name="name" value="${olname}"/>
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
2295 <dc:attribute name="ids" value="additionals-wstv-${wstcolpos}-${wstid}"/>
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
2296 <dc:attribute name="factory" value="staticwkms"/>
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
2297 <dc:attribute name="out" value="${out}"/>
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
2298 </dc:element>
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
2299 </dc:for-each>
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
2300 </dc:context>
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
2301 </dc:for-each>
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
2302 </dc:context>
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
2303 </dc:for-each>
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
2304 </officiallines>
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
2305 </dc:macro>
5db238b0176e Readd accidentally removed macros
Andre Heinecke <aheinecke@intevation.de>
parents: 6053
diff changeset
2306
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2307 <!-- Common stuff -->
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2308
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2309 <dc:macro name="km-filtered-wsts">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2310 <dc:context connection="system">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2311 <dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2312 SELECT w.kind AS kind,
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2313 w.id AS wst_id,
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2314 wc.id AS wst_column_id,
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2315 wc.position AS wst_column_position,
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2316 wc.description AS info,
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2317 w.description AS wst_description,
6111
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
2318 COALESCE(wc.name, '') AS wst_column_name,
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2319 wr.a AS deffrom,
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2320 wr.b AS defto
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2321 FROM wst_columns wc
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2322 JOIN wsts w ON wc.wst_id = w.id
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2323 JOIN wst_ranges wr ON wc.id = wr.wst_column_id
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2324 WHERE w.river_id = ${river_id} AND
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2325 NOT((${tokm} &lt; wr.a) or (${fromkm} &gt; wr.b))
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2326 </dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2327 <dc:macro-body/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2328 </dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2329 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2330
6095
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
2331 <dc:macro name="all-user-artifacts">
6072
8320eb8ed8c8 meta-data.xml: Wrap user-content in user-range to use 'range intelligence'.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 6071
diff changeset
2332 <dc:context connection="user">
8320eb8ed8c8 meta-data.xml: Wrap user-content in user-range to use 'range intelligence'.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 6071
diff changeset
2333 <dc:comment>Select collections and masterartifacts.</dc:comment>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2334 <dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2335 SELECT c.name AS collection_name,
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2336 ma.id AS a_id,
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2337 ma.state AS a_state,
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2338 ma.gid AS a_gid,
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2339 ma.creation AS a_creation,
6069
dcbc06ca5d19 meta-data.xml: Make a select a bit more human-resolvable.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 6054
diff changeset
2340 COALESCE(ma.ld_mode, '') AS ld_m,
dcbc06ca5d19 meta-data.xml: Make a select a bit more human-resolvable.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 6054
diff changeset
2341 COALESCE(ma.ld_locations, '') AS ld_l,
dcbc06ca5d19 meta-data.xml: Make a select a bit more human-resolvable.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 6054
diff changeset
2342 COALESCE(ma.ld_from, '') AS ld_f,
6095
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
2343 COALESCE(ma.ld_to, '') AS ld_t,
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
2344 o.name AS out_name,
6111
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
2345 o.id AS out_id,
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
2346 f.name AS facet_name,
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
2347 f.num AS facet_num,
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
2348 f.description AS facet_description,
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
2349 f.id AS fid
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2350 FROM users u
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2351 JOIN collections c ON c.user_id = u.id
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2352 JOIN master_artifacts_range ma ON ma.collection_id = c.id
6095
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
2353 JOIN outs o ON o.artifact_id = ma.id
6111
6815714c1f97 Commit changes described in r6110
Andre Heinecke <aheinecke@intevation.de>
parents: 6110
diff changeset
2354 JOIN facets f ON f.out_id = o.id
6070
cd8f77794a03 meta-data.xml: Fix query, select on user-id not collection-id.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 6069
diff changeset
2355 WHERE u.gid = CAST(${user-id} AS UUID)
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2356 AND ma.gid &lt;&gt; CAST(${artifact-id} AS uuid)
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2357 AND EXISTS (
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2358 SELECT id
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2359 FROM artifact_data ad
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2360 WHERE ad.artifact_id = ma.id
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2361 AND k = 'river'
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2362 AND v = ${river})
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2363 </dc:statement>
6095
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
2364 <dc:virtual-column name="deffrom" type="number" expr="dc:fromValue($ld_m, $ld_l, $ld_f)">
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
2365 <dc:virtual-column name="defto" type="number" expr="dc:toValue($ld_m, $ld_l, $ld_t)">
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
2366 <dc:macro-body/>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
2367 </dc:virtual-column>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
2368 </dc:virtual-column>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2369 </dc:context>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2370 </dc:macro>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2371
6095
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
2372 <dc:macro name="km-filtered-user-artifacts">
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
2373 <dc:filter expr="not($deffrom &gt; $tokm or $defto &lt; $fromkm)">
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
2374 <dc:macro-body/>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
2375 </dc:filter>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
2376 </dc:macro>
0f3ca851d204 First part of the filtering datacage for user data.
Andre Heinecke <aheinecke@intevation.de>
parents: 6084
diff changeset
2377
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2378 <dc:macro name="user-range">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2379 <dc:choose>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2380 <dc:when test="dc:contains($parameters, 'user-id')">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2381 <dc:context connection="user">
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2382 <dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2383 SELECT COALESCE(ld_mode, '') AS ldm,
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2384 COALESCE(ld_locations, '') AS ldl,
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2385 COALESCE(ld_from, '') AS ldf,
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2386 COALESCE(ld_to, '') AS ldt
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2387 FROM master_artifacts_range
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2388 WHERE gid = CAST(${artifact-id} AS uuid)
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2389 </dc:statement>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2390 <dc:for-each>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2391 <dc:variable name="fromkm" type="number" expr="dc:fromValue($ldm, $ldl, $ldf)"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2392 <dc:variable name="tokm" type="number" expr="dc:toValue($ldm, $ldl, $ldt)"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2393 <dc:macro-body/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2394 </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
2395 </dc:context>
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2396 </dc:when>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2397 <dc:otherwise>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2398 <dc:variable name="fromkm" type="number" expr="dc:fromValue('', '', '')"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2399 <dc:variable name="tokm" type="number" expr="dc:toValue('', '', '')"/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2400 <dc:macro-body/>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2401 </dc:otherwise>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2402 </dc:choose>
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2403 </dc:macro>
1657
91d038c7aae5 Bugfix: #328 Improved datacage configuration and labels for selected waterlevels.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 1186
diff changeset
2404
6053
a18aafc1372f Commit meta-data.xml refactoring
Andre Heinecke <aheinecke@intevation.de>
parents: 6036
diff changeset
2405 </datacage>
1046
0a5eff5511b1 Fixed flys/issue262: Unified user and system datacage template
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
2406 </dc:template>

http://dive4elements.wald.intevation.org