Examples of convexHull()


Examples of com.vividsolutions.jts.geom.Geometry.convexHull()

                    }
                    if (geometry == null) {
                        logger.error("Unable to get a geometry from the node");
                        throw new XPathException("Unable to get a geometry from the node");
                    }
                    geometry = geometry.convexHull();
                }
            } else if (isCalledAs("boundary")) {
                if (args[0].isEmpty())
                    result = Sequence.EMPTY_SEQUENCE;
                else {
View Full Code Here

Examples of com.vividsolutions.jts.geom.Geometry.convexHull()

        // Handle geometries
        List<Geometry> geometriesList = EsriJsonUtil
            .json2Geometries(geometries);
        Geometry collection = GeometryUtil.gf().buildGeometry(
            geometriesList);
        resultGeometry = collection.convexHull();
      }

      // Various out format
      if ("json".equals(f)) {
        result = this
View Full Code Here

Examples of com.vividsolutions.jts.geom.Geometry.convexHull()

       
        Geometry totalShell;
        totalShell = JTSUtils.getFactory().createGeometryCollection(shells);
       
        LineString[] skirt;
        skirt = JTSUtils.getLineStrings(totalShell.convexHull().buffer(lp.skirt_distance));
       
        ggen.parse(skirt[0], lp.height, lp.extrusion_width, lp.perimeter_speed);
    }
   
    private void generateObjectLayer(GCodeGenerator ggen, PrintObject obj, LayerProperties lp) throws TopologyException{
View Full Code Here

Examples of com.vividsolutions.jts.geom.Geometry.convexHull()

    }

    static public Geometry convexHull(Geometry arg0) {
        Geometry _this = arg0;

        return _this.convexHull();
    }

    static public Geometry intersection(Geometry arg0, Geometry arg1) {
        Geometry _this = arg0;
View Full Code Here

Examples of com.vividsolutions.jts.geom.Geometry.convexHull()

     static public Geometry convexHull(Geometry arg0)
     {
           if (arg0 == null) return null;
           Geometry _this = arg0;

           return _this.convexHull();
     }

     static public Geometry intersection(Geometry arg0,Geometry arg1)
     {
           if (arg0 == null || arg1 == null) return null;
View Full Code Here

Examples of com.vividsolutions.jts.geom.Geometry.convexHull()

  public void test2() throws Exception {
    WKTReader reader = new WKTReader(new GeometryFactory(new PrecisionModel(1), 0));
    Geometry geometry = reader.read("MULTIPOINT (130 240, 130 240, 130 240, 570 240, 570 240, 570 240, 650 240)");
    LineString convexHull = (LineString) reader.read("LINESTRING (130 240, 650 240)");
    assertTrue(convexHull.equalsExact(geometry.convexHull()));
  }

  public void test3() throws Exception {
    WKTReader reader = new WKTReader(new GeometryFactory(new PrecisionModel(1), 0));
    Geometry geometry = reader.read("MULTIPOINT (0 0, 0 0, 10 0)");
View Full Code Here

Examples of com.vividsolutions.jts.geom.Geometry.convexHull()

  public void test3() throws Exception {
    WKTReader reader = new WKTReader(new GeometryFactory(new PrecisionModel(1), 0));
    Geometry geometry = reader.read("MULTIPOINT (0 0, 0 0, 10 0)");
    LineString convexHull = (LineString) reader.read("LINESTRING (0 0, 10 0)");
    assertTrue(convexHull.equalsExact(geometry.convexHull()));
  }

  public void test4() throws Exception {
    WKTReader reader = new WKTReader(new GeometryFactory(new PrecisionModel(1), 0));
    Geometry geometry = reader.read("MULTIPOINT (0 0, 10 0, 10 0)");
View Full Code Here

Examples of com.vividsolutions.jts.geom.Geometry.convexHull()

  public void test4() throws Exception {
    WKTReader reader = new WKTReader(new GeometryFactory(new PrecisionModel(1), 0));
    Geometry geometry = reader.read("MULTIPOINT (0 0, 10 0, 10 0)");
    LineString convexHull = (LineString) reader.read("LINESTRING (0 0, 10 0)");
    assertTrue(convexHull.equalsExact(geometry.convexHull()));
  }

  public void test5() throws Exception {
    WKTReader reader = new WKTReader(new GeometryFactory(new PrecisionModel(1), 0));
    Geometry geometry = reader.read("MULTIPOINT (0 0, 5 0, 10 0)");
View Full Code Here

Examples of com.vividsolutions.jts.geom.Geometry.convexHull()

  public void test5() throws Exception {
    WKTReader reader = new WKTReader(new GeometryFactory(new PrecisionModel(1), 0));
    Geometry geometry = reader.read("MULTIPOINT (0 0, 5 0, 10 0)");
    LineString convexHull = (LineString) reader.read("LINESTRING (0 0, 10 0)");
    assertTrue(convexHull.equalsExact(geometry.convexHull()));
  }

  public void test6() throws Exception {
    WKTReader reader = new WKTReader(new GeometryFactory(new PrecisionModel(1), 0));
    Geometry actualGeometry = reader.read("MULTIPOINT (0 0, 5 1, 10 0)").convexHull();
View Full Code Here

Examples of com.vividsolutions.jts.geom.Geometry.convexHull()

  public void test7() throws Exception {
    WKTReader reader = new WKTReader(new GeometryFactory(new PrecisionModel(1), 0));
    Geometry geometry = reader.read("MULTIPOINT (0 0, 0 0, 5 0, 5 0, 10 0, 10 0)");
    LineString convexHull = (LineString) reader.read("LINESTRING (0 0, 10 0)");
    assertTrue(convexHull.equalsExact(geometry.convexHull()));
  }



}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.