quick question on something that has to be simple, but I'm getting stuck on. I want to use an
Attribute Filter and a
Spatial Filter simultaneously.
I have two vector files (an overlaying grid and a stream). I want to iteratively select road segments that fall within each grid square and that have a specific attribute value for
I've been using -
roads.SetSpatialFilter(grid_geometry) roads.SetAttributeFilter("Length = 'xxx'")
However, regardless of which filter I use first, applying the second filter resets the process (so I either get the attribute subset or the spatial subset, not both).