Click or drag to resize
XDL

XGeoPoint Class

이 클래스는 Geographic Coordinate System 상의 좌표인 위도, 경도, 고도값을 표현하며, 위도, 경도, 고도값을 ECEF로 변환하거나 ECEF값을 위도, 경도, 고도값으로 변환을 수행가능하다.
EEC 좌표계는 일반적인 좌표계가 아니다. XDL에서 2차원 도시 모드를 지원하기 위해 설정된 좌표계이다. 사용자가 특별히 EEC에 대한 내용은 알 필요가 없지만 Planet2D 에서 영상을 OnRender 함수를 통해 직접 Rendering을 수행할때 EEC좌표계 변환을 통해 도시해야 한다.
Inheritance Hierarchy
SystemObject
  Pixoneer.NXDLXGeoPoint

Namespace:  Pixoneer.NXDL
Assembly:  NXDL (in NXDL.dll) Version: 2.0.3.30
Syntax
C#
public class XGeoPoint : IDisposable

The XGeoPoint type exposes the following members.

Constructors
  NameDescription
Public methodXGeoPoint
XGeoPoint 클래스에 대한 기본 생성자로, 위도, 경도, 고도를 모두 0으로 초기화한다.
Public methodXGeoPoint(XGeoPoint*)
XGeoPoint 클래스에 대한 생성자로, 외부 XDL::XGeoPoint객체를 입력받아 같은 값으로 초기화한다.
Public methodXGeoPoint(XGeoPoint)
XGeoPoint 클래스에 대한 생성자로, 외부 XGeoPoint 객체를 입력받아 값은 값으로 초기화한다.
Public methodXGeoPoint(XGeoPoint)
Deprecated: XGeoPoint 클래스에 대한 생성자로, 외부 XGeoPoint 객체를 참조로 입력받아 값은 값으로 초기화한다.
Top
Properties
  NameDescription
Public propertyecr
XVertex3d형의 ECR값으로 값을 설정하거나 얻는다.
Public propertyeec
XVertex3d형의 EEC값으로 값을 설정하거나 얻는다.
Public propertyhgt
고도값을 double형의 Meter값으로 설정하거나 얻는다.
Public propertylat
위도값을 XAngle객체로 설정하거나 반환한다.
Public propertylatd
위도값을 double형의 Degree값으로 설정하거나 얻는다.
Public propertylatr
위도값을 double형의 Radian값으로 설정하거나 얻는다.
Public propertylon
경도값을 XAngle객체로 설정하거나 얻는다.
Public propertylond
경도값을 double형의 Degree값으로 설정하거나 얻는다.
Public propertylonr
경도값을 double형의 Radian값으로 설정하거나 얻는다.
Public propertywm
XVertex3d형의 Web Mercator 값을 설정하거나 얻는다.
Top
Methods
  NameDescription
Public methodStatic memberFromAngle
XAngle객체인 위도, 경도, 고도 값을 입력 받아 XGeoPoint객체를 생성하여 반환한다.
Public methodStatic memberFromDegree
double 형의 위도, 경도, 고도 값을 Degree값으로 입력 받아 XGeoPoint객체를 생성하여 반환한다.
Public methodStatic memberFromEcr(XVertex3d)
ECR 좌표 값을 XVertex3d 객체로 입력 받아 XGeoPoint 객체를 생성하여 반환한다.
Public methodStatic memberFromEcr(Double, Double, Double)
입력 double 형의 x, y, z값(단위 : Meter)으로 부터 XGeoPoint객체를 생성하여 반환한다.
Public methodStatic memberFromEec(XVertex3d)
XVertex3d형의 EEC좌표계 값을 입력 받아 XGeoPoint값으로 변환한다.
Public methodStatic memberFromEec(Double, Double, Double)
double형의 x, y, z값(단위 : Meter) EEC 좌표값을 입력 받아 XGeoPoint값을 생성하여 반환한다.
Public methodStatic memberFromRadian
double 형의 위도, 경도, 고도 값을 Radian값으로 입력 받아 XGeoPoint객체를 생성하여 반환한다.
Public methodStatic memberFromWM(XVertex3d)
XVertex3d형의 Web Mercator좌표계 값을 입력 받아 XGeoPoint값으로 변환한다.
Public methodStatic memberFromWM(Double, Double, Double)
double형의 x, y, z값(단위 : Meter) Web Mercator 좌표값을 입력 받아 XGeoPoint값을 생성하여 반환한다.
Public methodIsEqual
입력된 XGeoPoint객체의 값과 동일한지 여부를 확인하여 같을 경우 true를, 다르면 false를 반환한다.
Public methodllh
XAngle객체의 위도, 경도와 double형의 고도값(단위 Meter)으로 객체의 값을 설정한다.
Public methodllhd
경도, 위도와 고도값을 XVertex3d의 x, y, z값으로 변경하여 반환한다. 이 때 x, y값의 단위는 Degree이고 z값은 Meter이다.
Public methodllhd(Double, Double, Double)
Degree 단위의 위도, 경도 값과 double형의 고도값(단위 Meter)으로 객체의 값을 설정한다.
Public methodllhr
객체의 경도, 위도와 고도값을 XVertex3d의 x, y, z값으로 변경하여 반환한다. 이 때 x, y값의 단위는 Radian이고 z값은 Meter이다.
Public methodllhr(Double, Double, Double)
Radian 단위의 위도, 경도 값과 double형의 고도값(단위 Meter)으로 객체의 값을 설정한다.
Top
Examples
This is example #1:
XGeoPoint geoPos1 = XGeoPoint.FromDegree(127.123, 36.1234, 258);
XGeoPoint geoPos2 = XGeoPoint.FromRadian(geoPos1.lonr, geoPos1.latr, geoPos1.hgt);
if (geoPos1.IsEqual(geoPos2))
    Console.WriteLine("geoPos1 is equal to geoPos2");
else
    Console.WriteLine("geoPos1 is not equal to geoPos2");

XVertex3d v1 = geoPos1.ecr;

XGeoPoint geopos3 = XGeoPoint.FromEcr(ref v1);
if (geopos3.IsEqual(geoPos1))
    Console.WriteLine("geoPos3 is equal to geoPos1");
else
    Console.WriteLine("geoPos3 is not equal to geoPos1");
See Also