30313233343536
@Before public void setUp() { double[] x = { 1, 2, 3 }; double[] y = { 1.1, 2.1, 3.1 }; coorArray = new CoordinateArray(x, y); }
697071727374757677
return new MultiLineString(lss); } public LineString createLineString(double[] x, double[] y) { CoordinateSeq ca = new CoordinateArray(x, y); CoordinateSeq nca = ca.transform(precision.getTransform()); return new LineString(nca); }
36373839404142
public LineString(List<CPoint> pointList) { this(pointList.toArray(new CPoint[0])); } public LineString(CPoint[] pointList) { points = new CoordinateArray(pointList); }
123124125126127128129130131132133134
points2.addAll(tpoints2); break; } } // 构造多线 CoordinateSeq l1 = new CoordinateArray(points1.toArray(new CPoint[0])); CoordinateSeq l2 = new CoordinateArray(points2.toArray(new CPoint[0])); List<CoordinateSeq> lines2 = new ArrayList<CoordinateSeq>(); lines2.add(l1); lines2.add(l2); return lines2; //return null;