GeometryFactory factory=new GeometryFactory();
// test with 2 arbitrary features, with the second having a null attribute
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] = null; //$NON-NLS-1$