/[projects]/dao/FuldDaekningWorker/src/dk/daoas/fulddaekning/BoundingBox.java
ViewVC logotype

Diff of /dao/FuldDaekningWorker/src/dk/daoas/fulddaekning/BoundingBox.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2327 by torben, Tue Feb 10 16:34:55 2015 UTC revision 2328 by torben, Thu Feb 19 13:39:33 2015 UTC
# Line 15  public class BoundingBox { Line 15  public class BoundingBox {
15          //public static final double LONGUTUDE_MARGIN = 0.046875;          //public static final double LONGUTUDE_MARGIN = 0.046875;
16                    
17          public double latitudeMax;          public double latitudeMax;
18          public double latitudeMin;          public double latitudeMin = Double.MAX_VALUE;
19                    
20          public double longitudeMax;          public double longitudeMax;
21          public double longitudeMin;          public double longitudeMin = Double.MAX_VALUE;
22                    
23                    
24          @Override          @Override
# Line 27  public class BoundingBox { Line 27  public class BoundingBox {
27          }          }
28                    
29          public void validateBbox() throws BoundingBoxException {          public void validateBbox() throws BoundingBoxException {
30                    
31                  double latDiff = Math.abs(latitudeMax - latitudeMin);                            double latDiff = Math.abs(latitudeMax - latitudeMin);          
32                  if ( latDiff > 1.1) {                  if ( latDiff > 1.1) {
33                          throw new BoundingBoxException("For stor latitude forskel / " + latDiff);                          throw new BoundingBoxException("For stor latitude forskel / " + latDiff);

Legend:
Removed from v.2327  
changed lines
  Added in v.2328

  ViewVC Help
Powered by ViewVC 1.1.20