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>();
orientableCurves.add(curve);
Ring exterior = new RingImpl(orientableCurves);
List<Ring> interiorList = new ArrayList<Ring>();