new WFS(opt_options)
| Name | Type | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Optional configuration object.
|
||||||||||||||||
Methods
-
readFeatureCollectionMetadata(source){module:ol/format/WFS~FeatureCollectionMetadata|undefined}
format/WFS.js, line 307 -
Read feature collection metadata of the source.
Name Type Description sourceDocument | Node | Object | string Source.
Returns:
FeatureCollection metadata.
-
readTransactionResponse(source){module:ol/format/WFS~TransactionResponse|undefined}
format/WFS.js, line 285 -
Read transaction response of the source.
Name Type Description sourceDocument | Node | Object | string Source.
Returns:
Transaction response.
-
writeGetFeature(options){Node}
format/WFS.js, line 381 -
Encode format as WFS
GetFeatureand return the Node.Name Type Description optionsOptions.
Name Type Description featureNSstring The namespace URI used for features.
featurePrefixstring The prefix for the feature namespace.
featureTypesArray.<string> The feature type names.
srsNamestring SRS name. No srsName attribute will be set on geometries when this is not provided.
handlestring Handle.
outputFormatstring Output format.
maxFeaturesnumber Maximum number of features to fetch.
geometryNamestring Geometry name to use in a BBOX filter.
propertyNamesArray.<string> Optional list of property names to serialize.
startIndexnumber 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 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.bboxmodule:ol/extent~Extent Extent to use for the BBOX filter.
filtermodule:ol/format/filter/Filter~Filter Filter condition. See
module:ol/format/Filterfor more information.resultTypestring Indicates what response should be returned, E.g.
hitsonly includes thenumberOfFeaturesattribute in the response and no features.Returns:
Result.
-
writeTransaction(inserts, updates, deletes, options){Node}
format/WFS.js, line 446 -
Encode format as WFS
Transactionand return the Node.Name Type Description insertsArray.<module:ol/Feature~Feature> The features to insert.
updatesArray.<module:ol/Feature~Feature> The features to update.
deletesArray.<module:ol/Feature~Feature> The features to delete.
optionsWrite options.
Name Type Default Description featureNSstring The namespace URI used for features.
featurePrefixstring The prefix for the feature namespace.
featureTypestring The feature type name.
srsNamestring SRS name. No srsName attribute will be set on geometries when this is not provided.
handlestring Handle.
hasZboolean 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.
gmlOptionsmodule:ol/format/GMLBase~Options GML options for the WFS transaction writer.
versionstring '1.1.0' WFS version to use for the transaction. Can be either
1.0.0or1.1.0.Returns:
Result.
OpenLayers