Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Python bindings for QGIS 3.
3
votes
PyQGIS: Reload layer attribute table after editing the dataProvider
In your script, you are editing the file directly by creating a new internal object QgsVectorLayer, not the layer in your legend.
query_point is a "QgsVectorLayer", but lyr is another "QgsVectorLayer" …
5
votes
Accepted
Hiding advanced parameters in QGIS Processing Algorithm Script
Indeed, it seems the "Export to Python" doesn't follow the advanced setting. You need to adapt the code a little bit.
When you have a new parameter like in the exported model:
self.addParameter(QgsP …
10
votes
Accepted
Returning only listed column values in PyQGIS
You should "very often" use QgsFeatureRequest:
https://qgis.org/api/classQgsFeatureRequest.html
https://qgis.org/pyqgis/master/core/QgsFeatureRequest.html
If you need only a subset of attributes, an …