Package com.vividsolutions.jts.algorithm

Examples of com.vividsolutions.jts.algorithm.MinimumBoundingCircle


        Function exp = ff.function("mincircle", ff.property("geom"));
        SimpleFeatureIterator iter = featureCollection.features();
        while (iter.hasNext()) {
            SimpleFeature feature = iter.next();
            Geometry geom = (Geometry) feature.getDefaultGeometry();
            Geometry circle = new MinimumBoundingCircle(geom).getCircle();
            Object value = exp.evaluate(feature);
            assertTrue(value instanceof Polygon);
            assertTrue(circle.equals((Geometry) value));
        }
        iter.close();
View Full Code Here


           return _this.getInteriorRingN(arg1);
     }
    
     static public Geometry minimumCircle(Geometry g) {
         if (g == null) return null;
         MinimumBoundingCircle circle = new MinimumBoundingCircle(g);
         return circle.getCircle();
     }
View Full Code Here

TOP

Related Classes of com.vividsolutions.jts.algorithm.MinimumBoundingCircle

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.