Package org.jaitools.jts

Examples of org.jaitools.jts.LineSmoother


            else
                smooth.add(ls);
        }
       
        // apply smoothing
        LineSmoother smoother = new LineSmoother(gf);
        Polygonizer polygonizer = new Polygonizer();
       
        for (int i = 0; i < smooth.size(); i++) {
            polygonizer.add(smoother.smooth(smooth.get(i), 0.5));
        }
        polygonizer.add(keep);
       
        Collection<Polygon> polys = (Collection<Polygon>) polygonizer.getPolygons();
        poly = gf.createMultiPolygon(polys.toArray(new Polygon[polys.size()]));
View Full Code Here

TOP

Related Classes of org.jaitools.jts.LineSmoother

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.