Integrating quantitative and qualitative aspects of digital line simplification