Question

find position of line interruptions

  • 6 February 2018
  • 5 replies
  • 2 views

Hi,

I am trying to find the position of the interruption in a polyline. I have already filtered the broken line, now I need the coordinates of the interruption point.


5 replies

Userlevel 2
Badge +17

Hi @sebastiangoerck, just an idea:

  1. Create buffers of the lines by a small buffer amount (Bufferer)
  2. Overlay the buffers (AreaOnAreaOverlayer)
  3. Select overlapped area (Tester: Test 1 < overlap count)
  4. Transform the overlapped area into its center point (CenterPointReplacer)

Hi,

thank you, I get 90% of the cases out. Unfortunately, those where there are larger gaps not.

does anyone have an idea how I can also find the larger interruptions on a line chain?

Badge +3

@sebastiangoerck

Extract the endpoints using a coordinate extractor.

Calculate distance between these points.

Smallest distance would be the interrupted section.

If you want to join them, you can then replace one coordinate with the other, depending which line is your anchor.

Or get the center point of the bounding box of the interruption and use center, if this is acceptable.

i tried it, but i dont know how can i extract the endpoint from a multicurve. if i try to use a coordinateextractor with 0 an -1 then i got any first coordinate from a part an any last coordinate from a part.

is it possible to convert such multicurve with many parts du one line ?

Reply