WCS 1.0.0 parsing now passing all tests
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user