Click or drag to resize
XDL

XsmUpdateRPCModel Method (XRpc, XGCP)

기존의 RPC와 GCP점들을 이용하여 새로운 RPC모델을 생성한다.

Namespace:  Pixoneer.NXDL.NSM
Assembly:  NXDLsm (in NXDLsm.dll) Version: 1.2.817.72
Syntax
C#
public static bool UpdateRPCModel(
	ref XRpc rpc,
	XGCP[] arrGCP
)

Parameters

rpc
Type: Pixoneer.NXDL.NSMXRpc
[Out] 개선된 XRpc객체.
arrGCP
Type: Pixoneer.NXDLXGCP
[In] GCP 배열(XGCP 객체 배열)

Return Value

Type: Boolean
성공이면 true, 실패면 false를 리턴
Examples
This is example #1:
string strFilePathL = "D:\\Sample\\sample.rpc";
XRpc rpc = new XRpc();
String strError;
rpc.LoadFromRPC(strFilePathL, eSensorRPCType.Ikonos, out strError);

// Generate GCP array to update rpc
XGCP[] arrGCP = new XGCP[4];
XGCP gcp;
gcp = new XGCP();
gcp.ID = 0; gcp.imgCoord.x = 0; gcp.imgCoord.y = 0; gcp.refCoord.x = 127.35982299; gcp.refCoord.y = 36.38847486; gcp.Used = true;
arrGCP[0] = gcp;
gcp = new XGCP();
gcp.ID = 1; gcp.imgCoord.x = 2034.0; gcp.imgCoord.y = 0; gcp.refCoord.x = 127.38211805; gcp.refCoord.y = 36.38847486; gcp.Used = true;
arrGCP[1] = gcp;
// add additional gcp....

// Updates rpc using arrGCP
Xsm.UpdateRPCModel(ref rpc, arrGCP);
See Also