From a2ce328ec59b4c1934c0a84ac3a435367fd15373 Mon Sep 17 00:00:00 2001 From: AkeluX <374540+AkeluX@users.noreply.github.com> Date: Fri, 27 Jul 2018 17:10:28 +0200 Subject: [PATCH] =?UTF-8?q?The=20coordinates=20in=20a=20WKT=20shape=20are?= =?UTF-8?q?=20ordered=20as=20=E2=80=9Clongitude=20latitude=E2=80=9D.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/formats/wkt/geom/WktObject.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/formats/wkt/geom/WktObject.js b/src/formats/wkt/geom/WktObject.js index cec604d2..5da51905 100644 --- a/src/formats/wkt/geom/WktObject.js +++ b/src/formats/wkt/geom/WktObject.js @@ -94,9 +94,9 @@ define([ */ WktObject.prototype.addCoordinates = function (coordinates) { if (this._is3d) { - this.coordinates.push(new Position(coordinates[0], coordinates[1], coordinates[2] || 0)); + this.coordinates.push(new Position(coordinates[1], coordinates[0], coordinates[2] || 0)); } else { - this.coordinates.push(new Location(coordinates[0], coordinates[1])); + this.coordinates.push(new Location(coordinates[1], coordinates[0])); } };