Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagexml
<?xml version="1.0" encoding="UTF-8"?>

<config xmlns="urn:com.cohga.server.config#1.0"
    xmlns:wfs="urn:se.viamap.weave.server.wfs#1.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  
  <!-- Set properties for the server -->  
  <wfs:server>
        <!-- Properties exposed to the Get Capabilities Document -->
        <name>Viamap Web Feature Service</name>
        <abstract>Basic implementation of WFS 1.1.0 and 2.0.0</abstract>
        <keywords>WFS,WEAVE,VIAMAP</keywords>
        <fees>Specified by contract</fees>
        <accessConstraints>Only permitted individuals are allowed access</accessConstraints>
        <providerName>Viamap AB</providerName>
        <!-- Set the default limit of features to receive in a request. Defaults to 1 000 000 -->
        <countDefault>10000</countDefault>
        <!-- Throw an error if the user requests a higher count than countDefault. Defaults to false -->        
        <throwOnCount>true</throwOnCount>
    </wfs:server>
    
    
    <wfs:namespace id="geodata" uri="http://www.viamap.se/test" />
    <wfs:namespace id="internal" uri="http://www.viamap.se/test" acl="internal" />
    
    <!-- Publish layers with no restrictions with the default namespace -->
    <wfs:layer id="public">
        <spatialengine>se.data</spatialengine>
        <layers typename="poi" />
        <layers typename="city_areas" />
    </wfs:layer>

    <!-- Publish layers with to the 'geodata' namespace -->        
      <wfs:layer id="geodata">
        <spatialengine>se.data</spatialengine>
        <namespace>geodata</namespace>
        <!-- User must be granted access by the geodata acl -->
        <acl>geodata</acl>
        <!-- Apply this keyword for each layer -->
        <keywords>Geodata</keywords>
        <!-- Apply this filter for each layer -->
        <filter>type = 1</filter> 
        <layers>
            <typename>address</typename>
            <!-- Apply this this addition filter -->
            <filter>planned = FALSE</filter>
            <!-- Apply this this addition keyword-->
            <keywords>Address information</keywords>
        </layers>
        <layers>
            <typename>buildings</typename>
            <filter>planned = FALSE</filter>
        </layers>
        <layers>
            <typename>buildings</typename>
            <!-- Override the name -->
            <name>planned_buildings</name>
            <!-- Apply this this addition filter -->
            <filter>planned = FALSE</filter>
            <!-- Do not publish this layer in the Get Capabilities Document -->
            <published>false</published>
            <!-- Require additional access check -->            
            <acl>geodata.planned</acl>            
        </layers>
    </wfs:layer>
    
    <!-- Publish internal layers with to the 'internal' namespace -->
    <!-- Access checks are inherited from the namespace's acl entry -->
    <wfs:layer id="internal">
        <spatialengine>se.data</spatialengine>
        <namespace>geodata<<namespace>internal</namespace>
        <layers>
            <typename>prospects</typename>
        </layers>
        <layers>
            <typename>buildings</typename>
            <filter>planned = FALSE</filter>
        </layers>
    </wfs:layer>    
    
</config>