根据查询条件,搜索倒要找的feature,然后选中feature并高亮显示

            axGlobeControl1.Globe.GlobeDisplay.Scene.ClearSelection();
            IQueryFilter QueryFilter 
=   new  QueryFilterClass();
            QueryFilter.WhereClause 
=   " OBJECTID=3 " ;
            IFeatureLayer pFeatureLayer 
=  ArcGlobe.ArcGolbeTools.GetLayer(axGlobeControl1.Globe,  " sde.SDE.污水处理厂_Project " );
            IFeatureCursor featureCursor 
=  pFeatureLayer.Search(QueryFilter,  true );
            IFeature feature 
=  featureCursor.NextFeature();
            IPoint thispoint 
=  feature.Shape  as  IPoint;
            ArcGlobe.ArcGolbeTools.ZoomToPoint(axGlobeControl1.Globe, thispoint.X, thispoint.Y, 
3 );
            axGlobeControl1.Globe.GlobeDisplay.Scene.SelectFeature(pFeatureLayer , feature);
 

你可能感兴趣的:(根据查询条件,搜索倒要找的feature,然后选中feature并高亮显示)