zoukankan      html  css  js  c++  java
  • AO+C#设置栅格图层基高 制作三维

    AO+C#设置栅格图层基高

    private void setbaseheight()
            {
                ISceneGraph scenegraph = axSceneControl1.SceneGraph;
                IScene scene = scenegraph.Scene;
                ILayer layer;
                int j;
                

                layer = scene.get_Layer(0);

                IRasterLayer rlayer;
                rlayer = layer as IRasterLayer;
                IRaster raster;
                IRasterSurface rsurface = new RasterSurface();
                ISurface surface;

                raster = (IRaster)rlayer.Raster;

                IRasterBandCollection rasterbands = raster as IRasterBandCollection;
                IRasterBand rasterband = rasterbands.Item(0);
                rsurface.RasterBand = rasterband;
                surface = rsurface as ISurface;

                ILayerExtensions layerextensions = layer as ILayerExtensions;
                I3DProperties properties = new Raster3DPropertiesClass();
                int i;
                object p3d;
                for (i = 0; i < layerextensions.ExtensionCount; i++)
                {
                    p3d = layerextensions.get_Extension(i);
                    if (p3d != null)
                    {
                        properties = (I3DProperties)p3d;
                        break;
                    }

                 
                }

                properties.BaseOption = esriBaseOption.esriBaseSurface;
                properties.BaseSurface = surface;
                properties.Apply3DProperties(layer);
            

                scenegraph = scene.SceneGraph;

                scenegraph.RefreshViewers();
             
            }

    http://blog.gisforum.net/u/211/archives/2008/2013.html

  • 相关阅读:
    C#获取远程客户端IP
    .NET 中的对象序列化
    架构师
    如何在删除并重新安装 IIS 之后修复 IIS 映射
    Web.config里设置upload文件大小限制的属性是什么来着?在哪个Section里?
    ASP.net security
    如何优化JavaScript脚本的性能
    关于session丢失原因的分析
    浅谈对象的序列化(Serialize)
    微软软件架构师培训
  • 原文地址:https://www.cnblogs.com/gisoracle/p/1862997.html
Copyright © 2011-2022 走看看