diff --git a/src/ol/parser/ogc/gmlparser_v2.js b/src/ol/parser/ogc/gmlparser_v2.js index 37bdd9d191..837b5d844e 100644 --- a/src/ol/parser/ogc/gmlparser_v2.js +++ b/src/ol/parser/ogc/gmlparser_v2.js @@ -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]; } diff --git a/test/spec/ol/parser/ogc/wfs_v1_0_0.test.js b/test/spec/ol/parser/ogc/wfs_v1_0_0.test.js index bab4dd44dc..c616061602 100644 --- a/test/spec/ol/parser/ogc/wfs_v1_0_0.test.js +++ b/test/spec/ol/parser/ogc/wfs_v1_0_0.test.js @@ -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,