Examples of asLineSegments()


Examples of org.geotools.geometry.iso.coordinate.LineStringImpl.asLineSegments()

    assertEquals(line1.getEndConstructiveParam() , 1.0);

   
   
    // Receive LineSegments from LineString
    List<LineSegment> segments = line1.asLineSegments();
    assertEquals(segments.size() , 4);

    LineSegment seg1 = segments.get(0);
    LineSegment seg2 = segments.get(1);
    LineSegment seg3 = segments.get(2);
View Full Code Here

Examples of org.geotools.geometry.iso.coordinate.LineStringImpl.asLineSegments()

        // TODO: This version only handles the CurveSegment type
        // LineString
        LineStringImpl tLineString = (LineStringImpl) tSegment;

        Iterator<LineSegment> tLineSegmentIter = tLineString
            .asLineSegments().iterator();
        while (tLineSegmentIter.hasNext()) {
          LineSegment tLineSegment = tLineSegmentIter.next();
          // Add new Coordinate, which is the start point of the
          // actual LineSegment
View Full Code Here

Examples of org.geotools.geometry.iso.coordinate.LineStringImpl.asLineSegments()

      tSegment = this.curveSegments.get(i);

      // TODO: This version only handles the CurveSegment type LineString
      LineStringImpl tLineString = (LineStringImpl) tSegment;

      Iterator<LineSegment> tLineSegmentIter = tLineString
          .asLineSegments().iterator();
      while (tLineSegmentIter.hasNext()) {
        LineSegment tLineSegment = tLineSegmentIter.next();
        // Add new Coordinate, which is the start point of the actual
        // LineSegment
View Full Code Here

Examples of org.opengis.geometry.coordinate.LineString.asLineSegments()

  public List<LineSegment> asLineSegments() {
    /* Schleife ueber alle CurveSegments */
    ArrayList<LineSegment> mergedSegments = new ArrayList<LineSegment>();
    for (CurveSegment curveSegment : this.curveSegments) {
      LineString lineString = curveSegment.asLineString(0, 0);
      List<LineSegment> lineSegments = lineString.asLineSegments();
      for (LineSegment lineSegment : lineSegments)
        mergedSegments.add(lineSegment);
    }
    return mergedSegments;

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.