The York map is a canonical transformation