Package chunmap.model.coord

Examples of chunmap.model.coord.CoordinateArray


  @Before
  public void setUp() {
    double[] x = { 1, 2, 3 };
    double[] y = { 1.1, 2.1, 3.1 };
    coorArray = new CoordinateArray(x, y);
  }
View Full Code Here


      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);
    }
View Full Code Here

  public LineString(List<CPoint> pointList) {
    this(pointList.toArray(new CPoint[0]));
  }

  public LineString(CPoint[] pointList) {
    points = new CoordinateArray(pointList);
  }
View Full Code Here

                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;
View Full Code Here

TOP

Related Classes of chunmap.model.coord.CoordinateArray

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.