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();