Click or drag to resize
XDL

XCoordinateTransformation Class

XCoordinateTransformation 클래스는 한 쌍의 XSpatialReference 시스템 사이의 좌표를 변환하는 기능을 정의한다. 예를 들어, UTM->Geographic, Geographic->UTM 좌표 시스템 간의 좌표점 변환을 수행한다.
Inheritance Hierarchy
SystemObject
  Pixoneer.NXDL.NCCXCoordinateTransformation

Namespace:  Pixoneer.NXDL.NCC
Assembly:  NXDLcc (in NXDLcc.dll) Version: 2.0.3.31
Syntax
C#
public class XCoordinateTransformation : IDisposable

The XCoordinateTransformation type exposes the following members.

Constructors
  NameDescription
Public methodXCoordinateTransformation
XCoordinateTransformation 클래스에 대한 기본 생성자이며 내부 멤버변수들을 초기화한다.
Top
Methods
  NameDescription
Public methodCreateCoordinateTransform
입력되는 Input XSpatialReference 객체로부터 Output XSpatialReference 객체로의 변환을 위해 초기화한다.
Public methodTransformPt(Double, Double)
설정된 좌표 시스템 간의 입력 좌표점으로부터 출력 좌표점으로 변환을 수행한다.
Public methodTransformPt(Double, Double, Double, Double)
설정된 좌표 시스템간의 입력 좌표점으로부터 출력 좌표점으로 변환을 수행한다.
Top
Examples
위경도 좌표를 UTM 52 zone Northern hemisphere 좌표로 변환한다.
XSpatialReference srIn  = new XSpatialReference();
XSpatialReference srOut = new XSpatialReference();

srIn.SetWellKnownGeogCS("WGS84");
srOut.SetWellKnownGeogCS("WGS84");
srOut.SetUTM(52, true);
XCoordinateTransformation coordTrans = new XCoordinateTransformation();
if (!coordTrans.CreateCoordinateTransform(ref srIn, ref srOut)) return;

double xOut, yOut;
xOut = yOut = 0;
coordTrans.TransformPt(127.0, 36.0, ref xOut, ref yOut);
See Also