Thursday, 15 March 2018

symbology - Rotate marker symbols individually in QGIS



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).



Answer



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.


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...