[Dive4elements-commits] [PATCH 11 of 11] DA66Parser: Scale x and y, as they are given in mm. Now we can actually look at the data!

Wald Commits scm-commit at wald.intevation.org
Thu Dec 27 16:10:37 CET 2012


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1356621351 -3600
# Node ID c6d70560285f7e21112ede02ade38635e269beec
# Parent  4f7d264c27f5bc018e8fcd7b1940223b35dc6d37
DA66Parser: Scale x and y, as they are given in mm. Now we can actually look at the data!

diff -r 4f7d264c27f5 -r c6d70560285f flys-backend/src/main/java/de/intevation/flys/importer/parsers/DA66Parser.java
--- a/flys-backend/src/main/java/de/intevation/flys/importer/parsers/DA66Parser.java	Thu Dec 27 16:15:15 2012 +0100
+++ b/flys-backend/src/main/java/de/intevation/flys/importer/parsers/DA66Parser.java	Thu Dec 27 16:15:51 2012 +0100
@@ -277,8 +277,8 @@
         Double iy;
         Double iz;
         try {
-            iy = Double.parseDouble(y);
-            iz = Double.parseDouble(z);
+            iy = Double.parseDouble(y) / 1000d;
+            iz = Double.parseDouble(z) / 1000d;
         }
         catch(java.lang.NumberFormatException nfe) {
             logger.error("Could not parse Number: " + nfe.getMessage());


More information about the Dive4elements-commits mailing list