Skip to main content
Question

Rotate polygon by compass bearing angle

  • December 14, 2020
  • 2 replies
  • 172 views

Forum|alt.badge.img+4

Using a set of input points (GPS data), I buffered each point by 1 meter to create square areas (polygons).

 

Now, I would like to rotate each square (polygon) by the bearing angle collected from the GPS data. Anyone know how to do this? I tried the Rotator, but after inspecting the output, this doesn't seem to work.

 

Note: The bearing is an angle measured from North (where Due North is 0º), so Due East would be 90º.

2 replies

deanhowell
Influencer
Forum|alt.badge.img+23
  • Influencer
  • December 15, 2020

Hello @Daniel Matranga​ , try the attached. I think you are on the right track but my guess just needed a slight tweak.

image1image2


jdh
Contributor
Forum|alt.badge.img+28
  • Contributor
  • December 15, 2020

The rotator uses cartesian (arithmetic) angles, whereas your bearing is azimuthal (geographic). You need to convert the bearing to use in the rotator.

 

See https://community.safe.com/s/question/0D54Q00008IYZslSAH/how-to-convert-arithmetic-angles-to-geographic-angles for one way to do so.


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