根据查询条件,搜索倒要找的feature,然后选中feature并高亮显示收藏
新一篇: .NET技术 C# QA汇总 | 旧一篇: ArcEngine中根据图层名得到图层
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);
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);