changeset 4758:4db3a1509e90

W80Parser: Respect (ignore) 'shore' field of w80 files.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Thu, 03 Jan 2013 14:42:05 +0100
parents e965593eee57
children 35f4ece9562e
files flys-backend/src/main/java/de/intevation/flys/importer/parsers/W80Parser.java
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/flys-backend/src/main/java/de/intevation/flys/importer/parsers/W80Parser.java	Thu Jan 03 14:41:41 2013 +0100
+++ b/flys-backend/src/main/java/de/intevation/flys/importer/parsers/W80Parser.java	Thu Jan 03 14:42:05 2013 +0100
@@ -178,10 +178,11 @@
         // because later distances are calculated which cannot be
         // negative.
         String pointId = line.substring(0,20);
-        String station = line.substring(9,16);
+        String station = line.substring(9,15);
+        String shore   = line.substring(15,17);
         // TODO: There is 'station' and a 'shore'-code behind.
         // 1 = left, 2 = right. none = middle
-        String pointIndex = line.substring(16,21);
+        String pointIndex = line.substring(17,21);
         // For GK, first seven digits are of interest.
         String gkRight = line.substring(20,30);
         String gkHigh  = line.substring(30,40);

http://dive4elements.wald.intevation.org