[Dive4elements-commits] [PATCH 10 of 10] W80Parser: Added TODO/comment

Wald Commits scm-commit at wald.intevation.org
Thu Jan 3 10:16:26 CET 2013


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1357204906 -3600
# Node ID ee6c0f246b28c84a5728cf4f29be0cd84776a1ec
# Parent  60398ab6129a4951ea3c60d7c6b5716d277dfccc
W80Parser: Added TODO/comment.

diff -r 60398ab6129a -r ee6c0f246b28 flys-backend/src/main/java/de/intevation/flys/importer/parsers/W80Parser.java
--- a/flys-backend/src/main/java/de/intevation/flys/importer/parsers/W80Parser.java	Thu Jan 03 10:00:13 2013 +0100
+++ b/flys-backend/src/main/java/de/intevation/flys/importer/parsers/W80Parser.java	Thu Jan 03 10:21:46 2013 +0100
@@ -168,6 +168,9 @@
         double dy = gkh - anchor.getCoordinate().getY();
         double d  = Math.sqrt(dx * dx + dy * dy);
 
+        // TODO: Scale to have "x==0" e.g. at axis of river.
+        // TODO: Handle "not straight lines."
+
         // We ignore idx, and increment instead.
         int index;
         int lastPointIdx = lastPointIdx();
@@ -189,6 +192,8 @@
     protected void handleLine(int lineNum, String line) {
         String pointId = line.substring(0,20);
         String station = line.substring(9,16);
+        // TODO: There is 'station' and a 'shore'-code behind.
+        // 1 = left, 2 = right. none = middle
         String pointIndex = line.substring(16,21);
         // For GK, first seven digits are of interest.
         String gkRight = line.substring(20,30);


More information about the Dive4elements-commits mailing list