comparison flys-artifacts/doc/conf/meta-data.xml @ 3307:81a98f360553

Very basic official lines in dc, malplaced. flys-artifacts/trunk@4995 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Fri, 13 Jul 2012 13:43:26 +0000
parents a8ce3263b0a7
children fbeed0ded014
comparison
equal deleted inserted replaced
3306:1b41dc00b1f7 3307:81a98f360553
1168 FROM collections c JOIN users u ON c.user_id = u.id 1168 FROM collections c JOIN users u ON c.user_id = u.id
1169 WHERE u.gid = CAST(${user-id} AS uuid) 1169 WHERE u.gid = CAST(${user-id} AS uuid)
1170 ORDER BY c.creation DESC 1170 ORDER BY c.creation DESC
1171 </dc:statement> 1171 </dc:statement>
1172 1172
1173 <!-- OFFICIAL LINES -->
1174 <dc:if test="dc:contains($artifact-outs, 'longitudinal_section')">
1175 <dc:comment comment=".wst -------------------------------"/>
1176 <officiallines>
1177 <dc:elements>
1178 <dc:context>
1179 <dc:statement>
1180 SELECT m.id AS a_id, m.state AS a_state, m.gid AS a_gid, m.creation AS a_creation, ardg.v as gaugy, arv.v as wqsingle
1181 FROM master_artifacts m, artifact_data ardg, artifact_data arv
1182 WHERE m.collection_id = ${collection_id} AND m.gid = CAST(${artifact-id} AS uuid) AND ardg.artifact_id = m.id AND ardg.k = 'ld_gaugename' AND arv.artifact_id = m.id AND arv.k = 'wq_single'
1183 AND EXISTS (
1184 SELECT id FROM artifact_data ad WHERE ad.artifact_id = m.id AND k = 'river' AND v = ${river})
1185 </dc:statement>
1186 <dc:elements>
1187 <dc:context connection="system">
1188 <dc:statement>
1189 SELECT ol.wst_id AS wstid, ol.wst_column_pos AS wstcolpos, ol.name AS olname, ol.value AS oval
1190 FROM official_q_values ol
1191 WHERE ol.value = CAST(${wqsingle} AS NUMERIC(10,2)) AND ol.gauge_name = ${gaugy}
1192 </dc:statement>
1193 <dc:elements>
1194 <dc:element name="${olname}">
1195 <dc:attribute name="name" value="${olname}"/>
1196 <dc:attribute name="ids" value="additionals-wstv-${wstcolpos}-${wstid}"/>
1197 <dc:attribute name="factory" value="staticwkms"/>
1198 </dc:element>
1199 </dc:elements>
1200 </dc:context>
1201 </dc:elements>
1202 </dc:context>
1203 </dc:elements>
1204 </officiallines>
1205 </dc:if>
1173 1206
1174 <dc:comment> 1207 <dc:comment>
1175 SHOW W-DIFFERENCES 1208 SHOW W-DIFFERENCES
1176 </dc:comment> 1209 </dc:comment>
1177 1210

http://dive4elements.wald.intevation.org