Skip to main content

Hello everybody,

I'm trying to replicate the functionality of the Aggregate tool in ArcGIS Pro within FME, specifically for raster data. I want to aggregate using the Sum method, meaning I want the output cell value to be the total of the input cell values. I also want to apply a cell factor of 10, which means the resolution will be reduced by combining 10x10 cells into one.

In other words, I want to decrease the resolution and calculate the sum of every 10x10 block of cells.

I’ve tried using a combination of the RasterResampler and RasterCellValueCalculator, but the results don’t seem to match what I expect.

Thanks,

Philip

I initially thought of the RasterConvolver, but that is a moving Matrix.

The RasterResampler would do it if you could customise the interpolation type

You could do something along the lines of:

  1. Tile raster to required output size (RasterTiler)
  2. Convert each cell to a point (RasterCellCoercer)
  3. Sum the value(s) of each point in each tile (StatisticsCalculator)
  4. Resample the tiles to be one pixel (RasterResampler)
  5. Merge the sum back onto the tile (FeatureMerger)
  6. Then replace the cell value using the RasterCellValueReplacer

 

This is probably only suitable for smaller rasters, as the number of features you will start dealing with will get pretty massive!

 

 

There are probably some other ways, but nothing that jumps to my mind currently