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

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


    // if (geom.isEmpty())
    // return true;

    GeometryGraph graph = new GeometryGraph(0, geom);
    LineIntersector li = new RobustLineIntersector();
    SegmentIntersector si = graph.computeSelfNodes(li, true);
    // if no self-intersection, must be simple
   
    // Primitives can be simple even if their boundary intersect
    // Complexes are not simple if their boundary intersect
    // TODO Bedeutung der attribute checken und entsprechend anpassen!
    if (!si.hasIntersection())
      return true;
    if (si.hasProperIntersection())
      return false;
    if (this.hasNonEndpointIntersection(graph))
      return false;
    if (this.hasClosedEndpointIntersection(graph))
      return false;
View Full Code Here


   *         intersections found
   */
  public SegmentIntersector computeSelfNodes(LineIntersector li,
      boolean computeRingSelfNodes) {

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

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

View Full Code Here

   * @param includeProper
   * @return
   */
  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)
View Full Code Here

    }
    this.arg[0].computeSelfNodes(this.li, false);
    this.arg[1].computeSelfNodes(this.li, false);

    // compute intersections between edges of the two input geometries
    SegmentIntersector tIntersector =
      this.arg[0].computeEdgeIntersections(this.arg[1], this.li, false);

    this.computeIntersectionNodes(0);
    this.computeIntersectionNodes(1);
   
View Full Code Here

TOP

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

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.