Knowledge and planning. Advanced tools for territorial complexity