comparison backend/src/main/java/org/dive4elements/river/importer/parsers/W80Parser.java @ 8856:5e38e2924c07 3.2.x

Fix code style.
author Tom Gottfried <tom@intevation.de>
date Thu, 18 Jan 2018 20:12:01 +0100
parents 9d2e69f971f5
children 0a5239a1e46e
comparison
equal deleted inserted replaced
8855:d7c005e12af0 8856:5e38e2924c07
191 * @param z The z coordinate of new point. 191 * @param z The z coordinate of new point.
192 * @param idx Ignored, the parameter of new point. 192 * @param idx Ignored, the parameter of new point.
193 * @return true if point could been added, false otherwise (e.g. not 193 * @return true if point could been added, false otherwise (e.g. not
194 * parsable y or z values. 194 * parsable y or z values.
195 */ 195 */
196 private boolean addPoint(double gkr, double gkh, double height, String idx) { 196 private boolean addPoint(
197 double gkr,
198 double gkh,
199 double height,
200 String idx
201 ) {
197 // Calculate distance between this and lst point (add distances). 202 // Calculate distance between this and lst point (add distances).
198 double d = distanceToLastPoint(gkr, gkh); 203 double d = distanceToLastPoint(gkr, gkh);
199 double totalX = getLastPointX() + d; 204 double totalX = getLastPointX() + d;
200 205
201 // We ignore idx, and increment instead. 206 // We ignore idx, and increment instead.
217 /** 222 /**
218 * Called for each line. Try to extract info from a w80 line. 223 * Called for each line. Try to extract info from a w80 line.
219 */ 224 */
220 @Override 225 @Override
221 protected void handleLine(int lineNum, String line) { 226 protected void handleLine(int lineNum, String line) {
222 // The 'shore' field shows which side of the river the shore is measured. 227 // The 'shore' field shows which side of the river
228 // the shore is measured.
223 // Therefore, the points have to be added in the correct order (also 229 // Therefore, the points have to be added in the correct order (also
224 // because later distances are calculated which cannot be 230 // because later distances are calculated which cannot be
225 // negative. 231 // negative.
226 String pointId = line.substring(0,20); 232 String pointId = line.substring(0,20);
227 String station = line.substring(9,15); 233 String station = line.substring(9,15);

http://dive4elements.wald.intevation.org