same solution for axisOrientation as for WFS 1.1.0

This commit is contained in:
Bart van den Eijnden
2013-10-24 15:02:15 +02:00
parent c9569ed9e2
commit 279c358af2
2 changed files with 2 additions and 2 deletions

View File

@@ -54,8 +54,7 @@ ol.parser.ogc.GML_v2 = function(opt_options) {
for (var i = 0; i < numCoordinates; ++i) {
var coord = coordinates[i];
var part = goog.array.concat(coord);
if (goog.isDef(this.axisOrientation) &&
this.axisOrientation.substr(0, 2) !== 'en') {
if (this.axisOrientation.substr(0, 2) !== 'en') {
part[0] = coord[1];
part[1] = coord[0];
}

View File

@@ -29,6 +29,7 @@ describe('ol.parser.ogc.WFS_v1_0_0', function() {
new ol.expr.Literal(3), new ol.expr.Literal(4),
undefined,
new ol.expr.Identifier('the_geom')]);
p.getFilterParser().getGmlParser().axisOrientation = 'enu';
var output = p.writers[p.defaultNamespaceURI]['Query'].apply(
p, [{
filter: filter,