求Arcengine 多个要素高亮显示C#代码
将多次属性查询的QueryFilter所获得的要素同时高亮显示for(inti=0;i<count;i++){pQueryFilter.WhereClause+="cel...
将多次属性查询的 QueryFilter所获得的要素 同时高亮显示
for (int i = 0; i < count; i++)
{
pQueryFilter.WhereClause += "cellID" + "='" + path[i].GridID + "'";
}
IFeatureSelection pFeatSelection= mFeatureLayer as IFeatureSelection;
pFeatSelection.SelectFeatures(pQueryFilter, esriSelectionResultEnum.esriSelectionResultNew, false);
我是这样写的,,最后一行有问题 展开
for (int i = 0; i < count; i++)
{
pQueryFilter.WhereClause += "cellID" + "='" + path[i].GridID + "'";
}
IFeatureSelection pFeatSelection= mFeatureLayer as IFeatureSelection;
pFeatSelection.SelectFeatures(pQueryFilter, esriSelectionResultEnum.esriSelectionResultNew, false);
我是这样写的,,最后一行有问题 展开
展开全部
IFeatureSelection ipFeatureSelection = ipFeatureLayer as IFeatureSelection;
ipFeatureSelection.SelectFeatures(ipQueryFilter1, esriSelectionResultNew,false);
ipFeatureSelection.SelectFeatures(ipQueryFilter2, esriSelectionResultAdd,false);
ipFeatureSelection.SelectFeatures(ipQueryFilter3, esriSelectionResultAdd,false);
……
ipMapControl.Refresh(esriViewGeoSelection);
ipFeatureSelection.SelectFeatures(ipQueryFilter1, esriSelectionResultNew,false);
ipFeatureSelection.SelectFeatures(ipQueryFilter2, esriSelectionResultAdd,false);
ipFeatureSelection.SelectFeatures(ipQueryFilter3, esriSelectionResultAdd,false);
……
ipMapControl.Refresh(esriViewGeoSelection);
追问
能详细咨询你一下吗? 我加你百度hi
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询