10

Is it possible to rotate marker symbols (e.g. a triangle) in QGIS individually with an attribute field like in ArcGIS?

Edit: I would like to rotate each marker symbol individually in category A with an attribute field X, where the angle is defined.

This is how it is done in ArcGIS: "To rotate marker symbols individually based on the value of a field in the point layer's attribute table click Layer Properties dialog box > Symbology tab > Advanced > Rotation. On the Rotate dialog box, the Rotate Points by Angle in this field specifies the field that holds angular values and the Rotation Style controls the origin and direction of rotation" (ESRI Help).

Nevhis
  • 163
  • 1
  • 13

2 Answers2

12

Use Data defined override. Go to Layer Properties and in Simple marker style open the Data defined override menu with icon next to the Angle value. Choose Field Type -> "your column".

Data defined override button: enter image description here

Select column: enter image description here

Result:

enter image description here

If you select Edit... in Data defined override you can also insert a custom expression.

Oto Kaláb
  • 6,895
  • 3
  • 29
  • 50
4

If u want rotate symbol for a specific Category go style -> change symbol method to Rule-Based ->add new rule like "column" = 'something' and chose rotation angle

Edit: solution to your problem: click icon next to rotation input field -> click edit (under "Variable") -> type "column"

Where "column" is the name of column where angles are defined

ami
  • 767
  • 1
  • 5
  • 12
  • Is it possible to rotate symbol markers within a category with an attribute field? E.g. you have a category A and then each marker of this category is rotated with an attribute field B, where the rotation angle is defined? – Nevhis Nov 08 '16 at 09:13
  • Yes, see edit to my post – ami Nov 08 '16 at 09:18