comparison artifacts/doc/conf/meta-data.xml @ 6054:5db238b0176e

Readd accidentally removed macros
author Andre Heinecke <aheinecke@intevation.de>
date Tue, 21 May 2013 18:36:32 +0200
parents a18aafc1372f
children dcbc06ca5d19
comparison
equal deleted inserted replaced
6053:a18aafc1372f 6054:5db238b0176e
1779 <inofficial> 1779 <inofficial>
1780 <dc:call-macro name="durchlass_damm_graben"/> 1780 <dc:call-macro name="durchlass_damm_graben"/>
1781 </inofficial> 1781 </inofficial>
1782 </dc:if> 1782 </dc:if>
1783 </dc:filter> 1783 </dc:filter>
1784 </dc:macro>
1785
1786 <dc:macro name="flood-map-hws-lines">
1787 <dc:context>
1788 <dc:statement>
1789 SELECT DISTINCT
1790 name AS hws_name,
1791 official AS hws_official,
1792 kind_id AS hws_kind
1793 FROM hws_lines
1794 WHERE river_id = ${river_id}
1795 </dc:statement>
1796 <dc:if test="dc:has-result()">
1797 <lines>
1798 <dc:call-macro name="filter_hws_ddg"/>
1799 </lines>
1800 </dc:if>
1801 </dc:context>
1802 </dc:macro>
1803
1804 <dc:macro name="flood-map-hws-points">
1805 <dc:context>
1806 <dc:statement>
1807 SELECT DISTINCT
1808 name AS hws_name,
1809 official AS hws_official,
1810 kind_id AS hws_kind
1811 FROM hws_points
1812 WHERE river_id = ${river_id}
1813 </dc:statement>
1814 <dc:if test="dc:has-result()">
1815 <points>
1816 <dc:call-macro name="filter_hws_ddg"/>
1817 </points>
1818 </dc:if>
1819 </dc:context>
1784 </dc:macro> 1820 </dc:macro>
1785 1821
1786 <dc:macro name="flood-map-hydr-boundaries-state"> 1822 <dc:macro name="flood-map-hydr-boundaries-state">
1787 <federal> 1823 <federal>
1788 <dc:context> 1824 <dc:context>
2506 </dc:if> 2542 </dc:if>
2507 </dc:context> 2543 </dc:context>
2508 </buildings> 2544 </buildings>
2509 </dc:macro> 2545 </dc:macro>
2510 2546
2547 <dc:macro name="officiallines_user">
2548 <dc:comment comment=".wst -------------------------------"/>
2549 <officiallines>
2550 <dc:for-each>
2551 <dc:context>
2552 <dc:statement>
2553 SELECT m.id AS a_id,
2554 m.state AS a_state,
2555 m.gid AS a_gid,
2556 m.creation AS a_creation,
2557 ardg.v AS gaugy,
2558 arv.v AS wqsingle
2559 FROM master_artifacts m,
2560 artifact_data ardg,
2561 artifact_data arv
2562 WHERE m.collection_id = ${collection_id}
2563 AND m.gid = CAST(${artifact-id} AS uuid)
2564 AND ardg.artifact_id = m.id
2565 AND ardg.k = 'ld_gaugename'
2566 AND arv.artifact_id = m.id
2567 AND arv.k = 'wq_single'
2568 AND EXISTS (
2569 SELECT id
2570 FROM artifact_data ad
2571 WHERE ad.artifact_id = m.id
2572 AND k = 'river'
2573 AND v = ${river})
2574 </dc:statement>
2575 <dc:for-each>
2576 <dc:context connection="system">
2577 <dc:statement>
2578 SELECT ol.wst_id AS wstid,
2579 ol.wst_column_pos AS wstcolpos,
2580 ol.name AS olname,
2581 ol.value AS oval
2582 FROM official_q_values ol
2583 WHERE ol.value = CAST(${wqsingle} AS NUMERIC(10,2))
2584 AND ol.gauge_name = ${gaugy}
2585 </dc:statement>
2586 <dc:for-each>
2587 <dc:element name="${olname}">
2588 <dc:attribute name="name" value="${olname}"/>
2589 <dc:attribute name="ids" value="additionals-wstv-${wstcolpos}-${wstid}"/>
2590 <dc:attribute name="factory" value="staticwkms"/>
2591 <dc:attribute name="out" value="${out}"/>
2592 </dc:element>
2593 </dc:for-each>
2594 </dc:context>
2595 </dc:for-each>
2596 </dc:context>
2597 </dc:for-each>
2598 </officiallines>
2599 </dc:macro>
2600
2511 <!-- Common stuff --> 2601 <!-- Common stuff -->
2512 2602
2513 <dc:macro name="km-filtered-wsts"> 2603 <dc:macro name="km-filtered-wsts">
2514 <dc:context connection="system"> 2604 <dc:context connection="system">
2515 <dc:statement> 2605 <dc:statement>

http://dive4elements.wald.intevation.org