Hi Pedro, ST_Pixelize rasterizes a geometry to hundreds of thousands of pixels (in geometry point type), which might not be a good tool for this.
But I think what you want is the RS_AsRaster function: https://sedona.apache.org/1.5.0/tutorial/raster/#geometry-as-raster You can use it together with RS_MakeEmptyRaster to get a raster image (geotiff) for your geometry at the given resolution and pixel size, and save it on disk. Thanks, Jia On Fri, Jan 5, 2024 at 4:10 AM Pedro Mano Fernandes <pedromor...@gmail.com> wrote: > > Dear Sedona community, > > I have a use case for which I need to create a grid with a specific > resolution (say 1000x1000 meters). I have a defined boundary geometry, > coming from a country shapefile. I was wondering if ST_Pixelize is the > right tool for the job, given it allows specifying the resolution and > boundary. > > https://sedona.apache.org/1.5.0/api/viz/sql/?h=st_pixelize#st_pixelize > > Thanks for your help. > Regards, > > -- > Pedro Mano Fernandes