zoukankan      html  css  js  c++  java
  • 打开镶嵌数据集 创建一个镶嵌数据集

    打开镶嵌数据集:

    IMosaicDataset GetMosaicDataset(string pFGDBPath,string pMDame)
                  {
                      IWorkspaceFactory pWorkspaceFactory = new FileGDBWorkspaceFactoryClass();
                      IWorkspace pFgdbWorkspace = pWorkspaceFactory.OpenFromFile(pFGDBPath, 0);
                      
                      IMosaicWorkspaceExtensionHelper pMosaicExentionHelper = new
                          MosaicWorkspaceExtensionHelperClass();
                      
                      IMosaicWorkspaceExtension pMosaicExtention =
    pMosaicExentionHelper.FindExtension(pFgdbWorkspace);
                      
                      return pMosaicExtention.OpenMosaicDataset(pMDame);
     
                  }

    创建一个镶嵌数据集:

      IMosaicDataset CreateMosaicDataset(string pFGDBPath, string pMDame,
    ISpatialReference pSrs )
                  {
     
                    
                      IWorkspaceFactory pWorkspaceFactory = new FileGDBWorkspaceFactory();
     
                      IWorkspace pFgdbWorkspace = pWorkspaceFactory.OpenFromFile(pFGDBPath, 0);
     
                      ICreateMosaicDatasetParameters pCreationPars = new
    CreateMosaicDatasetParametersClass();
                     
                      pCreationPars.BandCount = 3;
                      
                      pCreationPars.PixelType = rstPixelType.PT_UCHAR;
                      
                      IMosaicWorkspaceExtensionHelper pMosaicExentionHelper = new 
    MosaicWorkspaceExtensionHelperClass();
                      
                      IMosaicWorkspaceExtension pMosaicExtention =
    pMosaicExentionHelper.FindExtension(pFgdbWorkspace);
     
                      return pMosaicExtention.CreateMosaicDataset(pMDame, pSrs, pCreationPars,
    "");
     
                  }

  • 相关阅读:
    Spring整合hessian和burlap及自带的Invoker
    Spring 企业级开发应用远程服务原理和实现机制
    RMI
    并行开发 —— 第七篇 简要分析任务与线程池
    并行开发 —— 第二篇 Task的使用
    并行开发 —— 第六篇 异步编程模型
    网络编程——第三篇 HTTP应用编程(下)
    并行开发 —— 第四篇 同步机制(上)
    网络编程——第二篇 HTTP应用编程(上)
    并行开发 —— 第一篇 Parallel的使用
  • 原文地址:https://www.cnblogs.com/qiushuixizhao/p/3245005.html
Copyright © 2011-2022 走看看