码迷,mamicode.com
首页 > 其他好文 > 详细

wpf arcglobe +c# 三维缩放到图层

时间:2014-05-17 22:11:12      阅读:372      评论:0      收藏:0      [点我收藏+]

标签:c   tar   ext   int   a   get   

       /// <summary>
        /// 地图缩放到图层
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void button5_Click(object sender, RoutedEventArgs e)
        {
            ESRI.ArcGIS.Analyst3D.IScene _Scene = _GlobeControl.Globe as ESRI.ArcGIS.Analyst3D.IScene;
            ESRI.ArcGIS.Carto.ILayer _ILayer = _Scene.get_Layer(0);//获取要缩放的图层
            ESRI.ArcGIS.Geometry.IEnvelope _IEnvelope = _ILayer.AreaOfInterest.Envelope;
            ICamera _ICamera = _GlobeControl.GlobeDisplay.ActiveViewer.Camera;
            IGlobeCamera _IGlobeCamera = _ICamera as IGlobeCamera;
            ISceneViewer _ISceneViewer = _GlobeControl.GlobeDisplay.ActiveViewer;
            _IGlobeCamera.SetToZoomToExtents(_IEnvelope, _GlobeControl.Globe, _ISceneViewer);
        }

wpf arcglobe +c# 三维缩放到图层,布布扣,bubuko.com

wpf arcglobe +c# 三维缩放到图层

标签:c   tar   ext   int   a   get   

原文地址:http://www.cnblogs.com/tianyiwuying/p/3732748.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!