All Questions
Tagged with fields-attributes qgis
832 questions
3
votes
3
answers
299
views
Separating columns of layer and exporting set of columns in a new QGIS layer
I use QGIS 3.16. I need to find a way to separate the columns of a layer and export each column in a new layer named like the column.
For example: I have a file.csv that I import with the geometry wkt....
2
votes
2
answers
324
views
QGIS based rules symbology with boolean options
I have a point layer with some boolean fields. I have created a symbol for each field when it is true.
However, when I create new symbologies for combined cases with more then one field true, I ...
7
votes
4
answers
359
views
Generating geodata models for layers and their attributes in QGIS
Let's say I have a map with two different layers in QGIS:
'LayerA'. It has three attributes (fid, name, quantity) and its geometry is a MultiLine
'LayerB'. It has four attributes (fid, type, location,...
4
votes
1
answer
253
views
Summing on multiple attribute value on same coordinate in QGIS
I have data like this:
If we see clearly then there is same data in same coordinate, now I am doing manually like this picture which is very time-consuming.
How can do it easily in QGIS?
-1
votes
1
answer
117
views
How to make the grid polygons assume the inside centroid attributes of another layer QGIS
I have a square grid and I have multiple centroids on another layer. These centroids have many attributes as values. I want for each grid cell to assume the attributes of the centroids inside them. ...
5
votes
1
answer
262
views
Counting points in adjacent polygons using QGIS
I would like to sum up the amount of points in a polygon and its adjacent polygons. If possible, I would like to add a certain "weight" to the points of the adjacent polygons. Here is a ...
2
votes
1
answer
94
views
Adding selection data from one layer to new field in another layer using QGIS Field Calculator
I have two polygon layers:
A) Contains around 500 river catchment areas
B) Contains 100 river catchment areas
I want to create a new data field in Catchment A showing which catchment (Catchment B) the ...
0
votes
1
answer
307
views
Applying multiple conditional statements for new column with QGIS Field Calculator
I have an attribute table of a point layer where each point has a "StopID" (range 0-37115):
My goal is to create a new column in the table for a subset of 188 points where that subset is ...
4
votes
1
answer
137
views
All field type names are lowercase after using materialize from QgsFeatureSource in PyQGIS
An interesting fact, after using the materialize() method over my original QgsVectorLayer with the following code:
layer = iface.activeLayer()
for field in layer.fields():
print(f"Field '{...
4
votes
1
answer
168
views
Combining content of multiple text cells into one field based on common id in QGIS [duplicate]
I need to combine the content of multiple cells into one, this is based on a common "ID". I need this "ID" to remain after the text has been merged. I tried the aggregate tool but ...
2
votes
1
answer
394
views
Exporting list of attributes from multiple layers within extent in QGIS
I'm looking for a way to export attributed values from multiple layers in a project from features within the extent of a specific polygon (project area).
So, for example, I have a polygon layer with ...
3
votes
1
answer
746
views
Adding several attachments to one feature in QGIS
I want to add several files (for instance JPEG, DWG, PNG, etc.) as attachments in one polygon attribute field.
I created a new field with widget Type - Attachment. But it allows adding only one file ...
2
votes
1
answer
98
views
Setting value to default otherwise counting if it is NULL with QGIS expression
I am looking to expand on this expression, I currently have the ability to count up following putting a tree no in, so I put in 'T001' then the formula counts on.
However I want to put 'T001' as ...
2
votes
2
answers
148
views
"Duplicating" the attribute table for many polygons in QGIS
I have about 45 polygons that refer to parcels of land and I want to create the same attribute table for all of them and edit the information/prices afterwards depending on the parcel.
"Joining&...
2
votes
1
answer
95
views
Filling in missing attribute data based on other features using QGIS expression
I have a survey form and some features (trees) will be grouped using the same "TreeNumber".
Hopefully, I can write an expression that means users only have to fill in most of the data for ...
5
votes
2
answers
207
views
Finding field containing maximum value for each row in QGIS
I have a table with the number of buildings constructed per time period in each district, and I would like to determine the time period in which most buildings were built.
For example, for the ...
3
votes
2
answers
2k
views
QGIS auxiliary label locations: determining their storage locations
Background:
Using 3.26.3, I have a Geopackage point layer that I can successfully move the label locations using the Move Label button (below).
In the past, this process has automatically added two ...
2
votes
1
answer
268
views
How can I transform a StringList to one String
I have a column in Qgis with type:"StringList" eg
{ "name": "William", "height": "1.87", "age": 90 }, { "name": "Mary", &...
2
votes
1
answer
53
views
Converting polygon with attributed into centered lines using QGIS
I had some data points I wanted to aggregate with different road segments. So I buffered the road in order to process "Join Attributes by Location (Summary)". With the buffered road segments,...
2
votes
1
answer
485
views
QGIS model: save downloaded file with filename based on one of its attribute values
Context
Using QGIS modeler (currently with QGIS 3.26.1) with the Download File algorithm, you can use a filename based on an expression and thus are able to give the saved file a name based on e.g. ...
1
vote
0
answers
72
views
Automate adding a new attribute field based on name
I frequently take in datasets of land parcels and need to split them into separate layers (Private, County, State, Federal). I have been manually creating a new attribute field and then selecting by ...
1
vote
2
answers
46
views
Filter attributes from a data layer into a point layer
So, I have two layers:
-A point layer with a number of venues (around 2000 venues). The attribute table has 7 columns:
Venue ID (Foursquare)
Latitude
Longitude
Venue category name (Foursquare)
...
0
votes
1
answer
259
views
Form layout I created in QGIS won't transfer to QField
I have been trying to create a form layout in QGIS which includes different tabs, and am trying to transfer this layout to QField. When I open QField, my fields are showing up but that is it, none of ...
1
vote
2
answers
75
views
Deleting a field using plugin in QGIS 3
I am trying to write a function to delete a field using plugin in QGIS 3.24.
I have build a plugin , which consists of QgsFieldComboBox. So I can select a field from the combo box to delete (from the ...
1
vote
1
answer
183
views
QGIS Find position for point objects on a line object and add this length attribute to any point object
My QGIS (3.22. Biatowieza) question is the following:
I have a line layer with objects that have a length in metres. And there is a separate point layer with point objects that are located besides of ...
3
votes
1
answer
437
views
New field in attribute table with automatic yes or no
I have 2 different layers: one is properties and the other one is park buffer. I would like to add a field in the properties attribute table that says YES if "properties" and "buffer&...
2
votes
1
answer
759
views
Separate "date and time" field in "date" and "time" in QGIS
I have a column with date and time (yyyy/mm/dd hh/mm/ss) as string. I have the date field already, but the hour field is empty. How can I transfer the hh/mm/ss part to the hour field?
I am new to QGIS ...
4
votes
1
answer
137
views
QGIS 3 Modeler operate with a fieldname
In a model I would use a fieldname of a layer with the Input of Vector Field. When I use the name of the input in an expression, the model gives no result. Do you have any idea?
2
votes
1
answer
151
views
Set integer attribute based on a text string attribute
I have an atribute field listing biomes as text strings. I need to do some processing in another program that requires biome information in a numeric code. TLDR; every 'Tropical Rainforest' needs to ...
3
votes
4
answers
717
views
Importing from Excel/CSV format to QGIS
I created a grid and used it's squares and it has 4 values in attribute table (each square has left, top, bottom, and right values). Every square is a different object. I try to export file from ...
1
vote
1
answer
142
views
Update Attribute Table on clipped shapefiles using QGIS
I would like to find a way to automatically update the attribute table for shps generated from the clipping tool. My interest is to get an updated area calculation. All my new shapefiles would ...
4
votes
1
answer
440
views
QGIS - Value relation values based on geometry
I am having a problem with last part of defining values in geopackage.
I have created relation values based on field values (drop-down values). Last one I want to create, is to make relation based on ...
1
vote
2
answers
260
views
Relationship by location in QGIS
I have two feature classes: point and polygon. The purpose is to make geometrical relations between them. For instance, if points are within a polygon then automatically make the relation between ...
3
votes
1
answer
952
views
Creating rule-based style for attribute between two values in QGIS
It seems a pretty straightforward rule but I believe I am missing something simple. Let's say I have, in my attributes table, an attribute called "NumberOfFloors", with values between 1 and ...
1
vote
0
answers
419
views
New field and joined fields not displaying in attribute table field dropdown in QGIS [closed]
I joined some fields to a layer and also added a new field. These fields display as expected in the layer's attribute table. Now I want to create an expression for one of the new fields but it doesn't ...
7
votes
2
answers
359
views
Excluding zero values in proportion calculation in QGIS
I'm trying to calculate the proportion of seven fields. It is easy to divide the sum of seven fields by seven, but since some fields have zero values, I want to exclude them from the calculation.
For ...
3
votes
2
answers
143
views
Inserting space between address and cardinal direction in QGIS
I have a shapefile, which is a parcel map. Its table of contents has a column containing the addresses of several buildings. Some of the addresses hold directional information (i.e. n, s, w, e).
The ...
4
votes
2
answers
3k
views
Changing field length in QGIS [duplicate]
I want to update the string length for a shapefile layer in QGIS. I've tried opening up Layer Properties and clicking edit but it won't let me change it manually. Also I've tried using the field ...
5
votes
2
answers
1k
views
Getting list of values from column in QGIS
I have one "column D" with a b c values for my entities (1-2-3-4).
Something like that :
1. b
2. c
3. c
4. e
5. j
6. b
I would like to generate a list of each different value of "...
4
votes
1
answer
448
views
Summing numbers separated by commas in string field in QGIS
In QGIS, I have a column separated by comma (shown by column "lengths"). I want to sum up elements in it for each row. The column is a text field string.
0
votes
1
answer
97
views
Finding features in QGIS with partly different attributes
I have several layers and they all have identical table organization. I need to find if there are any features that have a different names but the same UUID. I know that this could be done if I ...
4
votes
1
answer
92
views
Creating new attribute field gained by areal intersection in QGIS
I am trying to make a new attribute field which will differentiate points, vector layer, which lie inside and outside of a polygon layer.
I tried like this:
CASE
WHEN '...
2
votes
1
answer
98
views
Filtering missing corresponding values in 1 to N relationship in QGIS
I have two tables set up in a 1 to N relationship with the field "UE". Table 1 is a parent. 'Table 2' is a child.
I want to filter all entities in table2 that don't have a corresponding ...
8
votes
1
answer
460
views
Sorting values in Unique Values widget in QGIS
In QGIS 3.24.3 I have a GeoPackage table containing a text field "box_id". Within its Layer Properties > Attributes Form page I have assigned it a Unique Values widget type as shown here:
...
2
votes
1
answer
157
views
Making rule on dates for vector points in QGIS
In QGIS, I would like to create a rule-based on dates for some vector points. These points have a field for dates, in the format dd/mm/yy. The rule would be such that if a date is less than a certain ...
1
vote
2
answers
614
views
Merging Attribute Table Field Values for Same File in QGIS
If multiple people populate different attributes of the same shapefile on separate computers, is there a way to merge the attribute table without creating copies of the polygons or fields?
Each file ...
5
votes
1
answer
355
views
Converting number with leading zeros in integer in QGIS
I used this command to organize my treenumbers:
lpad("baumnummer", 6, '0')
So tree number 1 will be shown as "00001". I did this because in my layout lists every tree will be put ...
3
votes
1
answer
256
views
Converting text field with special characters to field with floats in QGIS
I have a dataset with a text field ("INL_EL") containing mix formatted values likes {92.066} or 94.461.
I want to make a new numeric field ("INL_EL_N") containing the above values. ...
4
votes
1
answer
98
views
Making new field with formatted values in QGIS
I have a column called "Kiinteistötunnus". The values are in the form 73479400010025.
Values in the whole column should be changed to form 734-794-0001-0025.
The data type is Integer64. ...
1
vote
0
answers
46
views
Can I use the dropdown list in attributes table for several selected features in one time?
I use some dropdown lists for several attributes. Now I want to select several features (objects) and edit a field using the dropdown list.
Is there a way to do it in one time, because it looks like ...