Skip to main content
Solved

How to keep maximum values when resampling a raster?

  • June 20, 2017
  • 2 replies
  • 58 views

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.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

takashi
Celebrity
  • 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

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.