as.points function

Creates data in spatial point format