Skip to main content
Solved

Order of Vertices forming lines and polygons

  • September 16, 2019
  • 2 replies
  • 189 views

deanhowell
Influencer
Forum|alt.badge.img+24

Hello All,

I have found a few great posts that helped me get the order of vertices in a polygon but am trying to work out the how to get the start and end coordinates in correct order.

My workflow is as follows:

1. Read in polygon features

2. Use Chopper and counter to break into points and attribute.

3. Use Chopper and counter to break into lines

4. Use PointOnLineOverlayer to get the start and end coordinated.

5. Attribute lines with Start and End point ids.

 

What I am finding is that the start end end points are correct but the order in the line table is not.

In the example below, I have a triangular parcel where it goes from point 81736 to 81735 to 81750, so I hoping to get something like

1 - 81750 to 81735

2 - 81735 to 81736

3 - 81736 to 81750

but am getting the following

 

Any assistance would be greatly appreciated.

 

Here is the workspace that I am working on

Best answer by takashi

Hi @deanhowell, if I understood your requirement correctly, this workflow example might help you.

add-from-to-pointno-to-line-segments.fmw (FME 2019.1.2)

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.

2 replies

takashi
Celebrity
  • 7843 replies
  • Best Answer
  • September 16, 2019

Hi @deanhowell, if I understood your requirement correctly, this workflow example might help you.

add-from-to-pointno-to-line-segments.fmw (FME 2019.1.2)


deanhowell
Influencer
Forum|alt.badge.img+24
  • Author
  • Influencer
  • 315 replies
  • September 16, 2019

Hi @deanhowell, if I understood your requirement correctly, this workflow example might help you.

add-from-to-pointno-to-line-segments.fmw (FME 2019.1.2)

Thanks @takashi, that does the trick perfectly. Thanks for helping me solve another piece of the puzzle.