to_sf function

Convert output to sf object