Solved

Order of Vertices forming lines and polygons

  • 16 September 2019
  • 2 replies
  • 29 views

Badge +9

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

icon

Best answer by takashi 16 September 2019, 09:11

View original

2 replies

Userlevel 2
Badge +17

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)

Badge +9

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.

Reply