Package com.vividsolutions.jts.operation.polygonize

Examples of com.vividsolutions.jts.operation.polygonize.Polygonizer


            Iterator kt = lines.entrySet().iterator();
            while (kt.hasNext()) {
                Map.Entry kentry = (Map.Entry) kt.next();
                String ref = kentry.getKey().toString();

                Polygonizer polygonizer = new Polygonizer();
                Geometry geom = (Geometry) kentry.getValue();

                polygonizer.add(geom);
                ArrayList polys = (ArrayList) polygonizer.getPolygons();

                // Darf eigentlich immer nur max. ein (1) Polygon
                // vorhanden sein!
                // Was aber anscheinend passieren kann, ist ein
                // LineString, der nicht polyoniert werden kann.
View Full Code Here


        if (areaMainCollection != null && areaHelperCollection != null) {
            String geomName = areaHelperCollection.getSchema()
                    .getGeometryDescriptor().getName().toString();

            Polygonizer polygonizer = new Polygonizer();
            int inputEdgeCount = areaHelperCollection.size();
            Collection lines = getLines(areaHelperCollection);

            Collection nodedLines = lines;
            nodedLines = nodeLines((List) lines);

            for (Iterator it = nodedLines.iterator(); it.hasNext();) {
                Geometry g = (Geometry) it.next();
                polygonizer.add(g);
            }

            ArrayList polys = (ArrayList) polygonizer.getPolygons();

            final SpatialIndex idx = new STRtree();
            FeatureIterator mt = areaMainCollection.features();
            try {
                while (mt.hasNext()) {
View Full Code Here

TOP

Related Classes of com.vividsolutions.jts.operation.polygonize.Polygonizer

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.