Package org.geotools.geometry.iso.topograph2D.index

Examples of org.geotools.geometry.iso.topograph2D.index.EdgeSetIntersector


    SegmentIntersector si = new SegmentIntersector(li, true, false);

    // get an instance for an edgeSetIntersector (here: MC Sweepline
    // Intersector)
    EdgeSetIntersector esi = this.createEdgeSetIntersector();

    // optimized test for Polygons and Rings
    if (!computeRingSelfNodes
      && (parentGeom instanceof Ring
      || parentGeom instanceof Surface
        || parentGeom instanceof MultiPrimitive)) {
    // TODO auskommentiert; checken!
    // && (parentGeom instanceof LinearRing
    // || parentGeom instanceof Polygon
    // || parentGeom instanceof MultiPolygon)
      // Compute Intersections without self-intersections
      esi.computeIntersections(edges, si, false);
    } else {
      // Compute Intersections with self-intersections
      esi.computeIntersections(edges, si, true);
    }

    // System.out.println("SegmentIntersector # tests = " + si.numTests);
    addSelfIntersectionNodes(argIndex);
    return si;
View Full Code Here


  public SegmentIntersector computeEdgeIntersections(GeometryGraph g,
      LineIntersector li, boolean includeProper) {
    SegmentIntersector si = new SegmentIntersector(li, includeProper, true);
    si.setBoundaryNodes(this.getBoundaryNodes(), g.getBoundaryNodes());

    EdgeSetIntersector esi = createEdgeSetIntersector();
    esi.computeIntersections(edges, g.edges, si);
    /*
     * for (Iterator i = g.edges.iterator(); i.hasNext();) { Edge e = (Edge)
     * i.next(); Debug.print(e.getEdgeIntersectionList()); }
     */
    return si;
View Full Code Here

TOP

Related Classes of org.geotools.geometry.iso.topograph2D.index.EdgeSetIntersector

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.