org.geotools.data.wfs.v1_1_0
Class CubeWerxStrategy

Object
  extended by DefaultWFSStrategy
      extended by CubeWerxStrategy
All Implemented Interfaces:
WFSStrategy

public class CubeWerxStrategy
extends DefaultWFSStrategy

An strategy object to deal in querying a CubeWerx WFS 1.1 server

This strategy was created as per the limitations encountered at the CubeWerx server being tested while developing this plugin.

For instance, the following issues were found:

Since:
2.6
Author:
Gabriel Roldan (OpenGeo)
Module:

Nested Class Summary
 
Nested classes/interfaces inherited from interface WFSStrategy
WFSStrategy.RequestComponents
 
Field Summary
 
Fields inherited from class DefaultWFSStrategy
DEFAULT_OUTPUT_FORMAT
 
Constructor Summary
CubeWerxStrategy()
           
 
Method Summary
 WFSStrategy.RequestComponents createGetFeatureRequest(WFSProtocol wfs, GetFeature query)
          Addresses the following issues with the CubeWerx WFS server: The request fails if the resultType parameter is set, either if the value is hits or results, so it sets GetFeatureType.setResultType(net.opengis.wfs.ResultTypeType) to null CubeWerx does not support filtering logical filters containing mixed geometry filters (eg, AND(BBOX, Intersects)), no matter what the capabilities doc says
 Filter[] splitFilters(Capabilities caps, Filter queryFilter)
          Splits the filter provided by the geotools query into the server supported and unsupported ones.
 
Methods inherited from class DefaultWFSStrategy
buildGetFeatureParametersForGet, encodeGetFeatureGetFilter, getDefaultOutputFormat, getFilterConfiguration, getWfsConfiguration, supportsGet, supportsPost
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CubeWerxStrategy

public CubeWerxStrategy()
Method Detail

createGetFeatureRequest

public WFSStrategy.RequestComponents createGetFeatureRequest(WFSProtocol wfs,
                                                             GetFeature query)
                                                      throws IOException
Addresses the following issues with the CubeWerx WFS server:

Specified by:
createGetFeatureRequest in interface WFSStrategy
Overrides:
createGetFeatureRequest in class DefaultWFSStrategy
Parameters:
wfs - the WFS protocol handler from which the strategy may need to grab some feature type metadata not available through the datastore interface, or even perform some test request.
query - the GetFeature query to create the server request and post-processing filter for
Returns:
a handle to the request and post-processing filter appropriate to attend the given query
Throws:
IOException
See Also:
WFSStrategy#createGetFeatureRequest(WFS_1_1_0_DataStore, WFSProtocol, Query, String)

splitFilters

public Filter[] splitFilters(Capabilities caps,
                             Filter queryFilter)
Description copied from class: DefaultWFSStrategy
Splits the filter provided by the geotools query into the server supported and unsupported ones.

Specified by:
splitFilters in interface WFSStrategy
Overrides:
splitFilters in class DefaultWFSStrategy
Parameters:
caps - the server filter capabilities description
Returns:
a two-element array where the first element is the supported filter and the second the one to post-process
See Also:
WFSStrategy#splitFilters(WFS_1_1_0_Protocol, Filter)


Copyright © 1996-2009 Geotools. All Rights Reserved.