From the 19th century to today, a geological trove offers a strong foundation for the nation’s cities