[Dive4elements-commits] [PATCH] StaFileParser: take correct substring for gauge number

Wald Commits scm-commit at wald.intevation.org
Wed Apr 10 15:07:43 CEST 2013


# HG changeset patch
# User Tom Gottfried <tom.gottfried at intevation.de>
# Date 1365599259 -7200
# Node ID 33aa0d152f54521104ec1401f39e1d331d47f113
# Parent  ca4b6263996c42893a503ef9c1a06ce8d30bf6f0
StaFileParser: take correct substring for gauge number

diff -r ca4b6263996c -r 33aa0d152f54 flys-backend/src/main/java/de/intevation/flys/importer/parsers/StaFileParser.java
--- a/flys-backend/src/main/java/de/intevation/flys/importer/parsers/StaFileParser.java	Wed Apr 10 15:04:56 2013 +0200
+++ b/flys-backend/src/main/java/de/intevation/flys/importer/parsers/StaFileParser.java	Wed Apr 10 15:07:39 2013 +0200
@@ -69,7 +69,7 @@
             Long gaugeNumber = null;
 
             if (!NOT_PARSE_GAUGE_NUMBERS) {
-                String gaugeNumberString = line.substring(0, 16).trim();
+                String gaugeNumberString = line.substring(8, 16).trim();
 
                 try {
                     gaugeNumber = Long.parseLong(gaugeNumberString);


More information about the Dive4elements-commits mailing list