Package org.geotools.geometry.iso.operation

Examples of org.geotools.geometry.iso.operation.IsSimpleOp


  public boolean isSimple() {
    // Test OK
    // Test simplicity by building a topological graph and testing for self-intersection
    // Is Simple, if the exterior ring and the interior rings does not have selfintersections
    // and the exterior ring and the interior rings donĀ“t touch or intersect each other.
    IsSimpleOp simpleOp = new IsSimpleOp();
    return simpleOp.isSimple(this);
  }
View Full Code Here


        throw new IllegalArgumentException("The curve segments are not continuous"); //$NON-NLS-1$
      newCurve = newCurve.merge(nextCurve);
    }

    // Check Simplicity
    IsSimpleOp isSimple = new IsSimpleOp();
    if (! isSimple.isSimple(newCurve))
      throw new IllegalArgumentException("The curve segments are not simple, but intersect"); //$NON-NLS-1$

  }
View Full Code Here

   * @see org.opengis.geometry.coordinate.root.Geometry#isSimple()
   */
  public boolean isSimple() {
    // Test ok
    // Test simplicity by building a topological graph and testing for self-intersection
    IsSimpleOp simpleOp = new IsSimpleOp();
    return simpleOp.isSimple(this);
  }
View Full Code Here

TOP

Related Classes of org.geotools.geometry.iso.operation.IsSimpleOp

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.