Skip to main content
Question

Change order of coordinates in line geometry

  • December 13, 2019
  • 2 replies
  • 233 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

2 replies

becchr
Influencer
Forum|alt.badge.img+26
  • Influencer
  • 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
Influencer
  • December 14, 2019

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings