view flys-backend/doc/annotation-types.xml @ 5509:627584bc0586

Datacage: Added <dc:filter> element. This allows cleaner way to narrow the datasets. Example: <dc:context> <dc:statement> SELECT DISTINCT name AS hws_name, official AS hws_official, kind_id AS hws_kind FROM hws_lines WHERE river_id = ${river_id} </dc:statement> <dc:if test="dc:has-result()"> <lines> <dc:macro name="hws-lines"> <dc:elements> <hws factory="hwsfactory" name="{$hws_name}"/> </dc:elements> </dc:macro> <dc:filter expr="$hws_official=1"> <dc:if test="dc:has-result()"> <official> <dc:filter expr="$hws_kind=1"> <dc:if test="dc:has-result()"> <Durchlass><dc:call-macro name="hws-lines"></Durchlass> </dc:if> </dc:filter> <dc:filter expr="$hws_kind=2"> <dc:if test="dc:has-result()"> <Damm><dc:call-macro name="hws-lines"></Damm> </dc:if> </dc:filter> <dc:filter expr="$hws_kind=3"> <dc:if test="dc:has-result()"> <Graben><dc:call-macro name="hws-lines"></Graben> </dc:if> </dc:filter> </official> </dc:if> </dc:filter> </lines> </dc:if> </dc:context>
author Sascha L. Teichmann <teichmann@intevation.de>
date Thu, 28 Mar 2013 16:51:15 +0100
parents 92ba5ffb8ba8
children
line wrap: on
line source
<?xml version="1.0" encoding="UTF-8" ?>
<annotation>
    <types>
        <type name="Abzweigung"/>
        <type name="Berechnungsstrecke"/>
        <type name="Brücke"/>
        <type name="Bundesland"/>
        <type name="Deich"/>
        <type name="Einmündung"/>
        <type name="Fähre"/>
        <type name="Gemeinde"/>
        <type name="Grenze"/>
        <type name="Hafen"/>
        <type name="HW-Schutz"/>
        <type name="Landkreis"/>
        <type name="Meldestelle"/>
        <type name="Messstelle"/>
        <type name="Pegel"/>
        <type name="Stauwehr"/>
        <type name="Staatsgrenze"/>
        <type name="Staat"/>
        <type name="WSA"/>
        <type name="Zufluß"/>
        <type name="Sonstige" default="true"/>
    </types>

    <patterns>
        <file pattern="^Brücken$" type="Brücke"/>
        <file pattern="^Deich.*$" type="Deich"/>
        <file pattern="^Hafen$" type="Hafen"/>
        <file pattern="^Pegel-alle$" type="Pegel"/>
        <file pattern="^Pegel$" type="Pegel"/>
        <file pattern="^Wehr$" type="Stauwehr"/>
        <file pattern="^Stauwehr$" type="Stauwehr"/>
        <file pattern="^Zufluß$" type="Zufluß"/>

        <line pattern="^Abz\.?[:\s].*$" type="Abzweigung"/>
        <line pattern="^Berechnungsstrecke.*$" type="Berechnungsstrecke"/>
        <line pattern="^Brücke[:\s].*$" type="Brücke"/>
        <line pattern="^Bundesland[:\s].*$" type="Bundesland"/>
        <line pattern="^Einmündung[:\s].*$" type="Einmündung"/>
        <line pattern="^Fähre[:\s].*$" type="Abzweigung"/>
        <line pattern="^Gemeinde[:\s].*$" type="Gemeinde"/>
        <line pattern="^Grenze[:\s].*$" type="Grenze"/>
        <line pattern="^Hafen[:\s].*$" type="Hafen"/>
        <line pattern="^HW-Schutz[:\s].*$" type="HW-Schutz"/>
        <line pattern="^Landkreis[:\s].*$" type="Landkreis"/>
        <line pattern="^Meldestelle[:\s].*$" type="Meldestelle"/>
        <line pattern="^Messstelle[:\s].*$" type="Messstelle"/>
        <line pattern="^Geschiebemessstelle[:\s].*$" type="Messstelle"/>
        <line pattern="^Pegel[:\s].*$" type="Pegel"/>
        <line pattern="^Staatsgrenze[:\s].*$" type="Staatsgrenze"/>
        <line pattern="^Staat[:\s].*$" type="Staat"/>
        <line pattern="^Wehr[:\s].*$" type="Stauwehr"/>
        <line pattern="^WSA[:\s].*$" type="WSA"/>
        <line pattern="^Zufluß[:\s].*$" type="Zufluß"/>
    </patterns>
</annotation>

http://dive4elements.wald.intevation.org