Click or drag to resize
XDL

XDMBandLandCover2GIS Class

토지피복지도의 이미지를 색상을 기준으로 GIS밴드로 변환하는 작업을 수행한다. 정부에서 배포하는 토지피복지도를 입력받아 토지피복 변화탐지등의 기능을 위해 GIS밴드로 변환할때 사용가능며 GIS 밴드를 도시해서 분류결과를 확인할 수 있다.
Inheritance Hierarchy
SystemObject
  Pixoneer.NXDL.NRSXDMBand
    Pixoneer.NXDL.NRSXDMBandLandCover2GIS

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

The XDMBandLandCover2GIS type exposes the following members.

Constructors
  NameDescription
Public methodXDMBandLandCover2GIS
XDMBandLandCover2GIS클래스의 기본 생성자로서, 멤버변수에 대하여 초기화를 수행한다.
Top
Methods
  NameDescription
Public methodGetInputParam
XDMBandLandCover2GIS처리를 위한 파라미터를 얻는다.
Public methodGetNameFromID
토지피복 분류 후 입력 ID에 대응하는 피복정보 문자열을 리턴한다.
Public methodSetInputParam
XDMBandLandCover2GIS처리를 위한 입력 파라미터 설정.
Top
Remarks

Examples
배포된 토지피복도 영상을 대분류로 분류하여 토지피복 정보를 확인할 수 있도록 XDM 파일로 저장하는 예제이다.
// 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\\RS_Sample\\LandCover2GIS\\2000y_37705.tif";
XRSLoadFile xrsFileInput = RasterIO.LoadFile(strFilePathLoad, out strError, false, eIOCreateXLDMode.All_NoMsg);

// Set input param 
XBandParamLandCover2GIS InputParam = new XBandParamLandCover2GIS();

// Common
InputParam.BandR = xrsFileInput.GetBandAt(0);
InputParam.BandG = xrsFileInput.GetBandAt(1);
InputParam.BandB = xrsFileInput.GetBandAt(2);
InputParam.LandCoverType = eLandCoverType.Big;

// Create New process band and set input param
XDMBandLandCover2GIS bandProcess = new XDMBandLandCover2GIS();
bandProcess.BandName = xrsFileInput.FileName;
bandProcess.SetInputParam(ref InputParam);

// create XRSSaveFile to save realtime band(XDMBandXXXX)
// load another file to protect thread lock(it is stable and faster).
XRSSaveFile fileSave = new XRSSaveFile();
XDMBand bandCast = (XDMBand)bandProcess;
fileSave.AddBand(ref bandCast);

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