app / sg.edu.ntu.scse.cz2006.gymbuddies.util.svy21converter / SVY21

SVY21

open class SVY21

Converter for SVY21 to WGS84 coordinates Adapted from https://github.com/cgcai/SVY21

Since
2019-10-21

Author
cgcai The SVY21 class provides functionality to convert between the SVY21 and Lat/Lon coordinate systems. Internally, the class uses the equations specified in the following web page to perform the conversion. http://www.linz.govt.nz/geodetic/conversion-coordinates/projection-conversions/transverse-mercator-preliminary-computations/index.aspx

Constructors

<init>

Converter for SVY21 to WGS84 coordinates Adapted from https://github.com/cgcai/SVY21

SVY21()

Properties

a

static val a: Double

A0

static val A0: Double

A2

static val A2: Double

A4

static val A4: Double

A6

static val A6: Double

b

static val b: Double

e2

static val e2: Double

e4

static val e4: Double

e6

static val e6: Double

Eo

static val Eo: Double

f

static val f: Double

G

static val G: Double

k

static val k: Double

n

static val n: Double

n2

static val n2: Double

n3

static val n3: Double

n4

static val n4: Double

No

static val No: Double

oLat

static val oLat: Double

oLon

static val oLon: Double

radRatio

static val radRatio: Double

Functions

calcM

open static fun calcM(lat: Double): Double

calcRho

open static fun calcRho(sin2Lat: Double): Double

calcV

open static fun calcV(sin2Lat: Double): Double

computeLatLon

Computes Latitude and Longitude based on an SVY21 coordinate. This method returns an immutable LatLonCoordiante object that contains two fields, latitude, accessible with .getLatitude(), and longitude, accessible with .getLongitude().

open static fun computeLatLon(N: Double, E: Double): LatLonCoordinate!

Computes Latitude and Longitude based on an SVY21 coordinate. This method returns an immutable LatLonCoordiante object that contains two fields, latitude, accessible with .getLatitude(), and longitude, accessible with .getLongitude(). This method is a shorthand for the functionally identical public LatLonCoordinate computeLatLon(double N, double E).

open static fun computeLatLon(coord: SVY21Coordinate!): LatLonCoordinate!

computeSVY21

Computes SVY21 Northing and Easting based on a Latitude and Longitude coordinate. This method returns an immutable SVY21Coordinate object that contains two fields, northing, accessible with .getNorthing(), and easting, accessible with .getEasting().

open static fun computeSVY21(lat: Double, lon: Double): SVY21Coordinate!

Computes SVY21 Northing and Easting based on a Latitude and Longitude coordinate. This method returns an immutable SVY21Coordinate object that contains two fields, northing, accessible with .getNorthing(), and easting, accessible with .getEasting(). This method is a shorthand for the functionally identical public SVY21Coordinate computeSVY21(double lat, double lon).

open static fun computeSVY21(coord: LatLonCoordinate!): SVY21Coordinate!