zoukankan      html  css  js  c++  java
  • ae中矢量数据转换成栅格数据

     IMap pMap = axMapControl1.Map;
                IFeatureLayer pFeatLyr 
    = (IFeatureLayer)axMapControl1.get_Layer(0);
                IFeatureClass pFeatClass 
    = pFeatLyr.FeatureClass;
                IFeatureClassDescriptor pFClsDp 
    = new FeatureClassDescriptorClass();
                pFClsDp.Create(pFeatClass, 
    null"CODE");

                IWorkspaceFactory pWsf 
    = new RasterWorkspaceFactoryClass();
                IWorkspace pWs 
    = pWsf.OpenFromFile(@"E:\data\result"0);

                IConversionOp pConOp 
    = new RasterConversionOpClass();
                IRasterAnalysisEnvironment pRasterEn 
    = pConOp as IRasterAnalysisEnvironment;
                
    object oo = 200;
                pRasterEn.SetCellSize(esriRasterEnvSettingEnum.esriRasterEnvValue, 
    ref oo);

                IRasterDataset pRDataset 
    = pConOp.ToRasterDataset(pFClsDp as IGeoDataset, "GRID", pWs, "raster");
                IRasterLayer pRlyr 
    = new RasterLayerClass();
                pRlyr.CreateFromDataset(pRDataset);
                pMap.AddLayer(pRlyr 
    as ILayer);

  • 相关阅读:
    小米手机4 rom 下载链接
    java 两个线程交替打印到100
    获取积分最多的人(二)
    刷题通过的题目排名
    考试分数(二)
    牛客的课程订单分析(二)
    牛客的课程订单分析(三)
    docker使用小记
    Dynamic Graph Collaborative Filtering
    Learnable Embedding Sizes for Recommender Systems
  • 原文地址:https://www.cnblogs.com/weihongli/p/2137376.html
Copyright © 2011-2022 走看看