Rename contents to contentMetadata to maintain some sort of continuity between WCS 1.0.0 and 1.1.0
This commit is contained in:
@@ -64,14 +64,14 @@ OpenLayers.Format.WCSCapabilities.v1_1_0 = OpenLayers.Class(
|
|||||||
this.readChildNodes(node, obj);
|
this.readChildNodes(node, obj);
|
||||||
},
|
},
|
||||||
"Contents": function(node, request) {
|
"Contents": function(node, request) {
|
||||||
request.contents = [];
|
request.contentMetadata = [];
|
||||||
this.readChildNodes(node, request.contents);
|
this.readChildNodes(node, request.contentMetadata);
|
||||||
},
|
},
|
||||||
"CoverageSummary": function(node, contents) {
|
"CoverageSummary": function(node, contents) {
|
||||||
var coverageSummary = {};
|
var coverageSummary = {};
|
||||||
// Read the summary:
|
// Read the summary:
|
||||||
this.readChildNodes(node, coverageSummary);
|
this.readChildNodes(node, coverageSummary);
|
||||||
|
|
||||||
// Add it to the contents array:
|
// Add it to the contents array:
|
||||||
contents.push(coverageSummary);
|
contents.push(coverageSummary);
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user