【文件属性】:
文件名称:同时闪烁多个要素代码(ArcEngine).doc
文件大小:17KB
文件格式:DOC
更新时间:2022-06-12 08:56:24
ArcEngine 闪烁多个要素
同时闪烁多个要素代码(ArcEngine)
///
/// 根据查询条件构造
///
/// 查询条件
public void FilterLayer(string where)
{
IFeatureLayer flyr = (IFeatureLayer)axMapControl1.get_Layer(0);
IFeatureClass fcls = flyr.FeatureClass;
IQueryFilter queryFilter = new QueryFilterClass();
queryFilter.WhereClause = where;
// 缩放到选择结果集,并高亮显示
ZoomToSelectedFeature(flyr, queryFilter);
//闪烁选中得图斑
IFeatureCursor featureCursor = fcls.Search(queryFilter, true);
FlashPolygons(featureCursor);
}