Mercurial > dive4elements > river
comparison flys-backend/src/main/java/de/intevation/flys/importer/parsers/W80Parser.java @ 4757:e965593eee57
W80Parser: Whitespace-cosmetics and comment.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Thu, 03 Jan 2013 14:41:41 +0100 |
parents | ce15529f7624 |
children | 4db3a1509e90 |
comparison
equal
deleted
inserted
replaced
4756:ce15529f7624 | 4757:e965593eee57 |
---|---|
134 } | 134 } |
135 XY lastPoint = this.currentLine.get(currentLine.size()-1); | 135 XY lastPoint = this.currentLine.get(currentLine.size()-1); |
136 return lastPoint.getIndex(); | 136 return lastPoint.getIndex(); |
137 } | 137 } |
138 | 138 |
139 | |
139 /** | 140 /** |
140 * Add a Point (YZ,Index) to the current cross section line. | 141 * Add a Point (YZ,Index) to the current cross section line. |
141 * @param y The y coordinate of new point. | 142 * @param y The y coordinate of new point. |
142 * @param z The z coordinate of new point. | 143 * @param z The z coordinate of new point. |
143 * @param idx Ignored, the parameter of new point. | 144 * @param idx Ignored, the parameter of new point. |
170 /** | 171 /** |
171 * Called for each line. Try to extract info from a w80 line. | 172 * Called for each line. Try to extract info from a w80 line. |
172 */ | 173 */ |
173 @Override | 174 @Override |
174 protected void handleLine(int lineNum, String line) { | 175 protected void handleLine(int lineNum, String line) { |
176 // The 'shore' field shows which side of the river the shore is measured. | |
177 // Therefore, the points have to be added in the correct order (also | |
178 // because later distances are calculated which cannot be | |
179 // negative. | |
175 String pointId = line.substring(0,20); | 180 String pointId = line.substring(0,20); |
176 String station = line.substring(9,16); | 181 String station = line.substring(9,16); |
177 // TODO: There is 'station' and a 'shore'-code behind. | 182 // TODO: There is 'station' and a 'shore'-code behind. |
178 // 1 = left, 2 = right. none = middle | 183 // 1 = left, 2 = right. none = middle |
179 String pointIndex = line.substring(16,21); | 184 String pointIndex = line.substring(16,21); |