|
XRasterIOCreateImagePyramid Method
|
영상 피라미드(오버뷰)를 생성한다.
Namespace: Pixoneer.NXDL.NIOAssembly: NXDLio (in NXDLio.dll) Version: 2.0.3.38
Syntaxpublic bool CreateImagePyramid(
string strFileName,
eIOCreateXLDMode createMode,
XRSMetaData createOption,
bool bOverwrite,
out string strError,
XThread thd
)
Parameters
- strFileName String
- 입력 파일 경로
- createMode eIOCreateXLDMode
- 영상 피라미드 옵션
- createOption XRSMetaData
- 영상 피라미드 생성 옵션
- bOverwrite Boolean
- 피라미드 파일 재생성 여부. true인 경우 기준 피라미드 파일을 삭제하고 재생성
- strError String
- [Out] 에러 발생시 오류 메시지.
- thd XThread
- [In] Thread
Return Value
Boolean생성 성공 여부
Example
아래는 픽소니어 레벨데이터를 생성하는 예제이다.
using Pixoneer.NXDL;
using Pixoneer.NXDL.NIO;
using Pixoneer.NXDL.NRS;
XRasterIO RasterIO = new XRasterIO();
String strError = "";
if (RasterIO.Initialize(out strError) == false)
{
return;
}
string filePath = @"c:\Samples\test.tif";
string strError = "";
bool res = m_RasterIO.CreateImagePyramid(filePath, eIOCreateXLDMode.All_NoMsg, null, true, out strError, null);
아래는 .ovr 확장자인 TIFF 형식의 영상 피라미드 데이터를 생성하는 예제이다.
using Pixoneer.NXDL;
using Pixoneer.NXDL.NIO;
using Pixoneer.NXDL.NRS;
XRasterIO RasterIO = new XRasterIO();
String strError = "";
if (RasterIO.Initialize(out strError) == false)
{
return;
}
string filePath = @"c:\Samples\test.tif";
string strError = "";
XRSMetaData options = new XRSMetaData();
options.SetValue("Resampling", "average", "OVERVIEW");
options.SetValue("NumLevel", "5", "OVERVIEW");
options.SetValue("COMPRESS_OVERVIEW", "LZW", "config");
options.SetValue("GDAL_TIFF_OVR_BLOCKSIZE", "256", "config");
options.SetValue("MinSize", "256", "OVERVIEW");
bool res = m_RasterIO.CreateImagePyramid(filePath, eIOCreateXLDMode.All_Ovr_NoMsg, options, true, out strError, null);
See Also