org.geotools.data.wfs.v1_0_0
Class MapServerWFSStrategy
java.lang.Object
org.geotools.data.wfs.v1_0_0.MapServerWFSStrategy
public class MapServerWFSStrategy
- extends java.lang.Object
This strategy addresses a bug in most MapServer implementations where a filter is required in order for all the features to
be returned. So if the Filter is Filter.NONE or Query.ALL then a BBox Filter is constructed that is the entire layer.
- Since:
- 1.1.0
- Author:
- Jesse
Method Summary |
protected FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> |
applyReprojectionDecorator(FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> reader,
Query query,
org.opengis.referencing.crs.CoordinateReferenceSystem dataCRS)
|
protected org.opengis.referencing.crs.CoordinateReferenceSystem |
correctFilterForServer(java.lang.String typeName,
org.opengis.filter.Filter serverFilter)
Using the provided query; obtain a FeatureSetDescriptor and modify the provided serverFilter
to be correct. |
protected FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> |
createFeatureReader(Transaction transaction,
Query query)
|
protected org.geotools.data.wfs.v1_0_0.NonStrictWFSStrategy.Data |
createFeatureReaderGET(Query query,
Transaction transaction)
|
protected org.geotools.data.wfs.v1_0_0.NonStrictWFSStrategy.Data |
createFeatureReaderPOST(Query query,
Transaction transaction)
|
FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> |
getFeatureReader(Query query,
Transaction transaction)
|
FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> |
getFeatureReader(Query query2,
Transaction transaction)
|
protected boolean |
isStrict()
If we are being exacting about folowing the WFS Capabilities. |
protected FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> |
wrapWithFilteringFeatureReader(org.opengis.filter.Filter postFilter,
FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> reader,
org.opengis.filter.Filter processedFilter)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COMPLIANCE_LEVEL
protected static final java.lang.Integer COMPLIANCE_LEVEL
- This just splits fid filters from non-fid filters. The
StrictFeatureReader
is what does the rest of the
compliance to high compliance.
store
protected WFS_1_0_0_DataStore store
MapServerWFSStrategy
public MapServerWFSStrategy(WFS_1_0_0_DataStore store)
createFeatureReader
protected FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> createFeatureReader(Transaction transaction,
Query query)
throws java.io.IOException
- Throws:
java.io.IOException
getFeatureReader
public FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> getFeatureReader(Query query,
Transaction transaction)
throws java.io.IOException
- Throws:
java.io.IOException
wrapWithFilteringFeatureReader
protected FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> wrapWithFilteringFeatureReader(org.opengis.filter.Filter postFilter,
FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> reader,
org.opengis.filter.Filter processedFilter)
correctFilterForServer
protected org.opengis.referencing.crs.CoordinateReferenceSystem correctFilterForServer(java.lang.String typeName,
org.opengis.filter.Filter serverFilter)
- Using the provided query; obtain a FeatureSetDescriptor and modify the provided serverFilter
to be correct.
If we are being strict the implementation may also clip any geometry or bbox
to the valid bounds advertised as valid by the server (or by the data CRS).
- Returns:
- CoordinateReferenceSystem to use when making the request (usually the data CRS for a WFS 1.0 Datastore)
getFeatureReader
public FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> getFeatureReader(Query query2,
Transaction transaction)
throws java.io.IOException
- Throws:
java.io.IOException
createFeatureReaderPOST
protected org.geotools.data.wfs.v1_0_0.NonStrictWFSStrategy.Data createFeatureReaderPOST(Query query,
Transaction transaction)
createFeatureReaderGET
protected org.geotools.data.wfs.v1_0_0.NonStrictWFSStrategy.Data createFeatureReaderGET(Query query,
Transaction transaction)
applyReprojectionDecorator
protected FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> applyReprojectionDecorator(FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> reader,
Query query,
org.opengis.referencing.crs.CoordinateReferenceSystem dataCRS)
isStrict
protected boolean isStrict()
- If we are being exacting about folowing the WFS Capabilities.
- Returns:
- true if we are being exacting about following the WFS Capabilities
Copyright © 1996-2010 Geotools. All Rights Reserved.