Skip to main content
Solved

Connecting line segments that overshoot or undershoot into an adjacent segment

  • February 5, 2020
  • 4 replies
  • 197 views

Forum|alt.badge.img

Hi

 

I have been using the NetworkTopologyCalculator in conjunction with the Aggregator to combine numerous individual lines segments into larger 'single merged' line segment with limited success.

 

I have noticed there are a few line segments that either fall short from touching and a gap can been seen or overlap. See image 1 below. The gaps are generally less than 0.2 meters.

Image 1

 

Detail view of image 1 below:

Image 2

Having read a few threads on the forum I inserted the Snapper transformer, setting the parameters to Segment Snapping and the Snapping Distance to 0.2. When I inspect the data I can see that the gap has been closed.

Image 3

 

I assumed that as the gap had been closed that the NetworkTopologyCalculater would have then included this 'connected' line segment into the 'single merged' line. Unfortunaltly it didn't.

The image below shows that the majority (99 lines in total) of line sections have successfully been converted into a single line that all share the same _network_id.

I'm unable to make the section described above become part of the merged line and share the same _network_id:

Image 4

 

 

I doubt this is unique to my data. Has anyone worked out a solution or able to provide some advice?

Just to be clear this is a line dataset , not an area dataset.

 

Hope someone out there can help.....

Best answer by erik_jan

I believe after snapping the line to fill the gap, you will need the Intersector transformer to break the line it snapped to.

Looking at the image, the line is not broken into segments, where the lateral line snapped.

Hope this helps.

View original
Did this help you find an answer to your question?

4 replies

erik_jan
Contributor
Forum|alt.badge.img+17
  • Contributor
  • Best Answer
  • February 5, 2020

I believe after snapping the line to fill the gap, you will need the Intersector transformer to break the line it snapped to.

Looking at the image, the line is not broken into segments, where the lateral line snapped.

Hope this helps.


Forum|alt.badge.img
  • Author
  • February 5, 2020
erik_jan wrote:

I believe after snapping the line to fill the gap, you will need the Intersector transformer to break the line it snapped to.

Looking at the image, the line is not broken into segments, where the lateral line snapped.

Hope this helps.

You are a star! ... it's so simple when you know how.

Thank you.


Forum|alt.badge.img+2
  • February 5, 2020

Just to expand on @erik_jan 's answer. All FME Topology tools (such as NetworkTopologyCalculater ) require the lines to be split at junctions. In other words, FME does not support complex edges where a line can join another line at an interior vertex. Only end vertices are used to for the network. You can split the lines with transformers like the Intersector or TopologyBuilder or PointOnAreaOverlayer (if you have the junctions). Careful if you have lines that cross, but do not intersect such as road overpasses or low voltage lines that cross medium voltage lines etc.


bwn
Evangelist
Forum|alt.badge.img+26
  • Evangelist
  • February 5, 2020

Just adding to the solutions. Yes, NetworkTopologyCalculator analyses line end to line end topology. Some care with splitting lines may be required however. If you don't want other lines in the dataset to be split where they cross, which topologically will connect them, then first convert the line end points into Nodes with Snipper, and use these Nodes as the splitters in tools like PointOnLineOverlayer or TopologyBuilder.


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