Package org.geotools.geometry.iso.aggregate

Examples of org.geotools.geometry.iso.aggregate.MultiPointImpl


    Set<Point> points = new HashSet<Point>();
    points.add(this.createPointA());
    points.add(this.createPointB());
    points.add(this.createPointC());
    points.add(this.createPointD());
    return (MultiPointImpl) new MultiPointImpl(crs, points); //this.factory.getAggregateFactory().createMultiPoint(points);
  }
View Full Code Here


    points.add(this.createPointFromWKT("POINT(130 240)"));
    points.add(this.createPointFromWKT("POINT(570 240)"));
    points.add(this.createPointFromWKT("POINT(570 240)"));
    points.add(this.createPointFromWKT("POINT(570 240)"));
    points.add(this.createPointFromWKT("POINT(650 240)"));
    MultiPointImpl mp = (MultiPointImpl) this.builder.getAggregateFactory().createMultiPoint(points);
   
    CurveImpl line = this.createCurveFromWKT("CURVE(130 240, 650 240)");
   
    CurveImpl ch = (CurveImpl) mp.getConvexHull();
    //System.out.println(ch.equals(line));
    //System.out.println(line.equals(mp.getConvexHull()));
    //System.out.println(mp.getConvexHull().equals(line));

    assertTrue(mp.getConvexHull().equals(line));
    assertEquals(mp.getConvexHull(),line);
  }
View Full Code Here

TOP

Related Classes of org.geotools.geometry.iso.aggregate.MultiPointImpl

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.