Is it possible to define a custom marker as symbolizer for a point in QGIS?

I'm looking into using a variation on the "Vector Field Marker" with a couple of arrows pointing at dynamic angles (the angles being read as point attributes).

I imagine it's doable in C++ (within the QGIS code) but I'm looking for a scripting solution (python).

I'm adding a representation of what I'm trying to achieve - for two points A and B with attributes x,y,z.

custom markers

1 Answer 1


Vector Field renderer is written in Python, so you could use it as a starting point for your own renderer.

Maybe it's not even necessary. What exactly are you trying to achieve? Rotating arrows can already be done with the default installation. Check the "advanced" - "rotation field" option.

  • I think you can write renders in Python. There is one you can download from the Python repo that adds a new renderer.
    – Nathan W
    Mar 21, 2012 at 14:21
  • Thanks for the answer - I've added a picture to make things more clear. I suppose I could create 3 separate layers using the rotation field stuff (one layer per arrow) but I don't think it's a good idea.
    – diciu
    Mar 21, 2012 at 14:22
  • You're right @NathanW. I thought they were all written in Python. I'll update the answer
    – underdark
    Mar 21, 2012 at 14:49
  • Thanks both for the input - I've found what I was looking for here: qgis.org/pyqgis-cookbook/…
    – diciu
    Mar 21, 2012 at 15:02
  • 1
    this would work too qgis.org/pyqgis-cookbook/vector.html#creating-custom-renderers
    – Nathan W
    Mar 21, 2012 at 21:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.