Click or drag to resize
XDL

XDMBandTopoModel Class

XDMBandTopoModel클래스는 DEM으로부터 Slope, Aspect, and Shaded relief를 계산하여 지형을 모델링한다.
Inheritance Hierarchy

Namespace:  Pixoneer.NXDL.NRS
Assembly:  NXDLrs (in NXDLrs.dll) Version: 1.2.817.72
Syntax
C#
public class XDMBandTopoModel : XDMBand

The XDMBandTopoModel type exposes the following members.

Constructors
  NameDescription
Public methodXDMBandTopoModel
XDMBandTopoModel 클래스의 기본 생성자로서, 멤버변수에 대하여 초기화를 수행한다.
Top
Methods
  NameDescription
Public methodGetInputParam
지형 모델링을 위한 파라미터를 얻는다.
Public methodSetInputParam
지형 모델링을 위한 입력 파라미터를 설정한다.
Top
Remarks

Shaded Relief 영상처리시 Azimuth와 Elevation에 사용자 입력으로 각각의 값을 설정한다.

Examples
DEM 데이터를 태양 방위각과 고도각을 각각 45도로 설정하여 응영기복도를 생성하여 출력 파일로 저장한다.
// IO initialize to load image file
XRasterIO RasterIO = new XRasterIO();
String strError = "";
if (RasterIO.Initialize(out strError) == false)
{
    return;
}

// Image load
String strFilePathLoad = "D:\\Sample\\NoiseInterpol.xdm";
XRSLoadFile xrsFileInput = RasterIO.LoadFile(strFilePathLoad, out strError, false, eIOCreateXLDMode.All_NoMsg);

// Set input param
XBandParamTopoModel InputParam = new XBandParamTopoModel();
InputParam.SrcBand = xrsFileInput.GetBandAt(0);
InputParam.TopoModelType = eTopoModelType.Shade;
InputParam.SunAzimuth = XAngle.FromDegree(45);
InputParam.SunElevation = XAngle.FromDegree(45);

// Create New process band and set input param
XDMBandTopoModel bandProcess = new XDMBandTopoModel();
if (!bandProcess.SetInputParam(ref InputParam))
{
    return;
}

// create XRSSaveFile to save realtime band(XDMBandXXXX)
XRSSaveFile fileSave = new XRSSaveFile();
XDMBand bandCast = (XDMBand)bandProcess;

fileSave.AddBand(ref bandCast);

// Save output file
XThread thd = null;
String strFilePathSave = "D:\\Sample\\Out_TopoModel.xdm";
if (!RasterIO.Export(ref fileSave, strFilePathSave, "XDM", out strError, thd))
{
    return;
}
See Also