Mercurial > dive4elements > gnv-client
diff gnv-artifacts/src/main/java/de/intevation/gnv/statistics/HorizontalProfileStatistics.java @ 778:9a828e5a2390
Removed trailing whitespace
gnv-artifacts/trunk@851 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Mon, 29 Mar 2010 07:58:51 +0000 |
parents | e964a3d8f7bc |
children | b1f5f2a8840f |
line wrap: on
line diff
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/statistics/HorizontalProfileStatistics.java Fri Mar 26 15:31:20 2010 +0000 +++ b/gnv-artifacts/src/main/java/de/intevation/gnv/statistics/HorizontalProfileStatistics.java Mon Mar 29 07:58:51 2010 +0000 @@ -18,18 +18,18 @@ /** * @author Tim Englich <tim.englich@intevation.de> - * + * */ public class HorizontalProfileStatistics extends TimeseriesStatistics { - + private static Logger log = Logger.getLogger(HorizontalProfileStatistics.class); private WKTReader wktReader = new WKTReader(); - + private DistanceCalculator dc = new DistanceCalculator(); - + private double distance = 0; - + /** * Constructor */ @@ -47,7 +47,7 @@ Point start = (Point)this.wktReader.read(previousRow.getString("SHAPE")); Point current = (Point)this.wktReader.read(row.getString("SHAPE")); double delta = this.dc.calculateDistance(start, current); - + if (!Double.isNaN(delta)){ this.distance = this.distance + delta; } @@ -68,11 +68,11 @@ Collection<KeyValueDescibeData> parameters, Collection<KeyValueDescibeData> measurements, Collection<KeyValueDescibeData> dates) { - return (this.findValueTitle(parameters, break1)+ " "+ + return (this.findValueTitle(parameters, break1)+ " "+ this.findValueTitle(measurements,break2)).trim()+" "+ this.findValueTitle(dates,break3); } - + /** * @see de.intevation.gnv.statistics.TimeseriesStatistics#clearStatistics() */