Skip to main content
Question

Recreating ArcGIS Pro's Aggregate Tool (Sum) for Rasters in FME

  • June 20, 2025
  • 1 reply
  • 13 views

phsakel
Participant
Forum|alt.badge.img+2

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

1 reply

hkingsbury
Celebrity
Forum|alt.badge.img+59
  • Celebrity
  • June 22, 2025

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


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