line2points function

Convert a spatial (linestring) object to points