Mercurial > dive4elements > river
comparison flys-backend/src/main/java/de/intevation/flys/importer/parsers/SedimentDensityParser.java @ 3940:aed7aba93718
Improved logging and stabilized minfo import.
flys-backend/trunk@5500 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Tue, 18 Sep 2012 04:20:33 +0000 |
parents | 8649e4ed01ec |
children | 43aa1ac8614b |
comparison
equal
deleted
inserted
replaced
3939:686b5a5f9f25 | 3940:aed7aba93718 |
---|---|
115 | 115 |
116 if (m.matches()) { | 116 if (m.matches()) { |
117 String lo = m.group(1); | 117 String lo = m.group(1); |
118 String up = m.group(2); | 118 String up = m.group(2); |
119 String unit = m.group(4); | 119 String unit = m.group(4); |
120 | |
121 log.info("Found sediment density depth: " + lo + " - " + up + " " + unit); | |
120 | 122 |
121 try { | 123 try { |
122 ImportDepth depth = new ImportDepth( | 124 ImportDepth depth = new ImportDepth( |
123 new BigDecimal(nf.parse(lo).doubleValue()), | 125 new BigDecimal(nf.parse(lo).doubleValue()), |
124 new BigDecimal(nf.parse(up).doubleValue()), | 126 new BigDecimal(nf.parse(up).doubleValue()), |
130 return true; | 132 return true; |
131 } | 133 } |
132 catch (ParseException pe) { | 134 catch (ParseException pe) { |
133 log.warn("Error while parsing numbers in: '" + line + "'"); | 135 log.warn("Error while parsing numbers in: '" + line + "'"); |
134 } | 136 } |
137 } | |
138 else { | |
139 log.debug("Meta line doesn't contain depth information: " + line); | |
135 } | 140 } |
136 | 141 |
137 return false; | 142 return false; |
138 } | 143 } |
139 | 144 |