Mercurial > lada > lada-server
changeset 1217:99e7ede1f37c
Put latitude and longitude in correct order for EPSG:4326.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Thu, 08 Dec 2016 16:56:17 +0100 |
parents | 2343f2995785 |
children | b8e8dcdcc595 |
files | src/main/java/de/intevation/lada/factory/OrtFactory.java |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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 ?