Solved

How to keep maximum values when resampling a raster?


How would You make a workspace that does this?

If it is fast and can do very large datsets it is definitely a big plus...

Se also

https://knowledge.safe.com/idea/46222/new-interpolation-type-maximum-in-rasterresampler.html

icon

Best answer by takashi 20 June 2017, 17:23

View original

2 replies

Userlevel 2
Badge +17

Hi @vgurra, there seems not to be an efficient way to do that in the current FME, but the PointCloudStatsRasterizer from FME Hub with a preceding PointCloudCombiner could be a workaround in the interim. Assuming the source raster has a single band representing a terrain model, after transforming the raster into a point cloud with a PointCloudCombiner, apply the PointCloudStatsRasterizer with these parameters.

  • Component to Rasterize: z
  • Statistics Calculation Mode: maximum
  • X Cell Spacing: <x cell spacing for resampling>
  • Y Cell Spacing: <y cell spacing for resampling>

Hope this helps.

Hi @vgurra, there seems not to be an efficient way to do that in the current FME, but the PointCloudStatsRasterizer from FME Hub with a preceding PointCloudCombiner could be a workaround in the interim. Assuming the source raster has a single band representing a terrain model, after transforming the raster into a point cloud with a PointCloudCombiner, apply the PointCloudStatsRasterizer with these parameters.

  • Component to Rasterize: z
  • Statistics Calculation Mode: maximum
  • X Cell Spacing: <x cell spacing for resampling>
  • Y Cell Spacing: <y cell spacing for resampling>

Hope this helps.

Thanks a lot! I would not have found that solution myself.

Reply