Mercurial > dive4elements > river
changeset 6407:3158f8f227bf
issue1313: Use correct skip lines. In case of recognizing skip, the
first one is skipped already.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Mon, 24 Jun 2013 11:06:08 +0200 |
parents | 24b4819ef514 |
children | efadb301549e |
files | backend/src/main/java/org/dive4elements/river/importer/parsers/PRFParser.java |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/backend/src/main/java/org/dive4elements/river/importer/parsers/PRFParser.java Mon Jun 24 10:35:35 2013 +0200 +++ b/backend/src/main/java/org/dive4elements/river/importer/parsers/PRFParser.java Mon Jun 24 11:06:08 2013 +0200 @@ -364,13 +364,13 @@ List<XY> kmData = data.get(station); - // When the station changed we know we are expecting skip/dummy lines. + // When the station changed (no data yet in line) we expect + // skip/dummy lines to follow if (kmData == null) { - //log.debug("found new km: " + station); kmData = new ArrayList<XY>(); data.put(station, kmData); // When a station change occurs, dummy lines will occur, too. - skip = lineSkipCount; + skip = lineSkipCount -1; continue; }