Sometimes I really need to use a Group By in a transformer, but the parameter is not available. Is there anyway I can hack it?
Best answer by xiaomengatsafe
View originalSometimes I really need to use a Group By in a transformer, but the parameter is not available. Is there anyway I can hack it?
Best answer by xiaomengatsafe
View originalYes, you might be in luck. There is a way to expose the Group By parameter on a transformer. However, please note, there might be a reason certain transformers don’t support Group By, out of the box (e.g. transformers that process each feature individually won't work with a Group By parameter). So please verify the outcome of the translation carefully, and make sure it is producing the expected result, when you use this hack. Here it goes:
(more detail on Custom Transformer )
You may consider changing the parameter Prompt to “Group By”
(This part of the advanced training can be helpful here. Although, no need to enable Parallel Processing, if you only want the Group By feature.)
*If you are using a FME Version earlier then 2019.0, there is a caveat about this hack:
To make Group by work this way, Feature Caching needs to be turned off. (this issue has been fixed and available in 2019.0 beta)
Yes, you might be in luck. There is a way to expose the Group By parameter on a transformer. However, please note, there might be a reason certain transformers don’t support Group By, out of the box (e.g. transformers that process each feature individually won't work with a Group By parameter). So please verify the outcome of the translation carefully, and make sure it is producing the expected result, when you use this hack. Here it goes:
(more detail on Custom Transformer )
You may consider changing the parameter Prompt to “Group By”
(This part of the advanced training can be helpful here. Although, no need to enable Parallel Processing, if you only want the Group By feature.)
*If you are using a FME Version earlier then 2019.0, there is a caveat about this hack:
To make Group by work this way, Feature Caching needs to be turned off. (this issue has been fixed and available in 2019.0 beta)
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.