comparison flys-backend/src/main/java/de/intevation/flys/importer/parsers/DA66Parser.java @ 4792:8b609ea08128

DA66Parser: Added TODOs about riveraxis.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Wed, 09 Jan 2013 09:19:32 +0100
parents fc571444da50
children
comparison
equal deleted inserted replaced
4791:fc571444da50 4792:8b609ea08128
350 if (HEAD_HEAD.equals(head)) { 350 if (HEAD_HEAD.equals(head)) {
351 //logger.debug("New station"); 351 //logger.debug("New station");
352 Matcher m = LINE_PATTERN.matcher(line); 352 Matcher m = LINE_PATTERN.matcher(line);
353 if (m.find()) { 353 if (m.find()) {
354 // Actually matches! 354 // Actually matches!
355 // TODO 'move' last line to match river axis
356 // TODO find river axis intersection
355 currentLine = new ArrayList<XY>(); 357 currentLine = new ArrayList<XY>();
356 double station = stationInKm(Double.parseDouble(m.group(FIELD.STATION.getIdx()))); 358 double station = stationInKm(Double.parseDouble(m.group(FIELD.STATION.getIdx())));
357 data.put(station, currentLine); 359 data.put(station, currentLine);
358 } 360 }
359 else { 361 else {
434 436
435 437
436 /** Called when file is fully consumed. */ 438 /** Called when file is fully consumed. */
437 @Override 439 @Override
438 protected void finish() { 440 protected void finish() {
441 // TODO 'move' last line to match river axis
439 logger.info("Parsed " + data.size() + " lines"); 442 logger.info("Parsed " + data.size() + " lines");
440 } 443 }
441 444
442 445
443 /** Parses files given as arguments. */ 446 /** Parses files given as arguments. */

http://dive4elements.wald.intevation.org