Question

extend a raster

  • 12 March 2020
  • 2 replies
  • 8 views

Badge +10
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

2 replies

Userlevel 2
Badge +17

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.

Badge +10

@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