fromLatLon

fun fromLatLon(latitude: Angle, longitude: Angle, aOrNull: Double?, fOrNull: Double?, originLatitude: Angle, centralMeridian: Angle, falseEasting: Double, falseNorthing: Double, scale: Double): TMCoord

Create a set of Transverse Mercator coordinates from a pair of latitude and longitude, for the given projection parameters.

Return

the corresponding TMCoord. or the conversion to TM coordinates fails. If the globe is null conversion will default to using WGS84.

Parameters

latitude

the latitude.

longitude

the longitude.

aOrNull

semi-major ellipsoid radius. If this and argument f are non-null and globe is null, will use the specified a and f.

fOrNull

ellipsoid flattening. If this and argument a are non-null and globe is null, will use the specified a and f.

originLatitude

the origin latitude.

centralMeridian

the central meridian longitude.

falseEasting

easting value at the center of the projection in meters.

falseNorthing

northing value at the center of the projection in meters.

scale

scaling factor.