Skip to main content
Question

Group by in a Custom transformer with Spatial Filter

  • February 13, 2018
  • 2 replies
  • 31 views

I have created a linked custom transformer with a loop and a spatial filter. In this transformer I check if a line feature intersects with an area, but only if they belongs to the same group. So I thought I had to use the Group By parameter in the spatial filter.

The problem is that my custom transformer does not work with the Group By parameter. I mean, if I do not define a Group By some lines pass the test (but not belongs to the same group) but if a define the Group no line passes.

This is my first custom transformer, so, any suggestions would be appreciate

Thanks in advance

Víctor

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

gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • February 14, 2018

Should work.

Are you sure the groups are well defined and the relevant attribute propagated?

Also it is a blocking, so all the inputs are collected prior to filtering.

Maybe you want to iterate trough the groups (custom) and then feed the custom to filter them. (custom within a custom)

For instance If a line crosses trough more then 1 group ad intersects polygons in more than one of these groups, it will only get used once. Meaning that cloning the line or chopping it up is required..


  • Author
  • February 14, 2018

Should work.

Are you sure the groups are well defined and the relevant attribute propagated?

Also it is a blocking, so all the inputs are collected prior to filtering.

Maybe you want to iterate trough the groups (custom) and then feed the custom to filter them. (custom within a custom)

For instance If a line crosses trough more then 1 group ad intersects polygons in more than one of these groups, it will only get used once. Meaning that cloning the line or chopping it up is required..

I found my mistake. I had a FeatureHolder just before the SpatialFilter and this was the problem. A newbie error...

 

Thanks a lot for the answer!