Click or drag to resize
XDL

XSpatialReference Class

XSpatialReference는 공간 좌표 시스템에서 정의되는 파라미터를 설정하여 좌표변환에 사용된다. 즉, 특정 투영법으로 투영된 영상의 공간 좌표계를 XSpatialReference객체를 통해 정의할 수 있다. XSpatialReference는 OpenGIS Spatial Reference를 준수하며 Well Known Text포맷등과 호환된다.
Inheritance Hierarchy
SystemObject
  Pixoneer.NXDL.NCCXSpatialReference

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

The XSpatialReference type exposes the following members.

Constructors
  NameDescription
Public methodXSpatialReference
XSpatialReference객체에 기본 생성자로서, 멤버 변수들을 초기화 한다.
Public methodXSpatialReference(XSpatialReference*)
XSpatialReference객체에 대하여 외부 비관리객체의 포인터를 입력받아 복사하여 초기화 한다.
Public methodXSpatialReference(IntPtr)
XSpatialReference객체에 대하여 외부 비관리객체의 포인터를 입력받아 복사하여 초기화 한다.
Public methodXSpatialReference(XSpatialReference)
Top
Properties
  NameDescription
Public propertyCoordType
this 좌표 시스템에 대한 eCoordType을 얻는다.
Public propertyDatumName
this 좌표 시스템에 대한 Datum의 이름을 얻는다.
Public propertyProjectionName
this 좌표 시스템에 대한 Projection의 이름을 얻는다.
Public propertyUnitName
this 좌표 시스템에 대한 Unit의 이름을 얻는다.
Top
Methods
  NameDescription
Public methodClone
this객체와 동일한 XSpatialReference객체를 생성하여 반환한다.
Public methodexportToProj4
XSpartialReference객체를 구성하는 파라미터를 Proj.4형태로 변환한다.
Public methodexportToWkt
XSpartialReference객체를 구성하는 파라미터를 Well Known Text(WKT)형태로 변환한다.
Public methodGetUTMZone
this객체에 설정된 UTM Zone에 대한 정보를 획득한다.
Public methodimportFromEPSG
this객체를 입력되는 EPSG Code값을 이용하여 파라미터를 로딩하고 초기화 시킨다. 좌표 시스템 정의는 외부 pcs.csv, gcs.csv, pcs.override.csv, gcs.override.csv파일에 정의되어 있다. 이곳으로 부터 EPSG Code에 해당하는 좌표 시스템 관련 파라미터들을 로딩하여 초기화 시킬수 있다.
Public methodimportFromESRI
ESRI 상용 제품의 고유 포맷인 .prj파일로 부터 좌표 시스템을 설정한다.
Public methodimportFromWkt
this객체를 입력되는 WKT String값을 이용하여 좌표 시스템 파라미터들을 설정한다.
Public methodIsGeocentric
this객체가 Geocentric 좌표 시스템(ECEF)인지 여부를 확인한다.
Public methodIsGeographic
this객체가 Geographic 좌표 시스템인지 여부를 확인한다.
Public methodIsLocal
this객체가 Local좌표 시스템인지 여부를 확인한다. 좌표계는 통상 이용되는 범위에 따라 전지구적 차원에서사용되는 Grobal좌표계와 일부 지역(Local)에서만 사용하는 지역적 좌표계로 분류한다.
Public methodIsProjected
this객체가 투영법에 의해 투영된 좌표 시스템인지 여부를 확인한다.
Public methodIsSame
this객체가 입력되는 외부 XSpatialReference객체와 동일한 좌표 시스템을 가지고 있는지 여부를 판별한다.
Public methodIsUTM
this객체가 UTM 좌표 시스템인지를 확인한다.
Public methodSetSR
Public methodSetUTM
this객체에 대하여 입력된 Zone 및 North정보를 이용하여 UTM 좌표계를 설정한다.
Public methodSetWellKnownGeogCS
String으로 정의된 Kell Known Text 기반의 Geographic 좌표 시스템을 설정 "WGS84": "EPSG:4326" 와 동일 "WGS72": "EPSG:4322" 와 동일 "NAD27": "EPSG:4267" 와 동일 "NAD83": "EPSG:4269" 와 동일 "EPSG:n": ImportFromEPSG(n) 와 동일한 기능을 하는 Kell Known Text.
Top
Remarks

Examples
This is example #1:
// Set to utm northern hemisphere 52 zone.
XSpatialReference sr = new XSpatialReference();
sr.SetWellKnownGeogCS("WGS84");
// sr.SetWellKnownGeoCS("EPGS:4326");
sr.SetUTM(52, true);

String strWkt= "";
sr.exportToWkt(ref strWkt);
See Also