Skip to main content
Question

Assign Nearest Values to the Line Feature Automatically


parashari
Forum|alt.badge.img+2
Hi,

 

Working on Win7 FME 2014 32b.

 

 

I have a road network with line feature that shows the max. speed allowed on that road segment as attached (40, 60, 80,..). But at some points, the speed of the segment is not displayed (A and B).Since there are nodes/junctions on the roads, we cannot join it. Is there any possible way so that we can get the default value of the missing road speeds as the nearest left and right speed values. Thanks :)

 

Sinc

2 replies

david_r
Celebrity
  • April 7, 2015
Hi,

 

 

how about using a TopologyBuilder and then traversing the resulting nodes / lines using the _from_node and _to_node attributes to find the speed restrictions of the neighboring segments.

 

 

David

jdh
Contributor
Forum|alt.badge.img+28
  • Contributor
  • April 7, 2015
You have several different options:
  • like David suggested you can build a topoly and traverse the nodes
  • you can use a NeighbourFinder with a distance of zero  (features missing speed to base and those with speed to candidate)
  • you can use the LineJoiner with Preserve Lines as Path Segments set to yes, and then split the line back into it's component segments

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