Mercurial > dive4elements > river
comparison flys-backend/src/main/java/de/intevation/flys/importer/PegelGltParser.java @ 464:d37ccb04ab5d
Removed trailing whitespace.
flys-backend/trunk@1637 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Sun, 03 Apr 2011 10:41:27 +0000 |
parents | 5391c329168c |
children |
comparison
equal
deleted
inserted
replaced
463:24e356cf9f6c | 464:d37ccb04ab5d |
---|---|
63 | 63 |
64 line = line.substring(kmPos + KM.length()).trim(); | 64 line = line.substring(kmPos + KM.length()).trim(); |
65 | 65 |
66 String [] parts = line.split("\\s+"); | 66 String [] parts = line.split("\\s+"); |
67 if (parts.length < 4) { | 67 if (parts.length < 4) { |
68 log.warn("line " + in.getLineNumber() | 68 log.warn("line " + in.getLineNumber() |
69 + " has not enough columns"); | 69 + " has not enough columns"); |
70 continue; | 70 continue; |
71 } | 71 } |
72 | 72 |
73 BigDecimal from = new BigDecimal(parts[0].replace(",", ".")); | 73 BigDecimal from = new BigDecimal(parts[0].replace(",", ".")); |
74 BigDecimal to = new BigDecimal(parts[1].replace(",", ".")); | 74 BigDecimal to = new BigDecimal(parts[1].replace(",", ".")); |
75 if (from.compareTo(from) > 0) { | 75 if (from.compareTo(from) > 0) { |
76 BigDecimal t = from; from = to; to = t; | 76 BigDecimal t = from; from = to; to = t; |
77 } | 77 } |
78 ImportRange range = new ImportRange(from, to); | 78 ImportRange range = new ImportRange(from, to); |
79 File staFile = FileTools.repair(new File(parent, parts[2])); | 79 File staFile = FileTools.repair(new File(parent, parts[2])); |
80 File atFile = FileTools.repair(new File(parent, parts[3])); | 80 File atFile = FileTools.repair(new File(parent, parts[3])); |
81 | 81 |