Mercurial > dive4elements > river
comparison flys-backend/src/main/java/de/intevation/flys/importer/parsers/W80Parser.java @ 4747:2a6d64a415e4
W80Parser: Put infrastructure for an anchor point in place.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Thu, 03 Jan 2013 09:58:16 +0100 |
parents | 94b39073f0f7 |
children | 3028037c6293 |
comparison
equal
deleted
inserted
replaced
4746:0b60b77d4d00 | 4747:2a6d64a415e4 |
---|---|
3 import de.intevation.artifacts.common.utils.FileTools; | 3 import de.intevation.artifacts.common.utils.FileTools; |
4 | 4 |
5 import de.intevation.flys.importer.XY; | 5 import de.intevation.flys.importer.XY; |
6 | 6 |
7 import de.intevation.flys.utils.EpsilonComparator; | 7 import de.intevation.flys.utils.EpsilonComparator; |
8 import de.intevation.flys.importer.parsers.tim.Coordinate; | |
8 | 9 |
9 import java.io.File; | 10 import java.io.File; |
10 import java.io.IOException; | 11 import java.io.IOException; |
11 | 12 |
12 import java.util.ArrayList; | 13 import java.util.ArrayList; |
51 private List<XY> currentLine; | 52 private List<XY> currentLine; |
52 | 53 |
53 | 54 |
54 /** Data collected so far, last element will be currentLine. */ | 55 /** Data collected so far, last element will be currentLine. */ |
55 protected Map<Double, List<XY>> data; | 56 protected Map<Double, List<XY>> data; |
57 | |
58 | |
59 /** Anchor to project to. */ | |
60 private class Anchor { | |
61 private Coordinate coordinate; | |
62 private double station; | |
63 public Anchor(Coordinate anchor, double station) { | |
64 this.coordinate = anchor; | |
65 this.station = station; | |
66 } | |
67 public double getStation() { | |
68 return station; | |
69 } | |
70 public Coordinate getCoordinate() { | |
71 return coordinate; | |
72 } | |
73 } | |
74 | |
75 | |
76 private Anchor anchor; | |
56 | 77 |
57 | 78 |
58 /** Trivial constructor. */ | 79 /** Trivial constructor. */ |
59 public W80Parser() { | 80 public W80Parser() { |
60 data = new TreeMap<Double, List<XY>>(EpsilonComparator.CMP); | 81 data = new TreeMap<Double, List<XY>>(EpsilonComparator.CMP); |