Skip to main content
Question

Finding if an object is within line

  • August 21, 2019
  • 4 replies
  • 16 views

Forum|alt.badge.img

Hi,

 

I want to find out whether an object with certain coordinates (x3,y3), is within a region that connects two points of a line. See the image below.

 

I have a line between two points (X1,Y1) and (X2,Y2). I want to know if another object is intersected by that line. As the object is just a point, and my accuracy of the points is low, i want to put a buffer on its x/y co-ordinates of like 1m either side (so effectively a square), and see if that crosses it.

 

Is this possible in FME? If so... how?

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.

4 replies

deanhowell
Influencer
Forum|alt.badge.img+24
  • Influencer
  • 315 replies
  • August 21, 2019

Hello @sam2130, I would suggest looking at the Bufferer coupled to a SpatialRelator transformer.


david_r
Celebrity
  • 8394 replies
  • August 21, 2019

Hello @sam2130, I would suggest looking at the Bufferer coupled to a SpatialRelator transformer.

Agree, or using the GeographicBufferer, if necessary.


ebygomm
Influencer
Forum|alt.badge.img+44
  • Influencer
  • 3427 replies
  • August 21, 2019

You could also look at a PointOnLineOverlayer - you can use a tolerance within this to account for the accuracy, or NeighbourFinder with a maximum distance


Is the criteria also that the point (X3,Y3) has to be between (X1,Y1),(X2,Y2)? If that's the case you also have to check that the point is between those 2 points. Otherwise a SpatialRelator would give a false result. If its enough with a intersecting than you can go with the answer above.