The Clipper can subset a raster by geospatial extents, while the RasterSubsetter can both subset and pad a raster by number of pixels, but is there a simple way to pad a raster to a given polygon/geospatial extent?
My two ideas are to either
Use the RasterSubsetter to pad the raster by a large amount of pixels and then the Clipper to bring it back to size.
Or
Rasterize the polygon to the same resolution as the image with a background/NoData value and mosaic the two together.
Neither seem particularly efficient.
Question




