Skip to main content
Question

Select by location - along a line


lambertus
Enthusiast
Forum|alt.badge.img+15

Hi,

For my current task I have a road network (purple lines) and 2 datasets with points.

Dataset 1: green points

Dataset 2: red points

What I want to do now is to select points from dataset 2 which intersect or are close to dataset 1. See the attached figure for examples.

However, I want to limit my search for the test 'are close to' within a single line. The FME method/tool should not look at points which are postioned at parallel running lines. In the figure below I do not want to select the red point indicated as 'not intersecting'. There are green points closeby. However, they aren't postioned at the same line which should be the case to be considered as a closeby points.

I tried something with the NeighborFinder. This works fine. Only situtations like the one below I did not solve yet. Any suggestions?

 

4 replies

ebygomm
Influencer
Forum|alt.badge.img+38
  • Influencer
  • March 9, 2020

Before your neighbour finder use a spatial relator or a point on line overlayer to transfer the road id to the points. Then use this attribute as a group by in your neighbour finder


lambertus
Enthusiast
Forum|alt.badge.img+15
  • Author
  • Enthusiast
  • March 9, 2020
ebygomm wrote:

Before your neighbour finder use a spatial relator or a point on line overlayer to transfer the road id to the points. Then use this attribute as a group by in your neighbour finder

Thanks for your fast reply! I am going to implement your suggestion and check the outcome :)


lambertus
Enthusiast
Forum|alt.badge.img+15
  • Author
  • Enthusiast
  • March 10, 2020
ebygomm wrote:

Before your neighbour finder use a spatial relator or a point on line overlayer to transfer the road id to the points. Then use this attribute as a group by in your neighbour finder

It is not working yet. I guess the road id used in the Group By parameter should be unique? That not the case yet in my road dataset..


ebygomm
Influencer
Forum|alt.badge.img+38
  • Influencer
  • March 10, 2020
lambertus wrote:

It is not working yet. I guess the road id used in the Group By parameter should be unique? That not the case yet in my road dataset..

You could just use a counter to assign an temporary id to the roads

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