Skip to main content
Question

Change/Rebuild polygon defining start point/vertex based on Z value

  • July 21, 2021
  • 2 replies
  • 67 views

od10
Contributor
Forum|alt.badge.img+4
  • Contributor
  • 11 replies

Hello,

 

I need to rebuild polygons from points, but need certain vertices' criteria.

  1. Polygons need to be digitised in a clockwise direction (can use orientor transformer for this)
  2. Polygons need to start with a vertices which has highest z value.

How do i define the start vertice for the polygon when rebuilding the polygon?

Capture 

Thanks

@Takashi Iijima​ @david_r​ @Hans van der Maarel​ @ebygomm​ 

2 replies

jdh
Contributor
Forum|alt.badge.img+37
  • Contributor
  • 2002 replies
  • July 22, 2021

I haven't tried this at all, but what if you:

connected the vertices into a line (polygon perimeter)

used a coordinateExtractor to get the list of vertices , sorted the list so the highest z was first

vertexCreator from the coordinates of the first element in the list

pointOnLineOverlayer to split the the line at that point

rebuilt the resulting two lines into a polygon. (an areaBuilder might pick them up in the correct order anyhow, if not then using a LineCombiner after you switch the order of the lines would work)


DanAtSafe
Safer
Forum|alt.badge.img+19
  • Safer
  • 345 replies
  • July 23, 2021

Hi @od10​ Here's a workspace showing @jdh​ 's idea. The tricky part is hoping that the 2 lines will be in the right order to make the vertex with the highest Z value the start/end point of the polygon. I found that the TopologyBuilder did this consistently.