Creates a new WFSFeatureStore.
An object literal which contains the settings for this Store
Data bounds as specified by the BBOX parameter in the WFS capabilities, if the store is created from
WFS capabilities, otherwise undefined.
Indicates whether credentials should be included with HTTP requests.
Set this to true if the server requires credentials, like HTTP basic authentication headers or cookies.
You should disable credentials if the server is configured to allow cross-origin requests from all domains (Access-Control-Allow-Origin=*).
If the server allows CORS requests from all domains, the browser will block all requests where credentials=true.
Once set, all later HTTP requests will use the newly set value.
The default value is false.
Headers to send with every HTTP request.
An object literal that represents the headers to send with every HTTP request. The property names represent HTTP header names, the property values represent the HTTP header values. This property can be set dynamically (post-construction). Once set, all later HTTP requests will use the newly set headers.
Note that when custom headers are being sent to a server on another domain, the server will have to properly
respond to pre-flight CORS requests (an HTTP OPTION request sent by the browser before doing the actual request).
The server must indicate that the header is allowed in the actual request by including it in
the preflight Access-Control-Allow-Headers response header.
The default value is null.
Custom request parameters to send along with WFS requests. The object literal can contain simple key/value pairs. Accepted values are strings, numbers and booleans. A ProgrammingError will be thrown if values of another type are used. Values must not be URL encoded.
Assignments of other values than object literals to requestParameters will throw an Error.
You can clear the parameters by assigning null or an empty object literal.
To refresh the visualization on the map, call layer.loadingStrategy.queryProvider.invalidate().
Queries the store for objects. This sends a request to the WFS server. The store invokes Codec.decode to decode the server response, passing the reference specified in the constructor options WFSFeatureStoreConstructorOptions.reference.
Optionalquery: WFSQueryOptionsAn object literal that contains the query parameters.
Optionaloptions: QueryOptionsAn object literal containing options for the query method.
A promise for a cursor of Feature instances corresponding to the server response.
Queries the store for objects within a spatial extent. This sends a request to the WFS server. The store invokes Codec.decode to decode the server response, passing the reference specified in the constructor options WFSFeatureStoreConstructorOptions.reference.
Optionalbounds: BoundsThe spatial extent to retrieve features for.
Optionalquery: WFSQueryOptionsAn object literal that contains the query parameters.
Optionaloptions: QueryOptionsAn object literal containing options for the query method.
A promise resolving to a cursor of Feature instances corresponding to the server response.
StaticcreateCreates a new WFSFeatureStore. This is the recommended method to create a model based on
information provided by WFSCapabilities.
The capabilities of the WFS server.
The name of the WFS feature type to be loaded.
Optionaloptions: WFSFeatureStoreCreateOptionsAn object literal which contains the settings for this Store
a WFSFeatureStore for the given parameters.
StaticcreateCreates a new WFSFeatureStore. This is the recommended method to create a store based on
a given WFS server URL and feature type name.
The URL of the WFS server.
The name of the WFS feature type to load.
Optionaloptions: WFSFeatureStoreCreateOptions & WFSCapabilitiesFromUrlOptionsAn object literal that contains options for fetching capabilities and for creating this Store.
A WFSFeatureStore for the given parameters. The promise is rejected if store creation fails.
An event that is emitted when the contents of the store change. Stores that perform create, update, or delete operations must implement this event to ensure that changes are communicated properly to listeners.
The "StoreChanged" event.
The callback to be invoked when the contents of the store change. The callback has three parameters:
Optionalcontext: anyAn optional value used as the this context when executing the callback.
Storeimplementation for communicating with an OGC WFS server. ThisStoreuses aCodecto convert the server response to LuciadRIA features. The standard codec assumes a server response in GeoJson format. Replace the codec if you want to support another format.Set this
Storeon a FeatureModel to create a feature model which retrieves its data from a WFS server. Typically, you don't need to call the constructor yourself. Instead, use the factory methods createFromURL or createFromCapabilities to create an instance of this store. The following example demonstrates how to set up aWFSFeatureStoreto retrieve WFS feature data for a given service url and feature type name:The above example uses GeoJSON as the default exchange format. The following example shows how to configure the same
WFSFeatureStoreto decode GML-based data using aGMLCodec:If you want to access the WFS server capabilities and explore the service metadata and available data sets, you have to create a WFSCapabilities instance first. You can also use this instance to create a
Storeafterward:Supported versions
LuciadRIA supports consuming WFS services that support version 1.0, 1.1 and 2.0 of the OGC WFS specification.