WCS 1.0.0 parsing now passing all tests

This commit is contained in:
Christopher Eykamp
2012-12-21 18:51:39 +01:00
parent 5c07ae47bb
commit d0986de775
3 changed files with 157 additions and 64 deletions

View File

@@ -28,6 +28,11 @@ OpenLayers.Format.WCSCapabilities.v1 = OpenLayers.Class(
ows: "http://www.opengis.net/ows"
},
regExes: {
trimSpace: (/^\s*|\s*$/g),
splitSpace: (/\s+/)
},
/**
* Property: defaultPrefix
*/
@@ -78,16 +83,6 @@ OpenLayers.Format.WCSCapabilities.v1 = OpenLayers.Class(
"WCS_Capabilities": function(node, obj) { // In 1.0.0, this was WCS_Capabilties, changed in 1.1.0
this.readChildNodes(node, obj);
},
"Name": function(node, obj) { //????
var name = this.getChildValue(node);
if(name) {
var parts = name.split(":");
obj.name = parts.pop();
if(parts.length > 0) {
obj.featureNS = this.lookupNamespaceURI(node, parts[0]);
}
}
},
"Title": function(node, obj) {
var title = this.getChildValue(node);
if(title) {