4

I was wondering if there is a plugin, or a field calculation in QGIS to calculate a points rotation angle. ETGeoWizards has a tool that allows you to calculate a point layer rotation angle from a source line layer. Does anyone know of a similar process within QGIS?

Taras
  • 32,823
  • 4
  • 66
  • 137
Ryan Garnett
  • 9,479
  • 8
  • 61
  • 106
  • What is that? An angle to rotate the point layer so it best matches (overlaps) the line one? – lynxlynxlynx Feb 07 '13 at 23:44
  • Yes and No. Its to know the cardinal direction of a point, in reference to a line. For example, the angle a house faces a street. Is the house facing 75 degrees north? – Ryan Garnett Feb 08 '13 at 00:41
  • But a house is not a point, you usually have a clear edge or face (2d) to construct an angle and compare to. With just a line and a point, you can get any angle you want from out of them. You need another anchoring point or some other constraint. Is this the angle of the line of minimal distance between the two? – lynxlynxlynx Feb 08 '13 at 09:24
  • Yes, I am aware of this. This process is for 3D modeling, so it is taken care of a different way. – Ryan Garnett Feb 08 '13 at 15:53
  • 1
    Points in GIS have no orientation. Unless you were to go and specify one as an attribute. What you want is the angle of the line, perpindicular to a point. Same method as noted in my answer below, me thinks. – Willy Feb 10 '13 at 10:20
  • That is right Willy, but I didn't see in your post how to get the angle from the line to the appropriate point. – Ryan Garnett Feb 15 '13 at 23:31

2 Answers2

1

This article can help you!
Rotating point layer according to line layer in QGIS
Use geometry by expression in QGIS and the function that the article mentions.

1

I recommend these :

Taras
  • 32,823
  • 4
  • 66
  • 137
Willy
  • 3,500
  • 3
  • 24
  • 37