Skip to main content
Solved

How to perform AffineWarper in Group By mode?

  • January 12, 2016
  • 5 replies
  • 47 views

arekpierchala
Contributor
Forum|alt.badge.img+1

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

Best answer by takashi

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.

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.

5 replies

takashi
Celebrity
  • 7843 replies
  • Best Answer
  • January 12, 2016

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.


arekpierchala
Contributor
Forum|alt.badge.img+1
  • Author
  • Contributor
  • 19 replies
  • January 12, 2016

Thanks a lot. It works.


lanthar
Contributor
Forum|alt.badge.img+2
  • Contributor
  • 9 replies
  • January 3, 2019

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:

itay
Supporter
Forum|alt.badge.img+18
  • Supporter
  • 1442 replies
  • January 3, 2019

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!


xiaomengatsafe
Safer
Forum|alt.badge.img+11
  • Safer
  • 324 replies
  • January 16, 2019

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/