Class MapServerWFSStrategy
- Object
-
- Specification
-
- WFSStrategy
-
- AbstractWFSStrategy
-
- StrictWFS_1_x_Strategy
-
- MapServerWFSStrategy
-
public class MapServerWFSStrategy extends StrictWFS_1_x_Strategy
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.
-
-
Field Summary
-
Fields inherited from class StrictWFS_1_x_Strategy
capabilities
-
-
Constructor Summary
Constructors Constructor Description MapServerWFSStrategy(Document capabilitiesDoc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
encodePropertyName(String propertyName)
Map<QName,Class<?>>
getFieldTypeMappings()
Provide additional field type mappingsInputStream
getPostContents(WFSRequest request)
Returns the input stream with the POST body contents for the given request.FeatureTypeType
translateTypeInfo(FeatureTypeType typeInfo)
Any server specific translation of type information such as setting correct namespace-
Methods inherited from class StrictWFS_1_x_Strategy
createDelete, createDescribeFeatureTypeRequestPost, createDescribeStoredQueriesRequestPost, createGetFeatureRequestPost, createInsert, createListStoredQueriesRequestPost, createTransactionRequest, createUpdate, findParameters, getClientSupportedOutputFormats, getFeatureTypeInfo, getFeatureTypeNames, getFilterCapabilities, getFilterConfiguration, getOperationMetadata, getOperationName, getOperationURI, getServerSupportedOutputFormats, getServerSupportedOutputFormats, getServiceInfo, getServiceVersion, getSupportedCRSIdentifiers, getWfsConfiguration, setCapabilities, supports, supportsTransaction
-
Methods inherited from class AbstractWFSStrategy
buildDescribeFeatureTypeParametersForGET, buildDescribeFeatureTypeParametersForGET, buildDescribeStoredQueriesParametersForGET, buildGetFeatureParametersForGET, buildListStoredQueriesParametersForGET, buildUrlGET, createGetCapabilitiesRequest, dispose, encodeGetFeatureGetFilter, getConfig, getDefaultOutputFormat, getOperationURL, getPostContentType, getPrefixedTypeName, getVersion, prepareEncoder, setConfig, simplify, splitFilters, supportsOperation, updatePropertyNames
-
Methods inherited from class WFSStrategy
canLimit, canOffset, newRequestHandle
-
-
-
-
Constructor Detail
-
MapServerWFSStrategy
public MapServerWFSStrategy(Document capabilitiesDoc)
-
-
Method Detail
-
translateTypeInfo
public FeatureTypeType translateTypeInfo(FeatureTypeType typeInfo)
Description copied from class:StrictWFS_1_x_Strategy
Any server specific translation of type information such as setting correct namespace- Overrides:
translateTypeInfo
in classStrictWFS_1_x_Strategy
- Parameters:
typeInfo
- type info- Returns:
- translated type info
-
getFieldTypeMappings
public Map<QName,Class<?>> getFieldTypeMappings()
Description copied from class:WFSStrategy
Provide additional field type mappings- Overrides:
getFieldTypeMappings
in classAbstractWFSStrategy
- Returns:
- field type mappings
-
getPostContents
public InputStream getPostContents(WFSRequest request) throws IOException
Description copied from class:AbstractWFSStrategy
Returns the input stream with the POST body contents for the given request.- Overrides:
getPostContents
in classAbstractWFSStrategy
- Throws:
IOException
- See Also:
AbstractWFSStrategy.createDescribeFeatureTypeRequestPost(org.geotools.data.wfs.internal.DescribeFeatureTypeRequest)
,AbstractWFSStrategy.createGetFeatureRequestPost(org.geotools.data.wfs.internal.GetFeatureRequest)
,AbstractWFSStrategy.prepareEncoder(org.geotools.data.wfs.internal.WFSRequest)
,AbstractWFSStrategy.getOperationName(org.geotools.data.wfs.internal.WFSOperationType)
-
encodePropertyName
protected String encodePropertyName(String propertyName)
- Overrides:
encodePropertyName
in classAbstractWFSStrategy
-
-