Move WCS_Capabilities reader into v_1_0_0 class

This commit is contained in:
Christopher Eykamp
2013-01-02 13:41:34 +01:00
parent eb4bbff8f4
commit 37fd98bb03
3 changed files with 3 additions and 16 deletions

View File

@@ -50,21 +50,6 @@ OpenLayers.Format.WCSCapabilities.v1 = OpenLayers.Class(
return capabilities;
},
/**
* Property: readers
* Contains public functions, grouped by namespace prefix, that will
* be applied when a namespaced node is found matching the function
* name. The function will be applied in the scope of this parser
* with two arguments: the node being read and a context object passed
* from the parent.
*/
readers: {
"wcs": {
"WCS_Capabilities": function(node, obj) { // In 1.0.0, this was WCS_Capabilties, changed in 1.1.0
this.readChildNodes(node, obj);
}
}
},
CLASS_NAME: "OpenLayers.Format.WCSCapabilities.v1"

View File

@@ -59,6 +59,9 @@ OpenLayers.Format.WCSCapabilities.v1_0_0 = OpenLayers.Class(
*/
readers: {
"wcs": OpenLayers.Util.applyDefaults({
"WCS_Capabilities": function(node, obj) {
this.readChildNodes(node, obj);
},
"Service": function(node, obj) {
obj.service = {};
this.readChildNodes(node, obj.service);

View File

@@ -58,7 +58,6 @@ OpenLayers.Format.WCSCapabilities.v1_1_0 = OpenLayers.Class(
*/
readers: {
"wcs": OpenLayers.Util.applyDefaults({
// In 1.0.0, this was WCS_Capabilties, in 1.1.0, it's Capabilities
"Capabilities": function(node, obj) {
this.readChildNodes(node, obj);