make WFSCapabilities format retrieve feature type prefix and namespace, r=bartvde (closes #2640)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@10340 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Éric Lemoine
2010-05-18 14:27:27 +00:00
parent 69b4a84381
commit 1c9ba551a7
2 changed files with 12 additions and 3 deletions

View File

@@ -89,6 +89,11 @@ OpenLayers.Format.WFSCapabilities.v1 = OpenLayers.Class(
var name = this.getChildValue(node);
if(name) {
obj.name = name;
var prefix = name.split(":")[0];
if(prefix !== name) {
obj.featurePrefix = prefix;
obj.featureNS = this.lookupNamespaceURI(node, prefix);
}
}
},
@@ -114,4 +119,4 @@ OpenLayers.Format.WFSCapabilities.v1 = OpenLayers.Class(
CLASS_NAME: "OpenLayers.Format.WFSCapabilities.v1"
});
});