Skip to main content
Question

extend a raster


oliver.morris
Contributor
Forum|alt.badge.img+12
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

daveatsafe
Safer
Forum|alt.badge.img+19
  • Safer
  • March 12, 2020

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.


oliver.morris
Contributor
Forum|alt.badge.img+12
  • Author
  • Contributor
  • March 17, 2020

@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.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings