same solution for axisOrientation as for WFS 1.1.0
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user