// 1 point: return Point
return new PointImpl( new DirectPositionImpl(crs, inputPts[0].getCoordinates()) ); //this.geomFactory.getPrimitiveFactory().createPoint(inputPts[0].getCoordinate());
}
if (inputPts.length == 2) {
List<Position> positions = CoordinateArrays.toPositionList(this.crs, this.inputPts);
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().createCurveByPositions((List<Position>) positions);
}