view gnv-artifacts/doc/conf/products/layer/conf.xml @ 756:1614b27dcbfa

Added Support of Layers which are Joined from two Tables. gnv-artifacts/trunk@804 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Fri, 19 Mar 2010 12:12:10 +0000
parents a4b66195d55a
children 28028979c813
line wrap: on
line source
<?xml version="1.0" encoding="UTF-8"?>
<artifact name="layer">
    <states>

        <state id="layer_mapviewerswitch" description="layer_mesh_area_one" state="de.intevation.gnv.state.DefaultAutoResumeState">
            <!-- Empty State which will be used to integrate the switch for a 
                 standalone and an mapviewer based call. -->
            <inputvalues>
                <inputvalue name="sourceid" type="String" multiselect="false" usedinquery="0"/>
                <inputvalue name="fisname" type="String" multiselect="false" usedinquery="0"/>
            </inputvalues>
        </state>
        
        <transition transition="de.intevation.gnv.transition.PresettingsValueCompareTransition">
            <from state="layer_mapviewerswitch"/>
            <to state="layer_area"/>
            <condition inputvalue="geometry" value="POLYGON" operator="notequal"/>
        </transition>
        
        <transition transition="de.intevation.gnv.transition.PresettingsValueCompareTransition">
            <from state="layer_mapviewerswitch"/>
            <to state="layer"/>
            <condition inputvalue="geometry" value="POLYGON" operator="equal"/>
        </transition>
        
        <state id="layer_area" description="layer_area_one" state="de.intevation.gnv.state.DefaultState">
            <queryID>area_filter</queryID>
            <dataname>areaid</dataname>
            <data-multiselect>false</data-multiselect>
             <data-noselect>true</data-noselect>
            <inputvalues>
                <inputvalue name="sourceid" type="String" multiselect="false" usedinquery="0"/>
                <inputvalue name="fisname" type="String" multiselect="false" usedinquery="0"/>
                <inputvalue name="areaid" type="Integer" multiselect="false" usedinquery="0"/>
            </inputvalues>
        </state>
        
        <transition transition="de.intevation.gnv.transition.ValueCompareTransition">
            <from state="layer_area"/>
            <to state="layer_subarea"/>
            <condition inputvalue="areaid" value="n/n" operator="notequal"/>
        </transition>
        <transition transition="de.intevation.gnv.transition.ValueCompareTransition">
            <from state="layer_area"/>
            <to state="layer_without_geom"/>
            <condition inputvalue="areaid" value="n/n" operator="equal"/>
        </transition>
        
        <state id="layer_subarea" description="layer_subaera" state="de.intevation.gnv.state.DefaultState">
            <queryID>subarea_filter</queryID>
            <dataname>subareaid</dataname>
            <data-multiselect>false</data-multiselect>
            <inputvalues>
                <inputvalue name="sourceid" type="String" multiselect="false" usedinquery="0"/>
                <inputvalue name="fisname" type="String" multiselect="false" usedinquery="0"/>
                <inputvalue name="areaid" type="Integer" multiselect="false" usedinquery="1"/>
                <inputvalue name="subareaid" type="Integer" multiselect="false" usedinquery="0"/>
            </inputvalues>
        </state>
        
        <transition transition="de.intevation.gnv.transition.DefaultTransition">
            <from state="layer_subarea"/>
            <to state="layer"/>
        </transition>
        
         <state id="layer_without_geom" description="layer_without_geom" state="de.intevation.gnv.state.DefaultState">
             <queryID>layer</queryID>
             <dataname>layerid</dataname>
             <data-multiselect>false</data-multiselect>
             <inputvalues>
                 <inputvalue name="sourceid" type="String" multiselect="false" usedinquery="1"/>
                 <inputvalue name="fisname" type="String" multiselect="false" usedinquery="0"/>
                 <inputvalue name="layerid" type="Integer" multiselect="false" usedinquery="0"/>
             </inputvalues>
         </state>
         
        <transition transition="de.intevation.gnv.transition.DefaultTransition">
            <from state="layer_without_geom"/>
            <to state="layer_calculate_results_without_geom"/>
        </transition>
        
        <state id="layer_calculate_results_without_geom" description="layer_calculate_results" state="de.intevation.gnv.state.layer.LayerOutputState">
            <queryID>layer_request_data</queryID>
            <queryID-layerdata>layer_data</queryID-layerdata>
            <inputvalues>
               <inputvalue name="sourceid" type="String" multiselect="false" usedinquery="0"/>
               <inputvalue name="layerid" type="Integer" multiselect="false" usedinquery="1"/>
            </inputvalues>
            <outputsModes>
                <outputsMode name="zip" description="Export als ZIP-Archiv" mime-type="application/zip"/>
                <outputsMode name="wms" description="WMS-Layer bereitstellen" mime-type="text/url"/>
            </outputsModes>
        </state>
         
        <state id="layer" description="layer" state="de.intevation.gnv.state.DefaultState">
             <queryID>layer</queryID>
             <dataname>layerid</dataname>
             <data-multiselect>false</data-multiselect>
             <inputvalues>
                 <inputvalue name="sourceid" type="String" multiselect="false" usedinquery="1"/>
                 <inputvalue name="fisname" type="String" multiselect="false" usedinquery="0"/>
                 <inputvalue name="subareaid" type="Integer" multiselect="false" usedinquery="0"/>
                 <inputvalue name="layerid" type="Integer" multiselect="false" usedinquery="0"/>
             </inputvalues>
         </state>
         
         <transition transition="de.intevation.gnv.transition.DefaultTransition">
            <from state="layer"/>
            <to state="layer_calculate_results"/>
         </transition>
         
         <state id="layer_calculate_results" description="layer_calculate_results" state="de.intevation.gnv.state.layer.LayerOutputState">
            <queryID>layer_request_data</queryID>
            <queryID-layerdata>layer_data_with_geom</queryID-layerdata>
            <queryID-geometry>geometry_for_subareafilter</queryID-geometry>
            <queryID-columns>layer_colums</queryID-columns>
            <inputvalue-geometry>subareaid</inputvalue-geometry>
            <inputvalues>
               <inputvalue name="sourceid" type="String" multiselect="false" usedinquery="0"/>
               <inputvalue name="layerid" type="Integer" multiselect="false" usedinquery="1"/>
               <inputvalue name="subareaid" type="Integer" multiselect="false" usedinquery="0"/>
            </inputvalues>
            <outputsModes>
                <outputsMode name="zip" description="Export als ZIP-Archiv" mime-type="application/zip"/>
                <outputsMode name="wms" description="WMS-Layer bereitstellen" mime-type="text/url"/>
            </outputsModes>
         </state>
        
    </states>
</artifact>

http://dive4elements.wald.intevation.org