Click or drag to resize
XDL

XccWGP2UTM(XAngle, XAngle, XVertex2d, Int32, Boolean) Method

Geographic 좌표 시스템으로부터 UTM좌표계로의 변환을 수행한다.

Namespace: Pixoneer.NXDL.NCC
Assembly: NXDLcc (in NXDLcc.dll) Version: 2.0.3.38
Syntax
C#
public static bool WGP2UTM(
	XAngle lon,
	XAngle lat,
	ref XVertex2d pos,
	ref int Zone,
	bool ForceApplyZone
)

Parameters

lon  XAngle
[In] 입력 경도값.
lat  XAngle
[In] 입력 위도값.
pos  XVertex2d
[Out] 출력 UTM 좌표.
Zone  Int32
[Out] 출력 Zone Number. ForceApplyZone이 true인 경우는 출력하고자 하는 Zone Number의 값을 입력해야하고 그렇지 않으면 0으로 설정한다.
ForceApplyZone  Boolean
[In] Geographic좌표계에서 UTM으로 좌표계를 계산시 ForceApplyZone을 true로 하면 Zone 값 입력되는 Zone Number를 사용하여 UTM 좌표값을 계산한다. ForceApplyZone을 false로 하면 Zone값에 설정되는 값을 무시하고 입력되는 위경도 값을 이용하여 Zone값을 계산하여 UTM 좌표를 반환한다.

Return Value

Boolean
성공이면 true, 실패면 false를 리턴
Example
C#
XAngle angLon = new XAngle();
XAngle angLat = new XAngle();
angLon.deg = 127.1234;
angLat.deg = 36.1234;
int nZone = 52;
XVertex2d pos = new XVertex2d();

Xcc.WGP2UTM(angLon, angLat, ref pos, ref nZone, true);
See Also