We prove a decomposition result for analytic spaces all of whose geodesics
are contained in compact flats. Namely, we prove that a Riemannian manifold
is such a space if and only if it admits a (finite) cover which splits as
the product of a at torus with simply connected factors which are either sy
mmetric (of the compact type) or spaces of closed geodesics.