1
|
/* Copyright (c) 2006-2013 by OpenLayers Contributors (see authors.txt for
|
2
|
* full list of contributors). Published under the 2-clause BSD license.
|
3
|
* See license.txt in the OpenLayers distribution or repository for the
|
4
|
* full text of the license. */
|
5
|
|
6
|
/**
|
7
|
* @requires OpenLayers/Format/WFSCapabilities/v1.js
|
8
|
* @requires OpenLayers/Format/OWSCommon/v1.js
|
9
|
*/
|
10
|
|
11
|
/**
|
12
|
* Class: OpenLayers.Format.WFSCapabilities/v1_1_0
|
13
|
* Read WFS Capabilities version 1.1.0.
|
14
|
*
|
15
|
* Inherits from:
|
16
|
* - <OpenLayers.Format.WFSCapabilities>
|
17
|
*/
|
18
|
OpenLayers.Format.WFSCapabilities.v1_1_0 = OpenLayers.Class(
|
19
|
OpenLayers.Format.WFSCapabilities.v1, {
|
20
|
|
21
|
/**
|
22
|
* Property: regExes
|
23
|
* Compiled regular expressions for manipulating strings.
|
24
|
*/
|
25
|
regExes: {
|
26
|
trimSpace: (/^\s*|\s*$/g),
|
27
|
removeSpace: (/\s*/g),
|
28
|
splitSpace: (/\s+/),
|
29
|
trimComma: (/\s*,\s*/g)
|
30
|
},
|
31
|
|
32
|
/**
|
33
|
* Constructor: OpenLayers.Format.WFSCapabilities.v1_1_0
|
34
|
* Create a new parser for WFS capabilities version 1.1.0.
|
35
|
*
|
36
|
* Parameters:
|
37
|
* options - {Object} An optional object whose properties will be set on
|
38
|
* this instance.
|
39
|
*/
|
40
|
|
41
|
/**
|
42
|
* Property: readers
|
43
|
* Contains public functions, grouped by namespace prefix, that will
|
44
|
* be applied when a namespaced node is found matching the function
|
45
|
* name. The function will be applied in the scope of this parser
|
46
|
* with two arguments: the node being read and a context object passed
|
47
|
* from the parent.
|
48
|
*/
|
49
|
readers: {
|
50
|
"wfs": OpenLayers.Util.applyDefaults({
|
51
|
"DefaultSRS": function(node, obj) {
|
52
|
var defaultSRS = this.getChildValue(node);
|
53
|
if (defaultSRS) {
|
54
|
obj.srs = defaultSRS;
|
55
|
}
|
56
|
}
|
57
|
}, OpenLayers.Format.WFSCapabilities.v1.prototype.readers["wfs"]),
|
58
|
"ows": OpenLayers.Format.OWSCommon.v1.prototype.readers.ows
|
59
|
},
|
60
|
|
61
|
CLASS_NAME: "OpenLayers.Format.WFSCapabilities.v1_1_0"
|
62
|
|
63
|
});
|