For a compact Riemmanian manifold with boundary, suppose that all geodesics intersect the boundary at both ends. Then we can define the lens data as the triples consisting of the initial vector, final vector and length of each geodesic. We will show that among a large class of analytic manifolds, the lens data uniquely determines the metric up to isometry.