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