Skip to main content
Question

extend a raster

  • March 12, 2020
  • 2 replies
  • 151 views

oliver.morris
Contributor
Forum|alt.badge.img+14
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
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

daveatsafe
Safer
Forum|alt.badge.img+20
  • 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+14
  • 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.