as.points function

Convert a GRaster, or lines or polygons GVector to a points vector