GeometryFactory factory=new GeometryFactory();
// test with 2 lines: a non-overlapping line, an overlapping line
LineString[] line = new LineString[3];
line[0] = factory.createLineString(new Coordinate[]{new Coordinate(10, 10),
new Coordinate(10, 20),});
line[1] = factory.createLineString(new Coordinate[]{new Coordinate(20, 10),
new Coordinate(20, 20), new Coordinate(30, 15), new Coordinate(20, 15),
new Coordinate(20, 30)});
String[] attrValues = new String[2];
attrValues[0] = "value0"; attrValues[1] = "value1"; //$NON-NLS-1$ //$NON-NLS-2$