changeset 1280:a851fc69130c

Allow koord_*_extern to contain comma or dot as decimal separator.
author Raimund Renkert <raimund.renkert@intevation.de>
date Thu, 02 Feb 2017 17:38:08 +0100
parents b63e0abcbf84
children 721d992e79f0
files src/main/java/de/intevation/lada/factory/OrtFactory.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/factory/OrtFactory.java	Thu Feb 02 17:28:31 2017 +0100
+++ b/src/main/java/de/intevation/lada/factory/OrtFactory.java	Thu Feb 02 17:38:08 2017 +0100
@@ -78,8 +78,8 @@
 
             MathTransform transform = CRS.findMathTransform(src, target);
             Coordinate srcCoord = new Coordinate();
-            srcCoord.x = Double.valueOf(xCoord);
-            srcCoord.y = Double.valueOf(yCoord);
+            srcCoord.x = Double.valueOf(xCoord.replace(",", "."));
+            srcCoord.y = Double.valueOf(yCoord.replace(",", "."));
             Coordinate targetCoord = new Coordinate();
             JTS.transform(srcCoord, targetCoord, transform);
 
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)