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

  • 相关阅读:
    Failed to start component [StandardEngine[Tomcat].StandardHost[localhost]]
    [bzoj4720] [noip2016]换教室
    [noip2017]时间复杂度
    2018-8-14队测
    2018-8-13队测
    [bzoj4555] [Tjoi2016&Heoi2016]求和
    oracle安装—Windows7旗舰版32位安装oracle10g方法
    有一种书叫——迫不及待
    iptable防火墙配置
    kickstrat
  • 原文地址:https://www.cnblogs.com/gisoracle/p/1862997.html
Copyright © 2011-2022 走看看