[Qgis-developer] arrows on line strings?

Barry Rowlingson b.rowlingson at lancaster.ac.uk
Fri Feb 1 12:21:48 EST 2008


Stefanie Tellex wrote:
> Hi,
> 
> The attached patch against R8092 draws arrows on all linestrings 
> everywhere, no matter what, using code swiped from this GPL v2.0 
> licensed file: 
> http://doc.trolltech.com/4.3/graphicsview-diagramscene-arrow-cpp.html
> 
> What's the best way to control arrow drawing so it only shows up on 
> particular layers? Seems like it should be written to the xml file also, 
> in which case it might be better to just wait until better rendering 
> happens, and live with patching QGIS myself until then...?

  Couldn't you just have a point layer of the endpoints of your 
linestrings with a 'direction' attribute corresponding to the direction 
of the last line segment, and then draw that using a rotating symbol?

Barry




More information about the Qgis-developer mailing list