comparison flys-artifacts/doc/conf/meta-data.xml @ 2736:8839086c4b7b

Modify Cross-Section DC conf to allow loading of waterlevels, fixations and heightmarks. flys-artifacts/trunk@4469 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Wed, 23 May 2012 08:12:49 +0000
parents 7311d0336600
children 5eb3edb4f37b
comparison
equal deleted inserted replaced
2735:930a2b65f96b 2736:8839086c4b7b
400 Non - Recommendations. 400 Non - Recommendations.
401 </dc:comment> 401 </dc:comment>
402 <dc:if test="dc:contains($artifact-outs, 'cross_section')"> 402 <dc:if test="dc:contains($artifact-outs, 'cross_section')">
403 <dc:call-macro name="basedata_0"/> 403 <dc:call-macro name="basedata_0"/>
404 <dc:call-macro name="basedata_1_additionals"/> 404 <dc:call-macro name="basedata_1_additionals"/>
405 <dc:call-macro name="basedata_2_fixations"/>
406 <dc:call-macro name="basedata_4_heightmarks-points"/>
405 <dc:call-macro name="cross_sections"/> 407 <dc:call-macro name="cross_sections"/>
406 <dc:call-macro name="hyks"/> 408 <dc:call-macro name="hyks"/>
407 </dc:if> 409 </dc:if>
408 <dc:if test="dc:contains($artifact-outs, 'discharge_longitudinal_section')"> 410 <dc:if test="dc:contains($artifact-outs, 'discharge_longitudinal_section')">
409 <dc:call-macro name="basedata_0"/> 411 <dc:call-macro name="basedata_0"/>
1092 </dc:elements> 1094 </dc:elements>
1093 </dc:context> 1095 </dc:context>
1094 </dc:elements> 1096 </dc:elements>
1095 </computed_discharge_curves> 1097 </computed_discharge_curves>
1096 </dc:if> 1098 </dc:if>
1097 1099
1098 1100 <dc:comment>
1099 <dc:if test="dc:contains($artifact-outs, 'longitudinal_section') or (dc:contains($artifact-outs, 'discharge_longitudinal_section') or (dc:contains($artifact-outs, 'w_differences')) or (dc:contains($artifact-outs, 'cross_section')))"> 1101 CROSS SECTION
1102 </dc:comment>
1103
1104 <dc:if test="dc:contains($artifact-outs, 'cross_section')">
1105 <waterlevels>
1106 <dc:elements>
1107 <dc:context>
1108 <dc:statement>
1109 SELECT m.id AS a_id, m.state AS a_state, m.gid AS a_gid, m.creation AS a_creation
1110 FROM master_artifacts m
1111 WHERE m.collection_id = ${collection_id} AND m.gid &lt;&gt; CAST(${artifact-id} AS uuid)
1112 AND EXISTS (
1113 SELECT id FROM artifact_data ad WHERE ad.artifact_id = m.id AND k = 'river' AND v = ${river})
1114 </dc:statement>
1115 <dc:elements>
1116 <dc:context>
1117 <dc:statement>
1118 SELECT id AS out_id
1119 FROM outs
1120 WHERE artifact_id = ${a_id} AND name = 'cross_section'
1121 </dc:statement>
1122 <dc:elements>
1123 <dc:context>
1124 <dc:statement>
1125 SELECT name AS facet_name, num as facet_num, description AS facet_description
1126 FROM facets
1127 WHERE out_id = ${out_id}
1128 ORDER BY num ASC, name DESC
1129 </dc:statement>
1130 <longitudinal_section_columns>
1131 <dc:attribute name="description" value="${river} ${a_creation}"/>
1132 <dc:elements>
1133 <dc:element name="${facet_name}">
1134 <dc:attribute name="description" value="${facet_description}"/>
1135 <dc:attribute name="ids" value="${facet_num}"/>
1136 <dc:attribute name="factory" value="winfo"/>
1137 <dc:attribute name="artifact-id" value="${a_gid}"/>
1138 <dc:attribute name="out" value="cross_section"/>
1139 </dc:element>
1140 </dc:elements>
1141 </longitudinal_section_columns>
1142 </dc:context>
1143 </dc:elements>
1144 </dc:context>
1145 </dc:elements>
1146 </dc:context>
1147 </dc:elements>
1148 </waterlevels>
1149 </dc:if>
1150
1151
1152 <dc:if test="dc:contains($artifact-outs, 'longitudinal_section') or (dc:contains($artifact-outs, 'discharge_longitudinal_section') or (dc:contains($artifact-outs, 'w_differences')))">
1100 <waterlevels> 1153 <waterlevels>
1101 <dc:elements> 1154 <dc:elements>
1102 <dc:context> 1155 <dc:context>
1103 <dc:statement> 1156 <dc:statement>
1104 SELECT m.id AS a_id, m.state AS a_state, m.gid AS a_gid, m.creation AS a_creation 1157 SELECT m.id AS a_id, m.state AS a_state, m.gid AS a_gid, m.creation AS a_creation

http://dive4elements.wald.intevation.org