Mercurial > dive4elements > river
changeset 3430:278b5508567e
FixA: fixed aggregation bug in calculation of range spreads.
flys-artifacts/trunk@5090 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Fri, 20 Jul 2012 15:17:16 +0000 |
parents | 3353672f9ba2 |
children | 0568ffd29bb2 |
files | flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/FixingsOverview.java |
diffstat | 2 files changed, 9 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog Fri Jul 20 13:51:36 2012 +0000 +++ b/flys-artifacts/ChangeLog Fri Jul 20 15:17:16 2012 +0000 @@ -1,3 +1,10 @@ +2012-07-20 Sascha L. Teichmann <sascha.teichmann@intevation.de> + + * src/main/java/de/intevation/flys/artifacts/model/FixingsOverview.java: + Wrong epsilon was taken so sector aggregation was not working + leading to too large result documents and wrong range display + on client side. + 2012-07-20 Sascha L. Teichmann <sascha.teichmann@intevation.de> * contrib/fixoverview2html.xsl: Render the names of the gauges into
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/FixingsOverview.java Fri Jul 20 13:51:36 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/FixingsOverview.java Fri Jul 20 15:17:16 2012 +0000 @@ -25,7 +25,7 @@ { private static Logger log = Logger.getLogger(FixingsOverview.class); - public static final double EPSILON = 1e-1; + public static final double EPSILON = 1e-2; public static final String DATE_FORMAT = "dd.MM.yyyy"; @@ -123,7 +123,7 @@ public boolean enlarge(SectorRange other) { if (sector == other.sector - && Math.abs(end-other.start) < EPSILON) { + && Math.abs(end-other.start) < FixingsOverview.EPSILON) { end = other.end; return true; }