OffsetCurveSetBuilder ocsb = new OffsetCurveSetBuilder(g, dist, ocb);
List curves = ocsb.getCurves();
List lines = new ArrayList();
for (Iterator i = curves.iterator(); i.hasNext(); ) {
SegmentString ss = (SegmentString) i.next();
Coordinate[] pts = ss.getCoordinates();
lines.add(g.getFactory().createLineString(pts));
}
Geometry curve = g.getFactory().buildGeometry(lines);
return curve;
}