arcgis engine C#中更改DefinitionExpression后刷新问题

在c#中使用arcglobe,发现更改DefinitionExpression后不能刷新,此时需要调用RefreshLayer方法

 IScene scene = (IScene)axGlobeControl1.Globe;
            ILayerDescription layerDescription = (ILayerDescription)scene.Layer[0];
            layerDescription.DefinitionExpression = "locationName='bar'";
            ((IGlobeDisplayLayers2)axGlobeControl1.GlobeDisplay).RefreshLayer(layerDescription as ILayer);

你可能感兴趣的:(ArcGis Engine)