Linked Questions

12
votes
2answers
3k views

Setting a default value in a QGIS field

I would like to add in a layer's field a default value. I mean, every time a new feature is created, that field would be automatically filled with the default value. In my case the default value ...
6
votes
3answers
279 views

Update virtual field on demand (not permanently) (QGIS)

I quite often use virtual fields. Some of them are relatively complex aggregates. Since virtual fields updates on every input, by moving the map, open the attribute table and so on, it can cost a lot ...
3
votes
1answer
795 views

Setting a default value in a QGIS creates empty field

I use Qgis 2.18.3 and tried to set default values in new column in a existing shapefile via the layer properties as described here: Setting a default value in a QGIS field or here How to set a default ...
4
votes
1answer
395 views

QField -- using Python init functions

We are using the field mapping application QField with QGIS 2.18 for on-site data collection. I've looked through the documentation and am still unsure, so am bring this question here: Is it possible ...
1
vote
2answers
370 views

Possible to set default attribute fields for vector creation?

I'm using the latest release of QGIS (2.14). Is it possible to set default attribute field parameters to be used automatically during the creation of new shapefiles/vector files? I'd be specifically ...
1
vote
2answers
316 views

Pasting coordinates into QGIS 3.x from clipboard

I was looking for a case to easily add points to a layer from coordinates. I my case I often want to quickly add one or a few points manually to an existing layer. I have seen an occasional reference ...
1
vote
0answers
284 views

How to set a default attribute value based on the feature being created

This question expands on, and updates for QGIS 3, the answers found here. I have a layer with attributes called "Name" and "Label". I would like to set to default value of "...
4
votes
1answer
65 views

Set default value based on multiple fields in QGIS

I have a layer with a relate table (1-M) with three columns (fk_id, date, comment). fid fk_id date comment 1 01 2021-02-03 Comment 1 2 02 2021-02-05 Comment 2 3 02 2021-03-02 Comment 3 4 02 2021-...
2
votes
1answer
198 views

Add new feature to QGIS layer with pre-defined attributes using pyqgis

I am working on a pyqgis script where I allow the user to add features using the addfeature map tool, where the user can create the geometry of the feature by clicking on the canvas, and after the ...
1
vote
1answer
62 views

Automatically updating the attribute table

How can I write an expression to update the area of polygons and lengths of features automatically as well as the sum of the areas and lengths. I am using QGIS 3.16.7 and the data format is OGR ...
2
votes
1answer
78 views

Using Virtual Fields in Views in QGIS

I'm trying to summarize some information in a map layout in QGIS controlled by an atlas. I have parks, and connected to that I have objects within these park (points, lines and polygons). I want a ...
2
votes
0answers
41 views

Automatically assigning attributes when defining one attribute in table using QGIS?

If it is possible to assign attributes when you define one attribute in a table, like automatic selection additional Attributes, then how is it done?