Classes
Functions
- 
    
import {writeFilter} from 'ol/format/WFS';Encode filter as WFS
Filterand return the Node.Name Type Description filterFilter Filter.
versionstring WFS version. If not provided defaults to '1.1.0'
Returns:
Result.
 
Type Definitions
- 
    
FeatureCollectionMetadata{Object}
 - 
    
Number of features; bounds/extent.
Properties:
Name Type Description numberOfFeaturesnumber NumberOfFeatures.
boundsExtent Bounds.
 - 
    
FeatureType{Object}
 - 
Properties:
Name Type Description namestring The feature type name.
bboxExtent Extent to use for the BBOX filter.
geometryNamestring Geometry name to use in the BBOX filter.
 - 
    
Options{Object}
 - 
Properties:
Name Type Argument Default Description featureNSObject.<string, string> | string <optional> 
The namespace URI used for features.
featureTypeArray.<string> | string <optional> 
The feature type to parse. Only used for read operations.
gmlFormatGMLBase <optional> 
The GML format to use to parse the response. Default is
ol/format/GML2for WFS 1.0.0,ol/format/GML3for WFS 1.1.0 andol/format/GML32for WFS 2.0.0.schemaLocationstring <optional> 
Optional schemaLocation to use for serialization, this will override the default.
versionstring <optional> 
'1.1.0' WFS version to use. Can be either
1.0.0,1.1.0or2.0.0. - 
    
TransactionResponse{Object}
 - 
    
Total deleted; total inserted; total updated; array of insert ids.
Properties:
Name Type Description totalDeletednumber TotalDeleted.
totalInsertednumber TotalInserted.
totalUpdatednumber TotalUpdated.
insertIdsArray.<string> InsertIds.
 - 
    
WriteGetFeatureOptions{Object}
 - 
Properties:
Name Type Argument Description featureNSstring The namespace URI used for features.
featurePrefixstring The prefix for the feature namespace.
featureTypesArray.<(string|module:ol/format/WFS~FeatureType)> The feature type names or FeatureType objects to define a unique bbox filter per feature type name (in this case, options
bboxandgeometryNameare ignored.).srsNamestring <optional> 
SRS name. No srsName attribute will be set on geometries when this is not provided.
handlestring <optional> 
Handle.
outputFormatstring <optional> 
Output format.
maxFeaturesnumber <optional> 
Maximum number of features to fetch.
geometryNamestring <optional> 
Geometry name to use in a BBOX filter.
propertyNamesArray.<string> <optional> 
Optional list of property names to serialize.
viewParamsstring <optional> 
viewParams GeoServer vendor parameter.
startIndexnumber <optional> 
Start index to use for WFS paging. This is a WFS 2.0 feature backported to WFS 1.1.0 by some Web Feature Services.
countnumber <optional> 
Number of features to retrieve when paging. This is a WFS 2.0 feature backported to WFS 1.1.0 by some Web Feature Services. Please note that some Web Feature Services have repurposed
maxfeaturesinstead.bboxExtent <optional> 
Extent to use for the BBOX filter. The
geometryNameoption must be set.filterFilter <optional> 
Filter condition. See
ol/format/filterfor more information.resultTypestring <optional> 
Indicates what response should be returned, e.g.
hitsonly includes thenumberOfFeaturesattribute in the response and no features. - 
    
WriteTransactionOptions{Object}
 - 
Properties:
Name Type Argument Default Description featureNSstring The namespace URI used for features.
featurePrefixstring The prefix for the feature namespace.
featureTypestring The feature type name.
srsNamestring <optional> 
SRS name. No srsName attribute will be set on geometries when this is not provided.
handlestring <optional> 
Handle.
hasZboolean <optional> 
Must be set to true if the transaction is for a 3D layer. This will allow the Z coordinate to be included in the transaction.
nativeElementsArray.<Object> Native elements. Currently not supported.
gmlOptionsOptions <optional> 
GML options for the WFS transaction writer.
versionstring <optional> 
'1.1.0' WFS version to use for the transaction. Can be either
1.0.0,1.1.0or2.0.0.