Skip to main content
Question

find position of line interruptions

  • February 6, 2018
  • 5 replies
  • 10 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.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

5 replies

takashi
Celebrity
  • 7843 replies
  • February 6, 2018

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?


gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • 2252 replies
  • February 22, 2018

@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 ?