Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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

share|improve this question

1 Answer 1

up vote 3 down vote accepted

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.

share|improve this answer
    
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 '12 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 '12 at 14:22
    
You're right @NathanW. I thought they were all written in Python. I'll update the answer –  underdark Mar 21 '12 at 14:49
    
Thanks both for the input - I've found what I was looking for here: qgis.org/pyqgis-cookbook/… –  diciu Mar 21 '12 at 15:02
1  
this would work too qgis.org/pyqgis-cookbook/vector.html#creating-custom-renderers –  Nathan W Mar 21 '12 at 21:07

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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