Polylines handling enhanced