We report a quantitative measurement of the full transverse coherence function of the 14.4 keV x-ray radiation produced by an undulator at the Swiss Light Source. An x-ray grating interferometer consisting of a beam splitter phase grating and an analyzer amplitude grating has been used to measure the degree of coherence as a function of the beam separation out to 30 μm. Importantly, the technique provides a model-free and spatially resolved measurement of the complex coherence function and is not restricted to high resolution detectors and small fields of view. The spatial characterization of the wave front has important applications in discovering localized defects in beam line optics