Extracting vals from polyline