Skip to main content

I need to perform AffineWarper in Group By mode. Separate affine control vectors for separate group of objects. Any idea?

A possible way is to wrap the AffineWarper by a custom transformer and publish the "Parallel Process By" parameter as a transformer parameter. It's not exactly equal to the regular "Group By", but it works like that. Try the steps illustrated in this image.


Thanks a lot. It works.


After banging my head trying to figure out why this wasn't working, and using feature caching to do my debugging... I saw this handy post, https://knowledge.safe.com/questions/78585/how-to-add-group-by-to-any-transformer.html

 

With this IMPORTANT note:

One caveat I’ve noticed about this hack:

A possible way is to wrap the AffineWarper by a custom transformer and publish the "Parallel Process By" parameter as a transformer parameter. It's not exactly equal to the regular "Group By", but it works like that. Try the steps illustrated in this image.

Good old wrap it in a custom transformer en voila! group by is possible!


After banging my head trying to figure out why this wasn't working, and using feature caching to do my debugging... I saw this handy post, https://knowledge.safe.com/questions/78585/how-to-add-group-by-to-any-transformer.html

 

With this IMPORTANT note:

One caveat I’ve noticed about this hack:

@lanthar Glad you found that note helpful. Good news: We've fixed that bug in the latest 2019.0. You can test it out in the current beta. Available here: https://www.safe.com/support/support-resources/fme-downloads/beta/