dps.add(aGeomFactory.createDirectPosition( new double[] {30, 50} ));
dps.add(aGeomFactory.createDirectPosition( new double[] {10, 30} ));
dps.add(aGeomFactory.createDirectPosition( new double[] {20, 10} ));
// create linestring from directpositions
LineString line = aGeomFactory.createLineString(dps);
// create curvesegments from line
ArrayList<CurveSegment> segs = new ArrayList<CurveSegment>();
segs.add(line);