changeset 5632:33aa0d152f54

StaFileParser: take correct substring for gauge number
author Tom Gottfried <tom.gottfried@intevation.de>
date Wed, 10 Apr 2013 15:07:39 +0200
parents ca4b6263996c
children 5fb103635427
files flys-backend/src/main/java/de/intevation/flys/importer/parsers/StaFileParser.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);

http://dive4elements.wald.intevation.org