new ol.format.WFS(opt_options)
| Name | Type | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Optional configuration object.
|
||||||||||||||||
Extends
Methods
-
readFeatureCollectionMetadata(source){ol.format.WFS.FeatureCollectionMetadata|undefined}
src/ol/format/wfsformat.js, line 172 -
Read feature collection metadata of the source.
Name Type Description sourceDocument | Node | Object | string Source.
Returns:
FeatureCollection metadata.
-
readFeatures(source, opt_options){Array.<ol.Feature>}
src/ol/format/wfsformat.js, line 114 -
Read all features from a WFS FeatureCollection.
Name Type Description sourceDocument | Node | Object | string Source.
optionsRead options.
Name Type Description dataProjectionol.proj.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.featureProjectionol.proj.ProjectionLike Projection of the feature geometries created by the format reader. If not provided, features will be returned in the
dataProjection.Returns:
Features.
-
readProjection(source){ol.proj.Projection}
src/ol/format/wfsformat.js, line 745 -
Read the projection from a WFS source.
Name Type Description sourceDocument | Node | Object | string Source.
Returns:
Projection.
-
readTransactionResponse(source){ol.format.WFS.TransactionResponse|undefined}
src/ol/format/wfsformat.js, line 148 -
Read transaction response of the source.
Name Type Description sourceDocument | Node | Object | string Source.
Returns:
Transaction response.
-
writeGetFeature(options){Node}
src/ol/format/wfsformat.js, line 630 -
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 | undefined experimental 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 experimental Geometry name to use in a BBOX filter.
bboxol.Extent | undefined experimental Extent to use for the BBOX filter.
Returns:
Result.
-
writeTransaction(inserts, updates, deletes, options){Node}
src/ol/format/wfsformat.js, line 685 -
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.
featurePrefixstring The prefix for the feature namespace.
featureTypestring The feature type name.
srsNamestring | undefined experimental SRS name. No srsName attribute will be set on geometries when this is not provided.
handlestring | undefined Handle.
nativeElementsArray.<Object> experimental Native elements. Currently not supported.
gmlOptionsolx.format.GMLOptions | undefined GML options for the WFS transaction writer.
Returns:
Result.
Type Definitions
-
ol.format.WFS.FeatureCollectionMetadata{Object}
-
Number of features; bounds/extent.
-
ol.format.WFS.TransactionResponse{Object}
-
Total deleted; total inserted; total updated; array of insert ids.
OpenLayers 3