Mercurial > dive4elements > river
changeset 4751:ee6c0f246b28
W80Parser: Added TODO/comment.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Thu, 03 Jan 2013 10:21:46 +0100 |
parents | 60398ab6129a |
children | ce570c74aa94 |
files | flys-backend/src/main/java/de/intevation/flys/importer/parsers/W80Parser.java |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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);