Dynamics of territorial development and evolution