/[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 2247 by torben, Mon Dec 15 11:12:21 2014 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.0) {                  if ( latDiff > 1.1) {
33                          throw new BoundingBoxException("For stor latitude forskel / " + latDiff);                          throw new BoundingBoxException("For stor latitude forskel / " + latDiff);
34                  }                  }
35                                    
36                  double lngDiff = Math.abs(longitudeMax - longitudeMin);                  double lngDiff = Math.abs(longitudeMax - longitudeMin);
37                  if ( lngDiff > 1.0) {                  if ( lngDiff > 1.1) {
38                          throw new BoundingBoxException("For stor longitude forskel / " + lngDiff);                          throw new BoundingBoxException("For stor longitude forskel / " + lngDiff);
39                  }                  }
40                                    

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

  ViewVC Help
Powered by ViewVC 1.1.20