Skip to main content
Question

Change order of coordinates in line geometry

  • December 13, 2019
  • 2 replies
  • 281 views

Forum|alt.badge.img

Hi everyone,

I have this gdb with about 14'000 lines (alwas only 2 points). In the gdb there is an attribute for every coordinate of the points of the line (E_left, N_left, E_right, N_right).

My problem is that the lines need to be generated from left to right which is not the case at the moment. How can I change the geometry "IFMELine (2coordinates)" so that the start point "coordinate 0" of the line is defined by the attributes E_left and N_left and the end point "coordinate 1" is defined by E_right and N_Right?

Thank you very much,

Davide

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

becchr
Influencer
Forum|alt.badge.img+32
  • Influencer
  • 107 replies
  • December 13, 2019

hi @davidealbertini, i think 2 vertexcreators can do the job: in the first one you set the mode to "Replace with Point" and select the left coordinates. This way you replace the existing lines with a new point. Afterwards you add a new vertexcreator this time with mode "Add Point" and set the coordinates to the right ones, that wil add a second point and so create a line.

Hope this helps!


takashi
Celebrity
  • 7843 replies
  • December 14, 2019

Hi @davidealbertini, you can use the Orientor transformer (Orientation Type: Reverse) to reverse the direction of line geometries.