new ol.format.WFS(opt_options)
| Name | Type | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Optional configuration object.
|
||||||||||||||||
Extends
Methods
-
ol.format.WFS.writeFilter(filter){Node}
src/ol/format/wfs.js, line 903 -
Encode filter as WFS
Filterand return the Node.Name Type Description filterol.format.filter.Filter Filter.
Returns:
Result.
-
readFeatureCollectionMetadata(source){ol.WFSFeatureCollectionMetadata|undefined}
src/ol/format/wfs.js, line 201 -
Read feature collection metadata of the source.
Name Type Description sourceDocument | Node | Object | string Source.
Returns:
FeatureCollection metadata.
-
Read all features from a WFS FeatureCollection.
Name Type Description sourceDocument | Node | Object | string Source.
optionsRead options.
Name Type Description dataProjectionol.ProjectionLike Projection of the data we are reading. If not provided, the projection will be derived from the data (where possible) or the
defaultDataProjectionof the format is assigned (where set). If the projection can not be derived from the data and if nodefaultDataProjectionis set for a format, the features will not be reprojected.extentol.Extent Tile extent of the tile being read. This is only used and required for
ol.format.MVT. Required.featureProjectionol.ProjectionLike Projection of the feature geometries created by the format reader. If not provided, features will be returned in the
dataProjection.Returns:
Features.
-
Read the projection from a WFS source.
Name Type Description sourceDocument | Node | Object | string Source.
Returns:
Projection.
-
Read transaction response of the source.
Name Type Description sourceDocument | Node | Object | string Source.
Returns:
Transaction response.
-
writeGetFeature(options){Node}
src/ol/format/wfs.js, line 934 -
Encode format as WFS
GetFeatureand return the Node.Name Type Description optionsOptions.
Name Type Description featureNSstring The namespace URI used for features. Required.
featurePrefixstring The prefix for the feature namespace. Required.
featureTypesArray.<string> The feature type names. Required.
srsNamestring | undefined SRS name. No srsName attribute will be set on geometries when this is not provided.
handlestring | undefined Handle.
outputFormatstring | undefined Output format.
maxFeaturesnumber | undefined Maximum number of features to fetch.
geometryNamestring | undefined Geometry name to use in a BBOX filter.
propertyNamesArray.<string> | undefined Optional list of property names to serialize.
startIndexnumber | undefined 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 | undefined 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.bboxol.Extent | undefined Extent to use for the BBOX filter.
filterol.format.filter.Filter | undefined Filter condition. See
ol.format.filterfor more information.resultTypestring | undefined 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}
src/ol/format/wfs.js, line 1001 -
Encode format as WFS
Transactionand return the Node.Name Type Description insertsArray.<ol.Feature> The features to insert.
updatesArray.<ol.Feature> The features to update.
deletesArray.<ol.Feature> The features to delete.
optionsWrite options.
Name Type Description featureNSstring The namespace URI used for features. Required.
featurePrefixstring The prefix for the feature namespace. Required.
featureTypestring The feature type name. Required.
srsNamestring | undefined SRS name. No srsName attribute will be set on geometries when this is not provided.
handlestring | undefined Handle.
hasZboolean | undefined 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. Required.
gmlOptionsolx.format.GMLOptions | undefined GML options for the WFS transaction writer.
versionstring | undefined WFS version to use for the transaction. Can be either
1.0.0or1.1.0. Default is1.1.0.Returns:
Result.
OpenLayers