Mercurial > dive4elements > river
comparison flys-backend/src/main/java/de/intevation/flys/importer/parsers/StaFileParser.java @ 5691:dc2daadbdd0c
StaFileParser: use correct substring for gauge name
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Fri, 12 Apr 2013 20:17:11 +0200 |
parents | 33aa0d152f54 |
children | c75be5205a69 |
comparison
equal
deleted
inserted
replaced
5690:b85df73edef0 | 5691:dc2daadbdd0c |
---|---|
62 if (line.length() < 37) { | 62 if (line.length() < 37) { |
63 log.warn("First line in STA file is too short."); | 63 log.warn("First line in STA file is too short."); |
64 return false; | 64 return false; |
65 } | 65 } |
66 | 66 |
67 String gaugeName = line.substring(16, 37).trim(); | 67 String gaugeName = line.substring(16, 28).trim(); |
68 | 68 |
69 Long gaugeNumber = null; | 69 Long gaugeNumber = null; |
70 | 70 |
71 if (!NOT_PARSE_GAUGE_NUMBERS) { | 71 if (!NOT_PARSE_GAUGE_NUMBERS) { |
72 String gaugeNumberString = line.substring(8, 16).trim(); | 72 String gaugeNumberString = line.substring(8, 16).trim(); |