arcgis 畫各種element(LineElement, PolygonElement)

畫圓弧

	private IElement createPolylineElement() throws Exception
	{
		ISegmentCollection segmentCollection = new Path();
		
		CircularArc arc = new CircularArc();
		Point start = new Point();
		Point end = new Point();
		Point middle = new Point();
		start.putCoords(200, 200);
		end.putCoords(400, 200);
		middle.putCoords(300, 250);
		arc.constructThreePoints(start, end, middle, false);
		segmentCollection.addSegment(arc, null, null);
		
		Polyline polyline = new Polyline();
		IGeometry geometry = (IGeometry)(segmentCollection);
		polyline.addGeometry(geometry, null, null);
		
		ILineSymbol lineSymbol = MakeNewSimpleLineSymbol();
		LineElement lineElement = new LineElement();
		lineElement.setSymbol(lineSymbol);
		lineElement.setGeometry(polyline);
		
		return lineElement;
	}


發佈了30 篇原創文章 · 獲贊 13 · 訪問量 15萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章