comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/FixingsOverview.java @ 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 c44ff50f4970
children 658dc517fd7b
comparison
equal deleted inserted replaced
3429:3353672f9ba2 3430:278b5508567e
23 public class FixingsOverview 23 public class FixingsOverview
24 implements Serializable 24 implements Serializable
25 { 25 {
26 private static Logger log = Logger.getLogger(FixingsOverview.class); 26 private static Logger log = Logger.getLogger(FixingsOverview.class);
27 27
28 public static final double EPSILON = 1e-1; 28 public static final double EPSILON = 1e-2;
29 29
30 public static final String DATE_FORMAT = "dd.MM.yyyy"; 30 public static final String DATE_FORMAT = "dd.MM.yyyy";
31 31
32 public static final String SQL_RIVER_ID = 32 public static final String SQL_RIVER_ID =
33 "SELECT" + 33 "SELECT" +
121 this.sector = sector; 121 this.sector = sector;
122 } 122 }
123 123
124 public boolean enlarge(SectorRange other) { 124 public boolean enlarge(SectorRange other) {
125 if (sector == other.sector 125 if (sector == other.sector
126 && Math.abs(end-other.start) < EPSILON) { 126 && Math.abs(end-other.start) < FixingsOverview.EPSILON) {
127 end = other.end; 127 end = other.end;
128 return true; 128 return true;
129 } 129 }
130 return false; 130 return false;
131 } 131 }

http://dive4elements.wald.intevation.org