Mercurial > dive4elements > river
diff backend/src/main/java/org/dive4elements/river/importer/parsers/W80CSVParser.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 | 8ce2d749f0a7 |
children | 0a5239a1e46e |
line wrap: on
line diff
--- a/backend/src/main/java/org/dive4elements/river/importer/parsers/W80CSVParser.java Thu Jan 18 20:10:59 2018 +0100 +++ b/backend/src/main/java/org/dive4elements/river/importer/parsers/W80CSVParser.java Thu Jan 18 20:12:01 2018 +0100 @@ -199,7 +199,12 @@ * @return true if point could been added, false otherwise (e.g. not * parsable y or z values. */ - private boolean addPoint(double gkr, double gkh, double height, String idx) { + private boolean addPoint( + double gkr, + double gkh, + double height, + String idx + ) { // Calculate distance between this and lst point (add distances). double d = distanceToLastPoint(gkr, gkh); double totalX = getLastPointX() + d; @@ -220,7 +225,8 @@ } // As per documentation: - // BW;WPA;ST;UF;PN;LS;BL-LS;Y;X;Z;DL;LZK;SY;SX;SZ;BML;HS;BL-HS;H;DH;HZK;SH;WVA;BMH;BMP;DST;DB;LDS;LKZ; + // BW;WPA;ST;UF;PN;LS;BL-LS;Y;X;Z;DL;LZK;SY;SX;SZ;BML;HS;BL-HS; + // H;DH;HZK;SH;WVA;BMH;BMP;DST;DB;LDS;LKZ; /** @@ -233,7 +239,8 @@ if (lineNum == 1 || lineNum == 2) { return; } - // The 'shore' field shows which side of the river the shore is measured. + // The 'shore' field shows which side of the river the shore + // is measured. // Therefore, the points have to be added in the correct order (also // because later distances are calculated which cannot be // negative. @@ -258,8 +265,8 @@ try { stationKm = Double.parseDouble(station) / 1000d; - gkRightKm = Double.parseDouble(gkRight.replace(",","."));//.substring(0,7)); - gkHighKm = Double.parseDouble(gkHigh.replace(",","."));//.substring(0,7)); + gkRightKm = Double.parseDouble(gkRight.replace(",",".")); + gkHighKm = Double.parseDouble(gkHigh.replace(",",".")); heightM = Double.parseDouble(height.replace(",",".")); } catch (java.lang.NumberFormatException nfe) {