globecontrol图层加载

                        
                        IFeatureLayer pFLayer = new FeatureLayerClass();

                        pFLayer.FeatureClass = fc;

                        pFLayer.Name = pFC.AliasName;

                        ILayer pLayer = pFLayer as ILayer;
       
                                    axGlobeControl1.Globe.AddLayerType(plyr, ESRI.ArcGIS.GlobeCore.esriGlobeLayerType.esriGlobeLayerTypeFloating, false);//浮动
            axGlobeControl1.Globe.GlobeDisplay.RefreshViewers();

            axGlobeControl1.Globe.AddLayerType(plyr, ESRI.ArcGIS.GlobeCore.esriGlobeLayerType.esriGlobeLayerTypeDraped, false);//作为表面纹理
            axGlobeControl1.Globe.GlobeDisplay.RefreshViewers();

            axGlobeControl1.Globe.AddLayerType(plyr, ESRI.ArcGIS.GlobeCore.esriGlobeLayerType.esriGlobeLayerTypeElevation, false);//作为高程数据
            axGlobeControl1.Globe.GlobeDisplay.RefreshViewers();

           //或者
       //(axGlobeControl1.Globe as IScene).AddLayer(pLyr,true);

你可能感兴趣的:(globecontrol图层加载)