LineArray lines = new LineArray( vertexCount, GeometryArray.COORDINATES ); lines.setCoordinates( 0, coords );