comparison flys-backend/src/main/java/de/intevation/flys/importer/parsers/PegelGltParser.java @ 3660:976ead36192d

backend: Mention backend warnings in importer. flys-backend/trunk@5254 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Thu, 23 Aug 2012 17:13:47 +0000
parents c5c48f52dc7b
children
comparison
equal deleted inserted replaced
3659:36edf9a71cbd 3660:976ead36192d
55 continue; 55 continue;
56 } 56 }
57 57
58 int kmPos = line.indexOf(KM); 58 int kmPos = line.indexOf(KM);
59 if (kmPos < 0) { 59 if (kmPos < 0) {
60 log.warn("no gauge found in line " + in.getLineNumber()); 60 log.warn("GLT: no gauge found in line " + in.getLineNumber());
61 continue; 61 continue;
62 } 62 }
63 63
64 String gaugeName = line.substring(0, kmPos).trim(); 64 String gaugeName = line.substring(0, kmPos).trim();
65 log.info("Found gauge '" + gaugeName + "'"); 65 log.info("Found gauge '" + gaugeName + "'");
66 66
67 line = line.substring(kmPos + KM.length()).trim(); 67 line = line.substring(kmPos + KM.length()).trim();
68 68
69 String [] parts = line.split("\\s+"); 69 String [] parts = line.split("\\s+");
70 if (parts.length < 4) { 70 if (parts.length < 4) {
71 log.warn("line " + in.getLineNumber() 71 log.warn("GLT: line " + in.getLineNumber()
72 + " has not enough columns"); 72 + " has not enough columns.");
73 continue; 73 continue;
74 } 74 }
75 75
76 BigDecimal from = new BigDecimal(parts[0].replace(",", ".")); 76 BigDecimal from = new BigDecimal(parts[0].replace(",", "."));
77 BigDecimal to = new BigDecimal(parts[1].replace(",", ".")); 77 BigDecimal to = new BigDecimal(parts[1].replace(",", "."));

http://dive4elements.wald.intevation.org