Skip to main content
Question

How to calculate distance in meters from points to nearest road in FME.

  • Jun 15, 2025 10:31 AM UTC
  • 3 replies
  • 161 views

nareshgoura
Participant
Forum|alt.badge.img

My requirement is to calculate the distance in meters from points to nearest road in FME, end output should be one new field should be added in point layer with distance to each points. i have tried to do this with NeighborFinder transformer but i am not getting my desired output. i don’t where i am doing mistake. can any one help me.

3 replies

takashi
Celebrity
  • Jun 15, 2025 7:47 PM UTC

Hi ​@nareshgoura ,

I think using NeighborFinder is a right way.

i am not getting my desired output

Can you please explain what problems are in the output?


hkingsbury
Celebrity
Forum|alt.badge.img+73
  • Celebrity
  • Jun 15, 2025 8:08 PM UTC

NieghbourFinder would be the best way to do it. Your points would be the Candidate and the lines the Base.

What is the output you’re currently seeing and what are you expecting? Are you using a meters based coordinate system?

Can you share some sample data?


liamfez
Influencer
Forum|alt.badge.img+44
  • Influencer
  • Jun 16, 2025 1:07 AM UTC

You may need to run both the points and lines through their own reprojectors first, projecting into a coordinate system that is in meters.