Skip to main content
Solved

How to keep maximum values when resampling a raster?


vgurra
Contributor
Forum|alt.badge.img+2

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

Best answer by takashi

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.

View original
Did this help you find an answer to your question?

2 replies

takashi
Evangelist
  • Best Answer
  • June 20, 2017

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.


vgurra
Contributor
Forum|alt.badge.img+2
  • Author
  • Contributor
  • June 20, 2017
takashi wrote:

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


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