[Qgis-user] Contour Elevation Labeling
Garth Fletcher
garth at jacqcad.com
Tue Jul 31 15:13:38 PDT 2018
I made a contour.shp file which contains 5' contours for my area.
I contains a field "ELEV" which holds the elevation in feet.
For the maps I currently am making I wanted:
10' contour intervals
100 intervals to use heavier lines and to be labeled.
I use the following settings in the Layer Properties dialog to achieve
the above goals
Source pane:
Provider feature filter (by using Query Builder)
"ELEV"%10 = 0 {this ignores any 5' contours, e.g., 105, 115, ...
Symbology pane:
Simple line
Stroke width
Expression: if ((ELEV % 100)=0,0.20,0.075)
{use 0.200 mm lines for 100' and 0.075 mm for all others}
Label pane:
Label with
Expression: if ((ELEV % 100)=0,ELEV,NULL)
{use ELEV if a multiple of 100, otherwise no label
Hope the above helps,
--
Garth Fletcher,
Mason, NH 03048
Andrew Davies <tazdronesolutions at gmail.com> wrote:
> Hello,
>
> I am generating contours from drone deploy & trying to add on contour
> interval labels on the vector in QGIS.
> My current method for attempting this is:
>
> - layer styling
> - abc
> - Single Labels
> - Label with...
>
> With no elevations option.
>
> Thank you all in advance for the help.
More information about the Qgis-user
mailing list