[Dive4elements-commits] [PATCH 07 of 10] DA50Parser: Added very basic DA50 parsing (no intersetions or correlation yet

Wald Commits scm-commit at wald.intevation.org
Tue Jan 8 16:54:01 CET 2013


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1357644681 -3600
# Node ID 170cf87a042a387a5319a70b1818ff52b01d0de9
# Parent  5f10f1a7456b52d40bd1a2e095f9929e3e35d8b8
DA50Parser: Added very basic DA50 parsing (no intersetions or correlation yet
done, so pretty useless).

diff -r 5f10f1a7456b -r 170cf87a042a flys-backend/src/main/java/de/intevation/flys/importer/parsers/DA50Parser.java
--- a/flys-backend/src/main/java/de/intevation/flys/importer/parsers/DA50Parser.java	Tue Jan 08 12:30:29 2013 +0100
+++ b/flys-backend/src/main/java/de/intevation/flys/importer/parsers/DA50Parser.java	Tue Jan 08 12:31:21 2013 +0100
@@ -112,6 +112,12 @@
         String gkRRight = line.substring(40,50);
         String gkRHigh  = line.substring(50,60);
         String distance = line.substring(60,70);
+
+        // TODO Intersect/Correlate these with e.g. TIM files.
+        // TODO note that as-is these points are really useless.
+        currentLine = new ArrayList<XY>();
+        currentLine.add(new XY(0, 10,0));
+        currentLine.add(new XY(Double.parseDouble(distance), 10, 1));
     }
 
 


More information about the Dive4elements-commits mailing list