XDL TIP
[NCC] Static 함수를 이용한 다양한 좌표계 변환
작성자
pixoneer
작성일
2016-11-19 18:51
조회
3068
// Geographic->UTM 변환
{
XAngle angLon = new XAngle();
XAngle angLat = new XAngle();
angLon.deg = 127.1234;
angLat.deg = 36.1234;
int nZone = 0;
XVertex2d pos = new XVertex2d();
Xcc.WGP2UTM(angLon, angLat, ref pos, ref nZone);
}
// UTM->Geographic 변환
{
XVertex2d pos = new XVertex2d(434565, 4458652);
XAngle angLon = new XAngle();
XAngle angLat = new XAngle();
int nZone = 52;
Xcc.UTM2WGP(pos, nZone, ref angLon, ref angLat);
}
// UTM->MGRS 변환
{
XVertex2d pos = new XVertex2d(434565, 4458652);
XAngle angLon = new XAngle();
XAngle angLat = new XAngle();
int nZone = 52;
string strMGRS = "";
Xcc.UTM2MGRS(pos, nZone, ref strMGRS);
}
// WGP->MGRS 변환
{
XAngle angLon = new XAngle();
XAngle angLat = new XAngle();
angLon.deg = 127.1234;
angLat.deg = 36.1234;
string strMGRS = "";
Xcc.WGP2MGRS(angLon, angLat, ref strMGRS);
}
// MGRS->UTM 변환
{
XVertex2d pos = new XVertex2d();
int nZone = 0;
Xcc.MGRS2UTM("52SCE3112199266", ref pos, ref nZone);
}
// MGRS->WGP 변환
{
XVertex2d pos = new XVertex2d();
XAngle lon = new XAngle();
XAngle lat = new XAngle();
Xcc.MGRS2WGP("52SCE3112199266", ref lon, ref lat);
}
// WGP->GEOREF(World Geographic Reference) 변환
{
XAngle angLon = new XAngle();
XAngle angLat = new XAngle();
angLon.deg = 127.1234;
angLat.deg = 36.1234;
int numDigit = 8;
string strGEOREF = "";
Xcc.WGP2GEOREF(angLon, angLat, ref numDigit, ref strGEOREF);
}
// GEOREF->WGP 변환
{
XAngle angLon = new XAngle();
XAngle angLat = new XAngle();
string strGEOREF = "WJHG07400740";
Xcc.GEOREF2WGP(strGEOREF, ref angLon, ref angLat);
}
{
XAngle angLon = new XAngle();
XAngle angLat = new XAngle();
angLon.deg = 127.1234;
angLat.deg = 36.1234;
int nZone = 0;
XVertex2d pos = new XVertex2d();
Xcc.WGP2UTM(angLon, angLat, ref pos, ref nZone);
}
// UTM->Geographic 변환
{
XVertex2d pos = new XVertex2d(434565, 4458652);
XAngle angLon = new XAngle();
XAngle angLat = new XAngle();
int nZone = 52;
Xcc.UTM2WGP(pos, nZone, ref angLon, ref angLat);
}
// UTM->MGRS 변환
{
XVertex2d pos = new XVertex2d(434565, 4458652);
XAngle angLon = new XAngle();
XAngle angLat = new XAngle();
int nZone = 52;
string strMGRS = "";
Xcc.UTM2MGRS(pos, nZone, ref strMGRS);
}
// WGP->MGRS 변환
{
XAngle angLon = new XAngle();
XAngle angLat = new XAngle();
angLon.deg = 127.1234;
angLat.deg = 36.1234;
string strMGRS = "";
Xcc.WGP2MGRS(angLon, angLat, ref strMGRS);
}
// MGRS->UTM 변환
{
XVertex2d pos = new XVertex2d();
int nZone = 0;
Xcc.MGRS2UTM("52SCE3112199266", ref pos, ref nZone);
}
// MGRS->WGP 변환
{
XVertex2d pos = new XVertex2d();
XAngle lon = new XAngle();
XAngle lat = new XAngle();
Xcc.MGRS2WGP("52SCE3112199266", ref lon, ref lat);
}
// WGP->GEOREF(World Geographic Reference) 변환
{
XAngle angLon = new XAngle();
XAngle angLat = new XAngle();
angLon.deg = 127.1234;
angLat.deg = 36.1234;
int numDigit = 8;
string strGEOREF = "";
Xcc.WGP2GEOREF(angLon, angLat, ref numDigit, ref strGEOREF);
}
// GEOREF->WGP 변환
{
XAngle angLon = new XAngle();
XAngle angLat = new XAngle();
string strGEOREF = "WJHG07400740";
Xcc.GEOREF2WGP(strGEOREF, ref angLon, ref angLat);
}
전체 0개
번호 | 제목 | 작성자 | 작성일 | 조회 |
7 |
[NXDL] XGeoPoint클래스 사용하기
pixoneer
2016.11.19
3326
|
pixoneer | 2016.11.19 | 3326 |
6 |
[NXDL] XColorTable사용하기
pixoneer
2016.11.19
1650
|
pixoneer | 2016.11.19 | 1650 |
5 |
[NXDL] XGrid클래스 사용하기
pixoneer
2016.11.18
1875
|
pixoneer | 2016.11.18 | 1875 |
4 |
[NXDL] XVertex2i 클래스 사용하기
pixoneer_THK
2016.11.18
1597
|
pixoneer_THK | 2016.11.18 | 1597 |
3 |
[NXDL] XVertex3d클래스 사용하기
pixoneer_THK
2016.11.18
1602
|
pixoneer_THK | 2016.11.18 | 1602 |
2 |
[NXDL] XVertex2d 클래스 사용하기
pixoneer_THK
2016.11.18
1602
|
pixoneer_THK | 2016.11.18 | 1602 |
1 |
[NXDL] XAngle클래스 사용하기
pixoneer_THK
2016.11.18
1635
|
pixoneer_THK | 2016.11.18 | 1635 |