layer_to_vector function

Get stars layer values as vector