Superclass for WFST parsers.
OpenLayers. | Superclass for WFST parsers. |
Properties | |
namespaces | {Object} Mapping of namespace aliases to namespace URIs. |
defaultPrefix | |
version | {String} WFS version number. |
schemaLocation | {String} Schema location for a particular minor version. |
srsName | {String} URI for spatial reference system. |
extractAttributes | {Boolean} Extract attributes from GML. |
xy | {Boolean} Order of the GML coordinate true:(x,y) or false:(y,x) Changing is not recommended, a new Format should be instantiated. |
stateName | {Object} Maps feature states to node names. |
Constructor | |
OpenLayers. | Instances of this class are not created directly. |
Functions and Properties | |
getSrsName | |
read | Parse the response from a transaction. |
readers | Contains public functions, grouped by namespace prefix, that will be applied when a namespaced node is found matching the function name. |
write | Given an array of features, write a WFS transaction. |
writers | As a compliment to the readers property, this structure contains public writing functions grouped by namespace alias and named like the node names they produce. |
schemaLocationAttr | Generate the xsi:schemaLocation attribute value. |
setFilterProperty | Set the property of each spatial filter. |
Instances of this class are not created directly. Use the OpenLayers.Format.WFST.v1_0_0 or OpenLayers.Format.WFST.v1_1_0 constructor instead.
options | {Object} An optional object whose properties will be set on this instance. |
read: function( data, options )
Parse the response from a transaction. Because WFS is split into Transaction requests (create, update, and delete) and GetFeature requests (read), this method handles parsing of both types of responses.
data | {String | Document} The WFST document to read |
options | {Object} Options for the reader |
output | {String} either “features” or “object”. The default is “features”, which means that the method will return an array of features. If set to “object”, an object with a “features” property and other properties read by the parser will be returned. |
{Array | Object} Output depending on the output option.
write: function( features, options )
Given an array of features, write a WFS transaction. This assumes the features have a state property that determines the operation type - insert, update, or delete.
features | {Array(OpenLayers.Feature.Vector)} A list of features. See below for a more detailed description of the influence of the feature’s modified property. |
options | {Object} |
If a feature has a modified property set, the following checks will be made before a feature’s geometry or attribute is included in an Update transaction:
{String} A serialized WFS transaction.
setFilterProperty: function( filter )
Set the property of each spatial filter.
filter | {OpenLayers.Filter} |
getSrsName: function( feature, options )
Parse the response from a transaction.
read: function( data, options )
Given an array of features, write a WFS transaction.
write: function( features, options )
Generate the xsi:schemaLocation attribute value.
schemaLocationAttr: function( options )
Set the property of each spatial filter.
setFilterProperty: function( filter )