Element boundedBy must not be set as geometry field on GML reading

This commit is contained in:
Florent gravin
2014-10-03 16:21:30 +02:00
parent f863386f39
commit 51da7bad8c

View File

@@ -170,8 +170,11 @@ ol.format.GMLBase.prototype.readFeature_ = function(node, objectStack) {
}
values[ol.xml.getLocalName(n)] = value;
} else {
// boundedBy is an extent and must not be considered as a geometry
if (n.localName !== 'boundedBy') {
geometryName = ol.xml.getLocalName(n);
values[geometryName] = this.readGeometryElement(n, objectStack);
}
values[ol.xml.getLocalName(n)] = this.readGeometryElement(n, objectStack);
}
}
var feature = new ol.Feature(values);