Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [qgsfeaturerequest]

The tag has no usage guidance.

1
vote
0answers
19 views

QgsFeatureRequest() with a string search within QGIS3 Processing Script [on hold]

I'm trying to select features using a string comparison within my script using a QgsFeatureRequest() and getFeatures() roadsRequest = QgsFeatureRequest() roadsExpression = str(roadsIDField[0]) + ' ...
1
vote
1answer
24 views

QGIS 2.18: Filter line-layer by QgsExpression

I have a line layer on which I want to run a filter within a python script. I am trying to achieve this via QgsExpression and QgsFeatureRequest. Below you see the same filter that I want to apply in ...
3
votes
1answer
56 views

QGIS 2.18: Speed up QgsFeatureRequest in Python Script

I have two input layers. The first one is a line-layer named "graph" and the second one is a point-layer named "nodes". The "graph"-layer: The graph layer holds 177350 line features which are ...
1
vote
1answer
30 views

QgsfeatureRequest - Store result indexes

I recently posted a question. My original goal was to find a way to determine on which side of a line points are located. @xulnik answered this question with two codes. One returns a binary [0;1] ...
1
vote
1answer
112 views

How to refresh a layer after filter features in pyqgis

When I queried some features using QgsFeatureRequest().setFilterExpression() in pyqgis,I want to make the current layer just only show what I queried without creating a new memory layer. Just like you ...
1
vote
0answers
38 views

How to set flags when re-use QgsFeatureRequest object

I have a standalone PyQGis application that is working fine. When I query a vector layer via QgsFeatureRequest class, I would like to instantiate one object and reuse it. But I am not sure how to set- ...