implement readers for URL endpoints in WFS 1.1

This commit is contained in:
Bart van den Eijnden
2012-02-09 14:10:49 +01:00
parent 85b9d5f7f9
commit 3a23f15041
3 changed files with 54 additions and 2 deletions

View File

@@ -36,6 +36,56 @@ OpenLayers.Format.WFSCapabilities.v1_1_0 = OpenLayers.Class(
}
},
/**
* Method: read_cap_ows_OperationsMetadata
*/
read_cap_ows_OperationsMetadata: function(capabilities, node) {
var capability = {
request: {}
};
this.runChildNodes(capability.request, node);
capabilities.capability = capability;
},
/**
* Method: read_cap_ows_Operation
*/
read_cap_ows_Operation: function(request, node) {
var operation = {
href: {}
};
this.runChildNodes(operation.href, node);
request[node.getAttribute("name").toLowerCase()] = operation;
},
/**
* Method: read_cap_ows_DCP
*/
read_cap_ows_DCP: function(href, node) {
this.runChildNodes(href, node);
},
/**
* Method: read_cap_ows_HTTP
*/
read_cap_ows_HTTP: function(href, node) {
this.runChildNodes(href, node);
},
/**
* Method: read_cap_ows_Get
*/
read_cap_ows_Get: function(href, node) {
href["get"] = node.getAttribute("xlink:href");
},
/**
* Method: read_cap_ows_Post
*/
read_cap_ows_Post: function(href, node) {
href["post"] = node.getAttribute("xlink:href");
},
CLASS_NAME: "OpenLayers.Format.WFSCapabilities.v1_1_0"
});