Package visualization.services
Class GeoCoordsUtils
- java.lang.Object
-
- visualization.services.GeoCoordsUtils
-
public class GeoCoordsUtils extends java.lang.ObjectProvides helper methods to convert geographical coordinates into graph viewer coordinates.
-
-
Constructor Summary
Constructors Constructor Description GeoCoordsUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int[]convertToCartesian(GeoCoords coords)Converts geographical coordinates into screen coordinates in a range [0, 100].private static intlatToX(double lat)Converts latitude into x-coordinate of the viewer.private static intlonToY(double lon)Converts longtitude into y-coordinate of the viewer.
-
-
-
Field Detail
-
MIN_LON
private static final double MIN_LON
- See Also:
- Constant Field Values
-
MAX_LON
private static final double MAX_LON
- See Also:
- Constant Field Values
-
MIN_LAT
private static final double MIN_LAT
- See Also:
- Constant Field Values
-
MAX_LAT
private static final double MAX_LAT
- See Also:
- Constant Field Values
-
-
Method Detail
-
latToX
private static int latToX(double lat)
Converts latitude into x-coordinate of the viewer.
-
lonToY
private static int lonToY(double lon)
Converts longtitude into y-coordinate of the viewer.
-
convertToCartesian
public static int[] convertToCartesian(GeoCoords coords)
Converts geographical coordinates into screen coordinates in a range [0, 100]. Returns [Y, X]
-
-