Skip to main content
Question

How can you create a line segment between two points?


I am working with FME for my thesis project and I am having difficulty trying to find the right transformer to complete a specific task.

I am trying to georeference motor vehicle collisions that are located at street midblocks. I have two ESRI shapefiles that contains street intersections for each midblock. I located the intersections using an Address Locator. I am trying to get FME to relate the two shapefiles based on the Accident ID so that FME can create the line segment between them. After I create the line I am going to use the Snapper tool to get the middle of the line segment to get the location. The issue that I am having is finding a tool that will create the lines. I have tried the Line Builder tool and one other that I cannot recall at the moment. If anyone knows a tool that could do this it would be greatly appreciated!

2 replies

redgeographics
Celebrity
Forum|alt.badge.img+48

The LineBuilder would be the one to use but it depends on knowing which points to connect, setting it to group by the accident id would do the trick. If not, can you post a sample of your data?


david_r
Evangelist
  • May 26, 2017

I agree that more information would be very helpful, there are several ways of doing this depending on how your data looks.

If you have a starting point and the end point as x,y attributes, you can also use the VertexCreator to add a second vertex to make it a line.


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