When the Erie Canal opened in 1817, it propelled New York City into the role of the leading port and economic hub of a growing America.