Geometry emerging from spectra