implement readers for URL endpoints in WFS 1.1
This commit is contained in:
@@ -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"
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user