changeset 4757:e965593eee57

W80Parser: Whitespace-cosmetics and comment.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Thu, 03 Jan 2013 14:41:41 +0100
parents ce15529f7624
children 4db3a1509e90
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 14:41:21 2013 +0100
+++ b/flys-backend/src/main/java/de/intevation/flys/importer/parsers/W80Parser.java	Thu Jan 03 14:41:41 2013 +0100
@@ -136,6 +136,7 @@
         return lastPoint.getIndex();
     }
 
+
     /**
      * Add a Point (YZ,Index) to the current cross section line.
      * @param y The y coordinate of new point.
@@ -172,6 +173,10 @@
      */
     @Override
     protected void handleLine(int lineNum, String line) {
+        // The 'shore' field shows which side of the river the shore is measured.
+        // Therefore, the points have to be added in the correct order (also
+        // because later distances are calculated which cannot be
+        // negative.
         String pointId = line.substring(0,20);
         String station = line.substring(9,16);
         // TODO: There is 'station' and a 'shore'-code behind.

http://dive4elements.wald.intevation.org