/[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 2238 by torben, Fri Sep 19 09:37:37 2014 UTC revision 2239 by torben, Wed Dec 10 07:36:40 2014 UTC
# Line 27  public class BoundingBox { Line 27  public class BoundingBox {
27          }          }
28                    
29          public void validateBbox() throws BoundingBoxException {          public void validateBbox() throws BoundingBoxException {
                                   
                 if ( Math.abs(latitudeMax-latitudeMin)> 1.0)  
                         throw new BoundingBoxException("For stor latitude forskel");  
30                                    
31                  if ( Math.abs(longitudeMax-longitudeMin)> 1.0)                  double latDiff = Math.abs(latitudeMax - latitudeMin);          
32                          throw new BoundingBoxException("For stor longitude forskel");                  if ( latDiff > 1.0) {
33                            throw new BoundingBoxException("For stor latitude forskel / " + latDiff);
34                    }
35                    
36                    double lngDiff = Math.abs(longitudeMax - longitudeMin);
37                    if ( lngDiff > 1.0) {
38                            throw new BoundingBoxException("For stor longitude forskel / " + lngDiff);
39                    }
40                                    
41                  GeoPoint min = new GeoPoint(latitudeMin, longitudeMin);                  GeoPoint min = new GeoPoint(latitudeMin, longitudeMin);
42                  GeoPoint max = new GeoPoint(latitudeMax, longitudeMax);                  GeoPoint max = new GeoPoint(latitudeMax, longitudeMax);

Legend:
Removed from v.2238  
changed lines
  Added in v.2239

  ViewVC Help
Powered by ViewVC 1.1.20