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 |
|
|