Geometry from Dynamics Classical and Quantum