Package org.geotools.geometry.iso.primitive

Examples of org.geotools.geometry.iso.primitive.CurveBoundaryImpl


    List<Primitive> generator = this.getElements();
    if (generator == null)
      throw new IllegalArgumentException(
          "Could not create the boundary of CompositeCurve."); //$NON-NLS-1$
    HashSet<Complex> result = new HashSet<Complex>();
    result.add( new CurveBoundaryImpl( getCoordinateReferenceSystem(),
        new PointImpl( ((CurveImpl) generator
            .get(0)).getStartPoint()), new PointImpl( ((CurveImpl) generator
                .get(0)).getEndPoint()) ) );

    return result;
View Full Code Here


    // Compare start point with end point
    if (start.equals(end))
      // the boundary is null if the composite curve is closed
      return null;
    else
      return new CurveBoundaryImpl(getCoordinateReferenceSystem(),
          new PointImpl(start),
          new PointImpl(end));
      //return this.getFeatGeometryFactory().getPrimitiveFactory().createCurveBoundary(start, end);
  }
View Full Code Here

  /* (non-Javadoc)
   * @see org.opengis.geometry.primitive.CurveSegment#getBoundary()
   */
  public CurveBoundaryImpl getBoundary() {
    return new CurveBoundaryImpl(this.getCurve().getCoordinateReferenceSystem(),
        new PointImpl(this.getStartPoint()),
        new PointImpl(this.getEndPoint()) );
  }
View Full Code Here

TOP

Related Classes of org.geotools.geometry.iso.primitive.CurveBoundaryImpl

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.