comparison flys-artifacts/doc/conf/meta-data.xml @ 1978:4c10a4cb978f

Recommend cross sections if they can be shown. flys-artifacts/trunk@3405 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Tue, 13 Dec 2011 13:37:18 +0000
parents efff4305dc05
children dd3f5bd174ea
comparison
equal deleted inserted replaced
1977:9dc399718335 1978:4c10a4cb978f
227 </heightmark> 227 </heightmark>
228 </dc:elements> 228 </dc:elements>
229 </dc:context> 229 </dc:context>
230 </heightmarks> 230 </heightmarks>
231 </dc:macro> 231 </dc:macro>
232
232 <dc:macro name="basedata_4_heightmarks-wq"> 233 <dc:macro name="basedata_4_heightmarks-wq">
233 <heightmarks> 234 <heightmarks>
234 <dc:context> 235 <dc:context>
235 <dc:statement> 236 <dc:statement>
236 SELECT id AS prot_id, 237 SELECT id AS prot_id,
312 <dc:attribute name="factory" value="annotations"/> 313 <dc:attribute name="factory" value="annotations"/>
313 <dc:attribute name="ids" value="${river_id}"/> 314 <dc:attribute name="ids" value="${river_id}"/>
314 </annotation> 315 </annotation>
315 </dc:macro> 316 </dc:macro>
316 317
318 <dc:macro name="cross_sections">
319 <cross-sections>
320 <dc:attribute name="id" value="flood-protections-${river_id}"/>
321 <dc:context>
322 <dc:statement>
323 SELECT id AS prot_id,
324 description AS prot_description
325 FROM cross_sections WHERE river_id = ${river_id}
326 </dc:statement>
327 <dc:elements>
328 <cross-section>
329 <dc:attribute name="name" value="${prot_description}"/>
330 <dc:attribute name="ids" value="${prot_id}"/>
331 <dc:attribute name="factory" value="crosssections"/>
332 </cross-section>
333 </dc:elements>
334 </dc:context>
335 </cross-sections>
336 </dc:macro>
337
317 338
318 <dc:comment> 339 <dc:comment>
319 340
320 + River-Node 341 + River-Node
321 342
329 <dc:comment> 350 <dc:comment>
330 Recommendations. 351 Recommendations.
331 </dc:comment> 352 </dc:comment>
332 <dc:if test="dc:contains($artifact-outs, 'w_differences') or (dc:contains($artifact-outs, 'discharge_longitudinal_section'))"> 353 <dc:if test="dc:contains($artifact-outs, 'w_differences') or (dc:contains($artifact-outs, 'discharge_longitudinal_section'))">
333 <dc:call-macro name="annotations"/> 354 <dc:call-macro name="annotations"/>
355 </dc:if>
356 <dc:if test="dc:contains($artifact-outs, 'cross_section')">
357 <dc:call-macro name="cross_sections"/>
334 </dc:if> 358 </dc:if>
335 </dc:when> 359 </dc:when>
336 <dc:otherwise> 360 <dc:otherwise>
337 <dc:comment> 361 <dc:comment>
338 Non - Recommendations. 362 Non - Recommendations.

http://dive4elements.wald.intevation.org