Skip to main content
Question

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


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
Evangelist
  • June 15, 2025

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+55
  • Celebrity
  • June 15, 2025

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+35
  • Influencer
  • June 16, 2025

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


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