The shape of a city