1 /* Copyright (c) 2006-2008 MetaCarta, Inc., published under the Clear BSD
2 * license. See http://svn.openlayers.org/trunk/openlayers/license.txt for the
3 * full text of the license. */
6 * @requires OpenLayers/Format.js
10 * Function: OpenLayers.Format.WFST
11 * Used to create a versioned WFS protocol. Default version is 1.0.0.
14 * {<OpenLayers.Format>} A WFST format of the given version.
16 OpenLayers.Format.WFST = function(options) {
17 options = OpenLayers.Util.applyDefaults(
18 options, OpenLayers.Format.WFST.DEFAULTS
20 var cls = OpenLayers.Format.WFST["v"+options.version.replace(/\./g, "_")];
22 throw "Unsupported WFST version: " + options.version;
24 return new cls(options);
28 * Constant: OpenLayers.Format.WFST.DEFAULTS
29 * {Object} Default properties for the WFST format.
31 OpenLayers.Format.WFST.DEFAULTS = {