Skip to main content
Question

How to compare attributes from unrelated connected line and point features


I have a point feature class and a linear feature class in the same SDE database. I need to compare a common attribute between the two feature classes for each case they are connected.

Any help would be greatly appreciated!

4 replies

erik_jan
Contributor
Forum|alt.badge.img+18
  • Contributor
  • March 29, 2017

I would try the SpatialRelator transformer (group by attribute to test and spatial test TOUCHES).

If the line is the requester and the points the supplier this will list all line-point combinations with matching attributes.


itay
Supporter
Forum|alt.badge.img+17
  • Supporter
  • March 30, 2017

Hi @sorene30, I would use the PointOnLineOverlayer transformer and prefix the results to be able to compare the attributes.


  • Author
  • April 19, 2017

Hello, I ended up using the SpatialRelator with the Touches test, however, I had to add a Tester after the SpatialRelator with the following Test Clause: "_related_candidates > 1". Once I filtered out the unrelated cases, I added a ListExploder so I could use another Tester.


takashi
Evangelist
  • April 21, 2017

Hi @sorene30, if you just need to test whether a point touches a line, the SpatialFilter could also be used. Send the lines to the Filter port, send the points to the Candidate port.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings