【发布时间】:2011-07-20 09:59:13
【问题描述】:
在使用 ArcGis 引擎的独立 c#/wpf 应用程序中,我加载了一些形状,selected some features。
现在我想突出显示选定的功能之一。我可以在 IFeatureSelection/Layer 上找到对象/特征,我从 IFeature.Shape 获得了 IGeometry。
有没有一种简单的方法来标记已知的特征/形状,比如用红色或类似的东西?
我有这样的功能:
AxMapControl _mapControl;
IFeatureSelection features = _mapControl.Map.Layer[0] as IFeatureSelection;
ICursor cursor;
features.SelectionSet.Search(null, true, out cursor);
IFeature feature;
while ((feature = ((IFeatureCursor)cursor).NextFeature()) != null)
{
IGeometry geometry = feature.Shape;
}
我搜索了样本,但找不到我需要的。
【问题讨论】:
-
你也可以试试:gis.stackexchange.com