Question

Snapping raster output cells to existing raster template cells (same cell size)

  • 27 July 2016
  • 1 reply
  • 9 views

Hi there

I am producing a series of raster outputs and I need the cells for all raster outputs to align with that of one existing raster which is like a template raster (the cells have no values). The RasterCellOriginSetter does accept existing rasters and I have tried various other transformers and setting the minimum/maximum x and y in the Numeric Rasterizer tool.

I am after the FME equivalent of the ArcGIS Snap Raster in the Processing Extent in the Environment settings of a tool.

Any help would be appreciated, thanks


1 reply

Badge +22

If all the rasters are in the same location, then you can use a RasterMosaiker with the template raster arriving at the mosaiker first (controlled either through reader order or with a sorter) and the raster you want to align second.

The RasterCellOriginSetter controls whether the coordinates refer to the center of a cell (0.5,0.50) or lower left (0,0) or...

 

 

The RasterGeoreferencer can explicitly set the resolution (spacing) and origin (upper left), if you want to "snap", but does not alter the number of cells.

Reply