We present a systematic 2D spatial-coherence analysis of the soft-X-ray beamline P04 at PETRA III for various beamline configurations. The influence of two different beam-defining apertures on the spatial coherence properties of the beam is discussed and optimal conditions for coherence-based experiments are found. A significant degradation of the spatial coherence in the vertical direction has been measured and sources of this degradation are identified and discussed. The Fourier-analysis method, which gives fast and simple access to the 2D spatial coherence function of the X-ray beam, is used for the experiment. Here, we exploit the charge scattering of a disordered nanodot sample allowing the use of arbitrary X-ray photon energies with this method.