1 |
package dk.daoas.fulddaekning; |
package dk.daoas.fulddaekning; |
2 |
|
|
3 |
public class BoundingBox { |
public class BoundingBox { |
4 |
|
|
5 |
|
|
6 |
public static class BoundingBoxException extends Exception{ |
public static class BoundingBoxException extends Exception{ |
7 |
public BoundingBoxException(String reason) { |
public BoundingBoxException(String reason) { |
11 |
private static final long serialVersionUID = 1L; |
private static final long serialVersionUID = 1L; |
12 |
} |
} |
13 |
|
|
14 |
public static final double LATITUDE_MARGIN = 0.02702703; |
//public static final double LATITUDE_MARGIN = 0.02702703; |
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; |
35 |
} |
} |
36 |
|
|
37 |
public void adjustToMargin() { |
public void adjustToMargin() { |
38 |
latitudeMax += LATITUDE_MARGIN; |
Constants consts = Constants.getInstance(); |
39 |
latitudeMin -= LATITUDE_MARGIN; |
|
40 |
|
latitudeMax += consts.getLatitudeMargin(); |
41 |
|
latitudeMin -= consts.getLatitudeMargin(); |
42 |
|
|
43 |
longitudeMax += LONGUTUDE_MARGIN; |
longitudeMax += consts.getLongitudeMargin(); |
44 |
longitudeMin -= LONGUTUDE_MARGIN; |
longitudeMin -= consts.getLongitudeMargin(); |
45 |
} |
} |
46 |
|
|
47 |
|
|