Skip to main content
Whats the best way to extend a raster to fit a larger extent, filling the additional space with the nodata value of the raster?

 

Many Thanks for the help

Hi @olivermorris,

The RasterSubsetter transformer can also pad a raster with empty (or transparent for RGBA rasters) pixels, if the start column and row are set to 0 and the number of rows and columns are set to the entire raster. The number of rows and columns in any raster can extracted using a RasterPropertyExtractor transformer.


@daveatsafe thanks for the help. I tried down this route but because not all the rasters started out with the same dimensions it was hard to put together. Instead I just created a full extend raster populated with nodata then the rastermosaic to merge with the original content.


Reply