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