Skip to main content
Question

Correct setting of the RasterResampler Transformer


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!

2 replies

jdh
Contributor
Forum|alt.badge.img+28
  • Contributor
  • 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
  • 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


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