Skip to main content
Question

Direction Change


Hi,

 

 

I need to change the direction of linear element any diection into clockwise direction.I used orientor transformer,it change the direction of shape only line,linestrings directions are not chaged. any other option is there to change the directon of linestrings.

 

4 replies

takashi
Evangelist
  • July 9, 2013
Hi Bino,

 

 

I think the Orientor can change the direction of a linestring with "REVERSE" option. I'm not sure what is the clockwise direction if the geometry is not polygonal...

 

 

Takashi

  • Author
  • July 10, 2013
Hi Takashi,

 

 

Thanks for your sugession.I tried the REVERSE option,what is the problem is Clockwise lines goes to Anti clockwise dirction..That is problem.

 

 

 

Bino

takashi
Evangelist
  • July 10, 2013
In general, the definition of clockwise / counter-clockwise is for polygonal geometries. I don't think there is a general definition of the direction (cw or ccw) for linear geometries.

 

  What is the definition of the clockwise-lines in your case?

 

Unless it becomes clear, nobody can find a solution.   Takashi

gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • July 10, 2013

 

If u use orientor on a (poly)liine with optioon reverse it does change the order of vertices.

 

a linepiece (2vertices) with angle 225 becomes angle 45 (180 +45) Effectively the centerpoint of rotation is flipped, clockwise+>counterclockwise

 

Seems to me it works as u wish

 

U can try it out on a line using Azimuthcalulator before and after orient and then labelpointreplacer to show it inspector.

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