Convert a table to a vector layer