<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<as:AppSchemaDataAccess xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ogc="http://www.opengis.net/ogc" xmlns:as="http://www.geotools.org/app-schema" xmlns:gml="http://www.opengis.net/gml">
    <namespaces>
        <Namespace>
            <prefix>ge</prefix>
            <uri>http://inspire.ec.europa.eu/schemas/ge-core/3.0</uri>
        </Namespace>
        <Namespace>
            <prefix>xlink</prefix>
            <uri>http://www.w3.org/1999/xlink</uri>
        </Namespace>
        <Namespace>
            <prefix>base</prefix>
            <uri>http://inspire.ec.europa.eu/schemas/base/3.3</uri>
        </Namespace>
        <Namespace>
            <prefix>gml</prefix>
            <uri>http://www.opengis.net/gml/3.2</uri>
        </Namespace>
    </namespaces>
    <includedTypes/>
    <sourceDataStores>
        <DataStore>
            <id>dataStore</id>
            <parameters>
                <Parameter>
                    <name>Connection timeout</name>
                    <value>20</value>
                </Parameter>
                <Parameter>
                    <name>port</name>
                    <value>5432</value>
                </Parameter>
                <Parameter>
                    <name>passwd</name>
                    <value>lamma</value>
                </Parameter>
                <Parameter>
                    <name>dbtype</name>
                    <value>postgis</value>
                </Parameter>
                <Parameter>
                    <name>encode functions</name>
                    <value>false</value>
                </Parameter>
                <Parameter>
                    <name>Evictor run periodicity</name>
                    <value>300</value>
                </Parameter>
                <Parameter>
                    <name>namespace</name>
                    <value></value>
                </Parameter>
                <Parameter>
                    <name>schema</name>
                    <value>public</value>
                </Parameter>
                <Parameter>
                    <name>create database</name>
                    <value>false</value>
                </Parameter>
                <Parameter>
                    <name>fetch size</name>
                    <value>1000</value>
                </Parameter>
                <Parameter>
                    <name>preparedStatements</name>
                    <value>false</value>
                </Parameter>
                <Parameter>
                    <name>min connections</name>
                    <value>1</value>
                </Parameter>
                <Parameter>
                    <name>Evictor tests per run</name>
                    <value>3</value>
                </Parameter>
                <Parameter>
                    <name>host</name>
                    <value>192.168.122.51</value>
                </Parameter>
                <Parameter>
                    <name>validate connections</name>
                    <value>true</value>
                </Parameter>
                <Parameter>
                    <name>max connections</name>
                    <value>10</value>
                </Parameter>
                <Parameter>
                    <name>database</name>
                    <value>lamma</value>
                </Parameter>
                <Parameter>
                    <name>Support on the fly geometry simplification</name>
                    <value>true</value>
                </Parameter>
                <Parameter>
                    <name>Max connection idle time</name>
                    <value>300</value>
                </Parameter>
                <Parameter>
                    <name>Test while idle</name>
                    <value>true</value>
                </Parameter>
                <Parameter>
                    <name>Loose bbox</name>
                    <value>true</value>
                </Parameter>
                <Parameter>
                    <name>Expose primary keys</name>
                    <value>false</value>
                </Parameter>
                <Parameter>
                    <name>Max open prepared statements</name>
                    <value>50</value>
                </Parameter>
                <Parameter>
                    <name>Estimated extends</name>
                    <value>true</value>
                </Parameter>
                <Parameter>
                    <name>user</name>
                    <value>lamma</value>
                </Parameter>
            </parameters>
        </DataStore>
    </sourceDataStores>
    <targetTypes>
        <FeatureType>
            <schemaUri>file:/tmp/1436872335240-0/resource2/GeologyCore.xsd</schemaUri>
        </FeatureType>
    </targetTypes>
    <typeMappings>
        <FeatureTypeMapping>
            <sourceDataStore>dataStore</sourceDataStore>
            <sourceType>frane</sourceType>
            <targetElement>ge:MappedFeature</targetElement>
            <attributeMappings>
                <AttributeMapping>
                    <targetAttribute>ge:mappingFrame</targetAttribute>
                    <ClientProperty>
                        <name>xlink:href</name>
                        <value>'http://inspire.ec.europa.eu/codelist/MappingFrameValue/surfaceGeology'</value>
                    </ClientProperty>
                    <ClientProperty>
                        <name>xlink:type</name>
                        <value>'simple'</value>
                    </ClientProperty>
                </AttributeMapping>
                <AttributeMapping>
                    <targetAttribute>ge:shape</targetAttribute>
                    <sourceExpression>
                        <OCQL>geometry</OCQL>
                    </sourceExpression>
                </AttributeMapping>
                <AttributeMapping>
                    <targetAttribute>ge:specification/ge:NaturalGeomorphologicFeature/ge:activity</targetAttribute>
                    <ClientProperty>
                        <name>xlink:type</name>
                        <value>'simple'</value>
                    </ClientProperty>
                    <ClientProperty>
                        <name>xlink:href</name>
                        <value>if_then_else(in(stato,4000,1000,2000,3000), Recode(stato,4000,'http://inspire.ec.europa.eu/codelist/GeomorphologicActivityValue/dormant',1000,'http://inspire.ec.europa.eu/codelist/GeomorphologicActivityValue/active',2000,'http://inspire.ec.europa.eu/codelist/GeomorphologicActivityValue/stabilised',3000,'http://inspire.ec.europa.eu/codelist/GeomorphologicActivityValue/unknown'), Expression.NIL)</value>
                    </ClientProperty>
                </AttributeMapping>
                <AttributeMapping>
                    <targetAttribute>ge:specification/ge:NaturalGeomorphologicFeature/ge:naturalGeomorphologicFeatureType</targetAttribute>
                    <ClientProperty>
                        <name>xlink:type</name>
                        <value>'simple'</value>
                    </ClientProperty>
                    <ClientProperty>
                        <name>xlink:href</name>
                        <value>'http://inspire.ec.europa.eu/codelist/NaturalGeomorphologicFeatureTypeValue/slopeGravitational'</value>
                    </ClientProperty>
                </AttributeMapping>
                <AttributeMapping>
                    <targetAttribute>ge:specification/ge:NaturalGeomorphologicFeature/ge:inspireId/base:Identifier/base:localId</targetAttribute>
                    <sourceExpression>
                        <OCQL>bdfrane_id</OCQL>
                    </sourceExpression>
                </AttributeMapping>
                <AttributeMapping>
                    <targetAttribute>ge:specification/ge:NaturalGeomorphologicFeature/ge:inspireId/base:Identifier/base:namespace</targetAttribute>
                    <sourceExpression>
                        <OCQL>'http://www.lamma.rete.toscana.it/'</OCQL>
                    </sourceExpression>
                </AttributeMapping>
                <AttributeMapping>
                    <targetAttribute>ge:MappedFeature</targetAttribute>
                    <idExpression>
                        <OCQL>strConcat('mf.', bdfrane_id)</OCQL>
                    </idExpression>
                </AttributeMapping>
                <AttributeMapping>
                    <targetAttribute>ge:specification/ge:NaturalGeomorphologicFeature</targetAttribute>
                    <ClientProperty>
                        <name>gml:id</name>
                        <value>strConcat('ngf.', bdfrane_id)</value>
                    </ClientProperty>
                </AttributeMapping>
                <AttributeMapping>
                    <targetAttribute>ge:specification/ge:NaturalGeomorphologicFeature/gml:description</targetAttribute>
                    <sourceExpression>
                        <OCQL>descriz</OCQL>
                    </sourceExpression>
                </AttributeMapping>
                <AttributeMapping>
                    <targetAttribute>ge:specification/ge:NaturalGeomorphologicFeature/ge:inspireId/base:Identifier/base:versionId</targetAttribute>
                    <sourceExpression>
                        <OCQL>versione</OCQL>
                    </sourceExpression>
                </AttributeMapping>
            </attributeMappings>
        </FeatureTypeMapping>
    </typeMappings>
</as:AppSchemaDataAccess>
