Mercurial > dive4elements > river
comparison backend/src/main/java/org/dive4elements/river/importer/parsers/BedHeightParser.java @ 7340:2ce7bacc940f double-precision
Merged changes from default into double precision branch.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Tue, 15 Oct 2013 18:41:55 +0200 |
parents | cc21c197d204 c894b7b45c4c |
children | 4b26fd60105f |
comparison
equal
deleted
inserted
replaced
7334:f7d3fc619976 | 7340:2ce7bacc940f |
---|---|
100 String line | 100 String line |
101 ); | 101 ); |
102 | 102 |
103 protected TreeSet<Double> kmExists; | 103 protected TreeSet<Double> kmExists; |
104 | 104 |
105 | |
106 public BedHeightParser() { | 105 public BedHeightParser() { |
107 bedHeights = new ArrayList<ImportBedHeight>(); | 106 bedHeights = new ArrayList<ImportBedHeight>(); |
108 kmExists = new TreeSet<Double>(EpsilonComparator.CMP); | 107 kmExists = new TreeSet<Double>(EpsilonComparator.CMP); |
109 } | 108 } |
110 | 109 |
260 try { | 259 try { |
261 obj.setSoundingWidth(Integer.valueOf(tmp)); | 260 obj.setSoundingWidth(Integer.valueOf(tmp)); |
262 return true; | 261 return true; |
263 } | 262 } |
264 catch (NumberFormatException e) { | 263 catch (NumberFormatException e) { |
265 log.warn("BHP: Could not parse sounding width in line '" + line + | 264 log.warn("BHP: Could not parse sounding width in line '" + line + |
266 "'. -> Set default value '0'"); | 265 "'. -> Set default value '0'"); |
267 } | 266 } |
268 obj.setSoundingWidth(0); | 267 obj.setSoundingWidth(0); |
269 return true; | 268 return true; |
270 } | 269 } |
271 | 270 |
272 return false; | 271 return false; |
273 } | 272 } |
274 | 273 |