/[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 2330 by torben, Fri Feb 20 08:52:52 2015 UTC revision 2331 by torben, Fri Feb 20 08:58:19 2015 UTC
# Line 10  public class BoundingBox { Line 10  public class BoundingBox {
10                                    
11                  private static final long serialVersionUID = 1L;                                  private static final long serialVersionUID = 1L;                
12          }          }
13                            
         //public static final double LATITUDE_MARGIN = 0.02702703;  
         //public static final double LONGUTUDE_MARGIN = 0.046875;  
           
14          public double latitudeMax;          public double latitudeMax;
15          public double latitudeMin = Double.MAX_VALUE;          public double latitudeMin = Double.MAX_VALUE;
16                    
# Line 42  public class BoundingBox { Line 39  public class BoundingBox {
39                  GeoPoint max = new GeoPoint(latitudeMax, longitudeMax);                  GeoPoint max = new GeoPoint(latitudeMax, longitudeMax);
40                  double afstand = GeoPoint.beregnAfstand(min, max);                  double afstand = GeoPoint.beregnAfstand(min, max);
41                                    
42                  if (afstand >= 125.0) { //hvis cross afstand er over 80 km - så er postnummeret for stort                  if (afstand >= 125.0) { //hvis cross afstand er over X km - så er postnummeret for stort
43                          throw new BoundingBoxException("For stor cross afstand " + afstand);                          throw new BoundingBoxException("For stor cross afstand " + afstand);
44                  }                  }
45          }          }

Legend:
Removed from v.2330  
changed lines
  Added in v.2331

  ViewVC Help
Powered by ViewVC 1.1.20