to.etc.util
Class GIS
java.lang.Object
to.etc.util.GIS
public class GIS
- extends java.lang.Object
Constructor Summary |
GIS()
|
Method Summary |
void |
convertRD(double rdx,
double rdy)
|
static void |
convertRDToWGS84(double[] result,
double rdx,
double rdy)
Convert RijksDriehoeksstel coordinates (epsg:28992) to WGS84 coordinates (epsg:4326) in decimal
(longitude,latitude) notation. |
static double |
deg2rad(double d)
|
static double |
distanceInDeg(double alat,
double alng,
double blat,
double blng)
Calculate distance with lat/long in deg (90%). |
double |
getLatitude()
|
double |
getLongitude()
|
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GIS
public GIS()
convertRDToWGS84
public static void convertRDToWGS84(double[] result,
double rdx,
double rdy)
- Convert RijksDriehoeksstel coordinates (epsg:28992) to WGS84 coordinates (epsg:4326) in decimal
(longitude,latitude) notation.
Based on "Benaderingsformules voor de transformatie tussen RD- en WGS84-kaartcoordinaten"
Authors: - ing. F.H. Schreutelkamp, Stichting 'De Koepel', sterrenwacht 'Sonnenborgh', Utrecht, The Netherlands
Examples:
RD(x,y) --> WGS84(long,lat)
81 Amsterdam (Westertoren): (120700.723, 487525.501) --> (52.37453253, 4.88352559)
21 Groningen (Martinitoren): (233883.131, 582065.167)--> (53.21938317, 6.56820053)
result[0] = lon, result[1] = lat.
convertRD
public void convertRD(double rdx,
double rdy)
getLatitude
public double getLatitude()
getLongitude
public double getLongitude()
deg2rad
public static double deg2rad(double d)
distanceInDeg
public static double distanceInDeg(double alat,
double alng,
double blat,
double blng)
- Calculate distance with lat/long in deg (90%).
- Parameters:
alat
- alng
- blat
- blng
-
- Returns:
main
public static void main(java.lang.String[] args)