Utm

Utm

new Utm(zone, hemisphere, easting, northing, datum, convergence, scale)

UTM 좌표계를 생성한다.

Example
var utmCoord = new Utm(52, 'N', 322037, 4096742);
Parameters:
Name Type Default Description
zone number

UTM 기준 6° 간격의 경도 방향 설정 영역 (180°W ~ 180°E까지 1~60으로 구분)

hemisphere string

N : 북반구, S : 남반구

easting number

동향가수값(6자리)

northing number

북향가수값(7자리)

datum LatLon.datum WGS84

기준 데이텀

convergence number null

도편각(진북과 도북 사이의 편차각)

scale number null

그리드 스케일 값

Throws:

UTM 예외 메시지 표시

Type
Error

Methods

(static) parse(utmCoord, datum) → {Utm}

UTM 좌표값을 파싱한다. 공백문자로 구분되며 다음과 같은 형식으로 값을 반환한다.

  • zone : value
  • hemisphere : value
  • easting : value
  • northing : value
Example
var utmCoord = Utm.parse('52 N 322037 4096742');
//zone: 52, hemisphere: 'N', easting: 322037, northing: 4096742
console.log(utmCoord);
Parameters:
Name Type Default Description
utmCoord string

UTM 좌표값 (WGS 84).

datum Datum WGS84

기준 데이텀 (default WGS 84)

Throws:

예외 메시지 표시

Type
Error
Returns:

UTM 객체를 반환한다.

Type
Utm

toLatLonE(utmCoord) → {LatLon}

입력된 UTM 좌표값을 경위도 좌표값으로 변환한다.

Example
var grid = new Utm(52, 'N', 322037.81022032636, 4096742.0590864825);
var latlong = grid.toLatLonE(); 
//37°00′00.00″N, 127°00′00.00″E
console.log(latlon.toString());
Parameters:
Name Type Description
utmCoord Utm

경위도로 변화하려는 UTM 좌표값

Returns:

경위도값을 반환한다.

Type
LatLon

toString(digits) → {string}

UTM 좌표값을 공백 문자가 포함된 문자열로 반환한다.

Example
var utm = Utm.parse('52 N 322037 4096742').toString(4);  
//52 N 322037.0000 4096742.0000
console.log(utm);
Parameters:
Name Type Default Description
digits number 0

동향가수와 북향가수의 소수점 표현값 설정(3 ≡ mm)

Returns:

공백문자가 포함된 UTM 좌표값을 반환한다.

Type
string