[Lada-commits] [PATCH] Put latitude and longitude in correct order for EPSG:4326
Wald Commits
scm-commit at wald.intevation.org
Thu Dec 8 16:56:26 CET 2016
# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1481212577 -3600
# Node ID 99e7ede1f37c55e138431cf13508f180720d7b1f
# Parent 2343f299578593ce73cdb5fab21f521059a350a0
Put latitude and longitude in correct order for EPSG:4326.
diff -r 2343f2995785 -r 99e7ede1f37c src/main/java/de/intevation/lada/factory/OrtFactory.java
--- a/src/main/java/de/intevation/lada/factory/OrtFactory.java Thu Dec 08 16:11:15 2016 +0100
+++ b/src/main/java/de/intevation/lada/factory/OrtFactory.java Thu Dec 08 16:56:17 2016 +0100
@@ -50,8 +50,11 @@
String yCoord = null;
switch(kda) {
case 4: epsg = "EPSG:4326";
- xCoord = ort.getKoordXExtern();
- yCoord = ort.getKoordYExtern();
+ /* EPSG:4326 defines the order of latitude and longitude
+ * the other way round than IMIS coordinates specification.
+ */
+ xCoord = ort.getKoordYExtern();
+ yCoord = ort.getKoordXExtern();
break;
case 5: epsg = getEpsgForWgsUtm(ort.getKoordXExtern());
xCoord = ort.getKoordXExtern().length() == 7 ?
More information about the Lada-commits
mailing list