General description: I am using QGIS as quick visualization tool, where I make a "PostGIS" database layer and I see user generated events. Table structure as follows:
Id | time_of_event | position | heading |
int | timestamp | geometry(Point ) | smallint |
Specific problem: When I draw the position I draw it as point, I would like to draw it like so, if heading is = 0 or > 360, otherwise I would like to draw it as arrow.
I have read How to draw line pointing in compass bearing direction from point shapefile and Scaling vector field marker arrow based on attribute? but both of them are static.
And I couldn't figure out how to draw them based on a conditional, is this even possible?
P.S. I am using QGIS 3.2
Edit: so I made it display the proper direction:
However how can I make a conditional, when heading is null, display red dot?
heading = 0 OR heading = 360
and another forheading > 0 AND heading < 360
with respective symbols. rotation can then be applied separately.