A. C# 数据库中保存着一系列线的端点X、Y坐标,怎么把这些线在ArcMapcontrol中显示出来
AxMapControl画线是用ILineElement做的,具体代码是这样子:
IGeometrypolyline=axMapControl1.TrackLine();
ILineElementpLineElement=newLineElementClass();
IElementpElement=pLineElementasIElement;
pElement.Geometry=polyline;
pGraphicsContainer=pMapasIGraphicsContainer;
pGraphicsContainer.AddElement((IElement)pLineElement,0);
pActiveView.Refresh();