Merge get profile with get_data_for_linestring.