Direct measurement of the quantum geometric tensor in a two-dimensional continuous medium