Sunday 10 February 2019

symbology - QGIS not showing the course of the line with arrow symbol and 'arrow at each segment' unchecked


I want QGIS to show arrow at the end of each line but not at each segment on the line. When I select arrow symbol and uncheck repeat arrow at each segment, it draw a straight line from beginning point to the endpoint, without following the course of the line. How to fix this to get the course of the line and also the arrow at the end of the line.



Answer



To create an arrow with only one arrowhead at the end of the line you need to create two layers-symbology: a simple line and a marker line as you can see below


enter image description here


The arrowhead is a marker line type which is a tree of symbols. Here, you can choose whether you want to place the arrowhead at each vertex or only the last vertex or any other place.



enter image description here


Then change the marker from circle to triangle and add an offset if necessary.


enter image description here


Regarding the simple line, it is just a line you add it at the bottom of the arrow head using the Plus button.


enter image description here


Here is the final output:


enter image description here


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