Stack Exchange Network

Stack Exchange network consists of 174 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 [qgis-variable]

"In QGIS, you can use variables to store useful recurrent values (e.g. the project’s title, or the user’s full name) that can be used in expressions. Variables can be defined at the application’s global level, project level, layer level, composition level, and composer’s item level." -QGIS User Manual

0
votes
0answers
33 views

QGIS 3 - Variables in rule-based rendering?

I'll try and lay this out clearly, I have most of it covered, but there's a very specific thing I'm looking for in the rules - whether or not it can be done and if so, how? Key things I have done and/...
1
vote
1answer
37 views

Suggestions on how I can depict numerous cell towers with different ranges?

I am trying to make buffers dependent on cell tower ranges. Does anyone have any suggestion on how to insert distance buffers of various that are dependent on attribute values in one layer? I am ...
2
votes
0answers
18 views

How to make QGIS model result to be a variable?

My model's temporary result is a point layer (one feature) and I need a value from one of its fields because I want to use it in the same model to select a feature on another layer. So for example, ...
2
votes
0answers
60 views

QgsVariableEditorWidget does not save changes

I would like to edit the variables of a composer item in QGIS 2.18.x. The widget itself is working so far. In my example, I am selecting a QgsComposerLabel called "Plankopf" to show its variables. ...
4
votes
1answer
35 views

increment column value with an integer when it is a duplicate

I have a layer with around 1000 lines. Some Name are repeated several times and I wish to have every name unique. Thus I try in the field calculator to add an integer at the end of the name only when ...
5
votes
1answer
133 views

Getting active PostgreSQL connection's username as variable in QGIS?

Is it possible to get login username from a current PostgreSQL layer connection in QGIS? My goal is to automatically populate new objects in a layer with an editor login username (not @...
5
votes
1answer
276 views

Global variables in QGIS mixed on some computers

I create and set some global variables in my QGIS plugin as below: QgsExpressionContextUtils.setGlobalVariable('variable_name', 'some_value') The name is unique and specific, so different from any ...
1
vote
0answers
68 views

QGis atlas with chart

I use the the atlas in QGIS for a while, and I use a variable from the atlas to filter labels, construct geometries, etc. But the atlas variables aren't everywhere in QGIS and I can't make a real ...
2
votes
3answers
305 views

QGIS Query Editor define variable

I am relatively new to QGIS. I use conditional formatting for various problems. In the qgis query editor, I would like to define a string variable for further usage, so I wouldn't have to retype the ...
2
votes
0answers
483 views

On QGIS Composer how to filter the atlas coverage layer using a project variable (rather than just a value)?

A QGIS Composer atlas can be generated from a subset of the coverage layer features using the coverage layer filter control. I can filter for coverage layer features by comparing an attribute of the ...
6
votes
1answer
580 views

How to get layer variables using QGIS Python APIs?

How can I access the layer variables defined by the user from QGIS Python APIs?
6
votes
2answers
569 views

QGIS using project variables in filter queries

In QGIS 2.14.11 LTR I have to apply the same (or similiar) filter query to various layers. I have the road name to filter for in a project variable and try to apply the following query: "road_name" = ...