Package org.geotools.geometry.iso.coordinate

Examples of org.geotools.geometry.iso.coordinate.PointArrayImpl$LineSegmentsSequence


    coordinates = cleanRing(coordinates);
    List<Position> positions = CoordinateArrays.toPositionList(this.crs, coordinates);
    if (coordinates.length == 3) {
      positions.remove(2);
      LineStringImpl lineString = new LineStringImpl(new PointArrayImpl(
          positions), 0.0);
      List<CurveSegment> segments = new ArrayList<CurveSegment>();
      segments.add(lineString);
      return new CurveImpl(this.crs, segments);
      //return this.geomFactory.getPrimitiveFactory().createCurveByDirectPositions((List<Position>) positions);
    }
   
    LineStringImpl lineString = new LineStringImpl(new PointArrayImpl(
        positions), 0.0);
    List<CurveSegment> segments = new ArrayList<CurveSegment>();
    segments.add(lineString);   
    OrientableCurve curve = new CurveImpl(crs, segments);
    List<OrientableCurve> orientableCurves = new ArrayList<OrientableCurve>();
View Full Code Here

TOP

Related Classes of org.geotools.geometry.iso.coordinate.PointArrayImpl$LineSegmentsSequence

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.