Examples of OctagonalEnvelope


Examples of com.vividsolutions.jts.geom.OctagonalEnvelope

   
    // octagonalEnvelope start
    @DescribeProcess(title = "Octagonal Envelope", description = "Get the octagonal envelope of this Geometry.")
    @DescribeResult(description="octagonal of geom")
    static public Geometry octagonalEnvelope(@DescribeParameter(name = "geom") Geometry geom) {
        return new OctagonalEnvelope(geom).toGeometry(geom.getFactory());
    }
View Full Code Here

Examples of com.vividsolutions.jts.geom.OctagonalEnvelope

        Function exp = ff.function("octagonalenvelope", ff.property("geom"));
        SimpleFeatureIterator iter = featureCollection.features();
        while (iter.hasNext()) {
            SimpleFeature feature = iter.next();
            Geometry geom = (Geometry) feature.getDefaultGeometry();
            Geometry octagonalEnvelope = new OctagonalEnvelope(geom).toGeometry(geom.getFactory());
            Object value = exp.evaluate(feature);
            assertTrue(value instanceof Polygon);
            assertTrue(octagonalEnvelope.equalsExact((Geometry) value, 0.1));
        }
        iter.close();
View Full Code Here

Examples of com.vividsolutions.jts.geom.OctagonalEnvelope

         return min.getMinimumRectangle();
     }

     static public Geometry octagonalEnvelope(Geometry arg0) {
         if (arg0 == null) return null;
         OctagonalEnvelope env = new OctagonalEnvelope(arg0);
         return env.toGeometry(arg0.getFactory());
     }
View Full Code Here

Examples of com.vividsolutions.jts.geom.OctagonalEnvelope

  }

  @DescribeProcess(title = "Octagonal Envelope", description = "Get the octagonal envelope of this Geometry.")
    @DescribeResult(description="octagonal of geom")
  static public Geometry octagonalEnvelope(@DescribeParameter(name = "geom") Geometry geom) {
      return new OctagonalEnvelope(geom).toGeometry(geom.getFactory());
  }
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.