Adding a WFS protocol. This allows for creating, reading, updating, and deleting features via WFS. Huge thanks to ahocevar for the test writing and review. r=ahocevar (closes #1648)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8868 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
/**
|
||||
* @requires OpenLayers/Protocol/WFS/v1.js
|
||||
* @requires OpenLayers/Format/WFST/v1_1_0.js
|
||||
*/
|
||||
|
||||
/**
|
||||
* Class: OpenLayers.Protocol.WFS.v1_1_0
|
||||
* A WFS v1.1.0 protocol for vector layers. Create a new instance with the
|
||||
* <OpenLayers.Protocol.WFS.v1_1_0> constructor.
|
||||
*
|
||||
* Differences from the v1.0.0 protocol:
|
||||
* - uses Filter Encoding 1.1.0 instead of 1.0.0
|
||||
* - uses GML 3 instead of 2 if no format is provided
|
||||
*
|
||||
* Inherits from:
|
||||
* - <OpenLayers.Protocol.WFS.v1>
|
||||
*/
|
||||
OpenLayers.Protocol.WFS.v1_1_0 = OpenLayers.Class(OpenLayers.Protocol.WFS.v1, {
|
||||
|
||||
/**
|
||||
* Property: version
|
||||
* {String} WFS version number.
|
||||
*/
|
||||
version: "1.1.0",
|
||||
|
||||
/**
|
||||
* Constructor: OpenLayers.Protocol.WFS.v1_1_0
|
||||
* A class for giving layers WFS v1.1.0 protocol.
|
||||
*
|
||||
* Parameters:
|
||||
* options - {Object} Optional object whose properties will be set on the
|
||||
* instance.
|
||||
*
|
||||
* Valid options properties:
|
||||
* featureType - {String} Local (without prefix) feature typeName (required).
|
||||
* featureNS - {String} Feature namespace (optional).
|
||||
* featurePrefix - {String} Feature namespace alias (optional - only used
|
||||
* if featureNS is provided). Default is 'feature'.
|
||||
* geometryName - {String} Name of geometry attribute. Default is 'the_geom'.
|
||||
*/
|
||||
|
||||
CLASS_NAME: "OpenLayers.Protocol.WFS.v1_1_0"
|
||||
});
|
||||
Reference in New Issue
Block a user