// 思路将feature加入至集合

IFeatureCursor pFeatureCursor = pFeatureLayer.Search(null, true);

IFeature pFeature = pFeatureCursor.NextFeature();

ISymbol symbol = CreateSimpleSymbol(pFeature.Shape.GeometryType);

if (pFeature != null)

{

IGeometryCollection pGeometryCollention =new  PolygonClass();

object missing = Type.Missing;

while (pFeature != null)

{

  // 将feature 加入至集合

pGeometryCollention.AddGeometryCollection(pFeature.Shape as IGeometryCollection);

pFeature = pFeatureCursor.NextFeature();

}

    axMapControl1.FlashShape((IGeometry)pGeometryCollention, 3,150 , symbol);

 }

相关文章:

  • 2022-12-23
  • 2021-11-15
  • 2021-06-28
  • 2022-12-23
  • 2021-09-06
  • 2021-11-09
  • 2021-12-24
  • 2021-11-21
猜你喜欢
  • 2021-06-26
  • 2022-12-23
  • 2022-12-23
  • 2020-11-04
  • 2022-12-23
相关资源
相似解决方案