I have a layer of roads from OSM.
I have selected 166 "Motorway or highway" road type out of 3,986 rows.
I need to label only this road type without deleting any data.
When I am typing "TYPE" in the "Label with" window I have all the road types labeled.
How can I label only this selected rows?
-
It quite similar to this question : gis.stackexchange.com/questions/251638/… – gisnside Aug 23 '17 at 23:11
Add a comment
|
If I'm understanding you correctly you want a row's NAME displayed only when that row's TYPE is 'Motorway or highway'. If that is the case then you can use the following in the "Label with" field (instead of the string TYPE
that you currently have):
if (TYPE='Motorway or highway', NAME, '')