Commit bd9f7094 authored by Björn Richerzhagen's avatar Björn Richerzhagen
Browse files

Bugfix: wrong Long/Lat calculations if world is not symmetric

parent 6bd92206
......@@ -68,25 +68,25 @@ public class GPSCalculation {
public static double getLatUpper() {
return latCenter + scaleFactor * 0.027613 * Binder
.getComponentOrNull(Topology.class).getWorldDimensions().getX()
.getComponentOrNull(Topology.class).getWorldDimensions().getY()
/ 1000;
}
public static double getLatLower() {
return latCenter - scaleFactor * 0.027613 * Binder
.getComponentOrNull(Topology.class).getWorldDimensions().getX()
.getComponentOrNull(Topology.class).getWorldDimensions().getY()
/ 1000;
}
public static double getLonLeft() {
return lonCenter - scaleFactor * 0.0419232 * Binder
.getComponentOrNull(Topology.class).getWorldDimensions().getY()
.getComponentOrNull(Topology.class).getWorldDimensions().getX()
/ 1000;
}
public static double getLonRight() {
return lonCenter + scaleFactor * 0.0419232 * Binder
.getComponentOrNull(Topology.class).getWorldDimensions().getY()
.getComponentOrNull(Topology.class).getWorldDimensions().getX()
/ 1000;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment