org.geotools.data.wfs.v1_1_0
Class CubeWerxStrategy
Object
DefaultWFSStrategy
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:
- resultType parameter is not supported in GetFeature
- logically grouped spatial filters can't be handled
- Since:
- 2.6
- Author:
- Gabriel Roldan (OpenGeo)
- Module:
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 Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CubeWerxStrategy
public CubeWerxStrategy()
createGetFeatureRequest
public WFSStrategy.RequestComponents createGetFeatureRequest(WFSProtocol wfs,
GetFeature query)
throws IOException
- 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
- 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-2010 Geotools. All Rights Reserved.