Skip to main content
Open

SpatialFilter: output per predicate

Related products:Transformers
  • February 19, 2025
  • 10 replies
  • 87 views

p_c_20
Supporter
Forum|alt.badge.img+9

Would like to see the ability to have multiple output ports - one per predicate. 

10 replies

s.jager
Influencer
Forum|alt.badge.img+22
  • Influencer
  • February 19, 2025

How would you propose to deal with a single feature, that receives multiple predicates?

Send them through every appropriate port, thus creating duplicates? Or only through the first matching port?


p_c_20
Supporter
Forum|alt.badge.img+9
  • Author
  • Supporter
  • February 19, 2025

I’d say the former. But you could have the latter as an option. 


liamfez
Influencer
Forum|alt.badge.img+44
  • Influencer
  • February 19, 2025

I could see this working like the TestFilter. So you would order the tests in the order that you want, assigning the tests to different or same ports. 


p_c_20
Supporter
Forum|alt.badge.img+9
  • Author
  • Supporter
  • February 19, 2025

I could see this working like the TestFilter. So you would order the tests in the order that you want, assigning the tests to different or same ports. 

A SpatialTestFilter


liamfez
Influencer
Forum|alt.badge.img+44
  • Influencer
  • February 19, 2025

I could see this working like the TestFilter. So you would order the tests in the order that you want, assigning the tests to different or same ports. 

A SpatialTestFilter

Yeah, perhaps this would be a new transformer? Renaming the current SpatialFilter to SpatialTester?


p_c_20
Supporter
Forum|alt.badge.img+9
  • Author
  • Supporter
  • February 19, 2025

I could see this working like the TestFilter. So you would order the tests in the order that you want, assigning the tests to different or same ports. 

A SpatialTestFilter

Yeah, perhaps this would be a new transformer? Renaming the current SpatialFilter to SpatialTester?

I expect a Zipster t-shirt for this. 


andreaatsafe
Safer
Forum|alt.badge.img+15

Thanks ​@p_c_20 for the idea!
I’m curious if using the AttributeFilter on the output attribute for the predicate would work for you? If this doesn’t work for you, could you explain a little bit more about why you’re wanting one port per predicate.

I see from the follow-up comments though that maybe the real issue is wanting to have control of the order the Spatial Predicate Test?


andreaatsafe
Safer
Forum|alt.badge.img+15
NewOpen

danilo_fme
Celebrity
Forum|alt.badge.img+52
  • Celebrity
  • April 22, 2025
NewOpen

Thanks ​@andreaatsafe for update it!


p_c_20
Supporter
Forum|alt.badge.img+9
  • Author
  • Supporter
  • April 23, 2025

Thanks ​@p_c_20 for the idea!
I’m curious if using the AttributeFilter on the output attribute for the predicate would work for you? If this doesn’t work for you, could you explain a little bit more about why you’re wanting one port per predicate.

I see from the follow-up comments though that maybe the real issue is wanting to have control of the order the Spatial Predicate Test?

Hi, ​@andreaatsafe ! With the caveat that I haven’t had coffee yet…..

What I like is flexibility. Different tasks throw up different use cases - and of course, it’s not just for me (how selfish would that be?); these things have to work for the largest possible number of members of a massive community. 

So, with that in mind - yes, I think control over the order would be a good thing. 

I do, however, wonder if there is still a case for saying, ‘which of these predicates do these features satisfy?’

Similar to ‘pass against one/pass against all’ you could have setting which enables ‘output all successes’, giving one port per predicate outcome. 
 

Admittedly, I don’t believe I have plumbed the full depths of SpatialFilter, so maybe I can hack this together using existing functionality somehow.