[Qgis-user] Display only selected vector line feature
Garth Fletcher
garth at jacqcad.com
Sun Jun 1 19:53:49 PDT 2025
Hi Morgan,
It looks like each road is a separate "feature", i.e., each has a unique
id and Name.
An easy solution, assuming you want to highlight a single road at a
time, is to use
a filter.
Double click on the layer to bring up the Layer Properties dialog
Along the left edge click on the 2nd icon down, looks like a wrench,
"Source"
Lower right, click on Query Builder
In Query Builder dialog
in Fields double-click on id
that will enter "id" in Provider Specific Filter Expression
then click on =
then enter 1
your query should look like "id" = 1
click OK to the Query Builder and OK to the Layer Properties dialog
Now only the road whose id=1 will display.
When you want to instead highlight road 2, just go back into the Query
Builder and change the 1 to a 2.
You could also have chosen to use the Name field.
In that case in Fields double-click on Name followed by =.
Then over to the right in the Values section, click on All
That will list all the road names,
and double-clicking on one of them will enter its name in ' ' after
the =
So your query might look like "Name" = 'Webster - Piedmont'
On 6/1/25 9:51 PM, Morgan Fletcher <morgan at hahaha.org> wrote:
> ... I put all the roads - 18 - in one layer. I want to be able to
> selectively render each road as a semi-transparent yellow line, rather
> than have all 18 simultaneously shown. Is that possible? ...
--
Garth Fletcher
More information about the QGIS-User
mailing list