I have some geometries in a PostGIS table that I would like to convert to raster:
select ST_AsRaster(geom,256,256,'2BUI',1,0,564224,333824,0, 0, false) from table
I would like the resulting raster to have a specific extent and image size. The documentation gives lots of different options, but none as yet give the correct extents or image size.
What combination of ST_AsRaster parameters will return a raster with predefined extents and size.
The extents of the geometry are larger than the desired extent of the raster.