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) {
|
for (var i = 0; i < numCoordinates; ++i) {
|
||||||
var coord = coordinates[i];
|
var coord = coordinates[i];
|
||||||
var part = goog.array.concat(coord);
|
var part = goog.array.concat(coord);
|
||||||
if (goog.isDef(this.axisOrientation) &&
|
if (this.axisOrientation.substr(0, 2) !== 'en') {
|
||||||
this.axisOrientation.substr(0, 2) !== 'en') {
|
|
||||||
part[0] = coord[1];
|
part[0] = coord[1];
|
||||||
part[1] = coord[0];
|
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),
|
new ol.expr.Literal(3), new ol.expr.Literal(4),
|
||||||
undefined,
|
undefined,
|
||||||
new ol.expr.Identifier('the_geom')]);
|
new ol.expr.Identifier('the_geom')]);
|
||||||
|
p.getFilterParser().getGmlParser().axisOrientation = 'enu';
|
||||||
var output = p.writers[p.defaultNamespaceURI]['Query'].apply(
|
var output = p.writers[p.defaultNamespaceURI]['Query'].apply(
|
||||||
p, [{
|
p, [{
|
||||||
filter: filter,
|
filter: filter,
|
||||||
|
|||||||
Reference in New Issue
Block a user