I am trying to use select by expression to query lines that contain certain attributes and that there geometry touch. In other words are connected or neighbour each other.
I tried a query such as this. My attribution might not make sense but I just need the syntax correct.
"isDiscouraged" = 't' AND touches("roadclass" = 'ramp')
"Links that have this attribute" AND Touch "links that have this attribute"
So I want to find links that contain the attribute
isdiscouraged = t that are connected to links with this other attribute
roadclass = ramp. Is this possible?
My above query is invalid but lays out what I'm looking for. Any ideas how to tweek it to make it work.
I know its kind of a more spatial query combined with attribute query but can't get it to work!