Skip to main content
Question

Correct setting of the RasterResampler Transformer

  • December 10, 2020
  • 2 replies
  • 16 views

Hi im new to this and want to create a workspace which allows the user to transform the cellsize of a rasterimage. But if the values supplied by the user would cause an upsampling, then the workspace should be set in a way that no resampling takes place. My approach is to set a user parameter but i have no clue how I can set it in a way to make this possible any hints?

 

Thx to all!

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

jdh
Contributor
Forum|alt.badge.img+37
  • Contributor
  • 2002 replies
  • December 10, 2020

I would use a RasterPropertiesExtractor to get the current spacing or number of rows/cols and then a tester to compare that with the supplied user parameter, connect the RasterResampler to the Passed port and then the Failed port will link up to the rest of the workflow bypassing the resampling step.


  • Author
  • 4 replies
  • December 11, 2020

Thank you so much I guess it worked :)

It was by far easier than I thought on the first view.

 

Best wishes Tina