Package com.vividsolutions.jts.geom

Examples of com.vividsolutions.jts.geom.MultiPolygon.buffer()


            Polygon[] array = (Polygon[]) geometries.toArray(new Polygon[geometries.size()]);
            MultiPolygon mp = gf.createMultiPolygon(array);
           
            // a collection of valid polygon does not necessarily make up a valid multipolygon
            if(array.length > 1 && !mp.isValid()) {
                Geometry g = mp.buffer(0);
                if(g instanceof Polygon) {
                    return gf.createMultiPolygon(new Polygon[] {(Polygon) g});
                } else {
                    return (GeometryCollection) g;
                }
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.