replace x y raster dimensions with simple feature geometry list (points, or polygons = rasterize)
Useful links