comparison flys-backend/src/main/java/de/intevation/flys/importer/parsers/HYKParser.java @ 1224:ca7d461a53f1

HYK importer: Various small fixes and some extra logging. flys-backend/trunk@2355 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Mon, 18 Jul 2011 16:43:27 +0000
parents d80997bd94ce
children d859c4bc6ace
comparison
equal deleted inserted replaced
1223:268f8da412e3 1224:ca7d461a53f1
177 "parsing num zones, bottom or top height " + 177 "parsing num zones, bottom or top height " +
178 "failed in line " + in.getLineNumber()); 178 "failed in line " + in.getLineNumber());
179 return false; 179 return false;
180 } 180 }
181 formation = new ImportHYKFormation(); 181 formation = new ImportHYKFormation();
182 formation.setEntry(entry); 182 formation.setBottom(bottom);
183 formation.setTop(top);
184 entry.addFormation(formation);
183 185
184 state = State.LINE_3; 186 state = State.LINE_3;
185 break; 187 break;
186 188
187 case LINE_3: 189 case LINE_3:
253 return false; 255 return false;
254 } 256 }
255 try { 257 try {
256 distanceVL = new BigDecimal(parts[0]); 258 distanceVL = new BigDecimal(parts[0]);
257 distanceHF = new BigDecimal(parts[1]); 259 distanceHF = new BigDecimal(parts[1]);
258 distanceVL = new BigDecimal(parts[2]); 260 distanceVR = new BigDecimal(parts[2]);
259 } 261 }
260 catch (NumberFormatException nfe) { 262 catch (NumberFormatException nfe) {
261 log.error("cannot parse number in line " + 263 log.error("cannot parse number in line " +
262 in.getLineNumber()); 264 in.getLineNumber());
263 return false; 265 return false;

http://dive4elements.wald.intevation.org