All Questions
Tagged with fields-attributes qgis
166 questions
5
votes
3
answers
744
views
Changing field types so graduated symbols are available
I can't seem to make graduated symbols work. When I try to click on my column it doesn't show any options.
I think these is due to those columns being formatted as text and not number. Any ideas how ...
5
votes
3
answers
3k
views
Deleting features with identical table attributes in QGIS
How do I delete features with identical table attributes in QGIS? Otherwise, is there a tool like the 'Delete Identical Tool' in ArcGIS?
For example, if I had 4 rows, and 3 columns, where I wanted to ...
5
votes
2
answers
4k
views
How to delete empty fields from a Shapefile with QGIS or ogr2ogr?
I have a Shapefile with a lot of empty columns but many of them are empty. Using QGIS or ogr2ogr, how do I remove all attribute columns where everything is NULL?
5
votes
3
answers
734
views
Define a unique ID (serial number) based on values in a field
I'm trying to generate a unique serial number for a dataset I have, for example, something like this:
As shown, I would like to have a serial field, called SERIAL in this case, that increments based ...
5
votes
1
answer
3k
views
Dissolve (merge) polygons QGIS based on attribute values only when are adjacent
I am a fairly new user of QGIS having a question regarding dissolve functionality.
I am working with the NUTS-2 shapefiles provided by EU, which I have imported in QGIS. I have created a new layer ...
5
votes
1
answer
3k
views
QGIS Not Importing ExtendedData from Self-Exported KML?
I've been scouring the internet for the past few hours, and I just can't seem to figure it out!
I am using QGIS 2.4.0-Chugiak.
Here are my simple steps:
1) I create a new ShapeFile (Type: Polygon) ...
5
votes
1
answer
755
views
QGIS Symbology - Display more symbols for each point depending on attribute numeric value
I have a point feature layer with some attributes. The numeric value of each attribute stands for the number of items of that attribute related to each point.
Is it possible in QGIS to display a ...
5
votes
3
answers
459
views
Styling points based on letter in field in QGIS
I am trying to do different symbols for my data in QGIS the only different between my points is the letter 'W' or 'D'. I want that each point will get a different color or shape to vizualize that on ...
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.
4
votes
1
answer
8k
views
How to get sum / total length of lines per polygon in QGIS?
I have a line vector layer which has multiple segments within individual polygons in a separate polygon layer. I have spatially joined the attributes so that each line segment now has the same ID as ...
3
votes
1
answer
149
views
Creating list of intersected polygons for each line using QGIS
I have a line layer representing transport routes.
I would like to add a Virtual Layer listing every city crossed by each line. I would only need the id of each city to be listed (column "...
3
votes
1
answer
2k
views
Field Value Mapping QGIS
I am wondering if there is a way to do field value maps that are filtered based on another attribute field? I know how to associate value maps, but not that are connected to another field.
I have ...
3
votes
1
answer
864
views
Automatically sort table data by specified column when opening attribute table in QGIS
I want the attribute table in QGIS to be automatically sorted by the column I want, so that I don't have to click on the right column every time.
At the moment, when I open the attribute table, the ...
3
votes
1
answer
2k
views
Using QGIS Graphical Modeler to join specific fields
I wish to join one field from a shapefile to another shapefile within the QGIS graphical modeler. I am aware that there is a 'Join attributes table' algorithm but this joins all of the fields from the ...
3
votes
1
answer
2k
views
Automating Atlas to create maps for all Attributes
I'm using QGIS 2.18 (Las Palmas).
I have an attribute table with 75 municipalities and around 50 attributes. I would like to creat a map for each of the attribute (always showing all of the ...
2
votes
2
answers
408
views
Generating new shp files according to attribute in QGIS
I know that it is possible to color a vector map by attribute. I separated a map into 4 colors based on an attribute and now I want to generate a new map for each color. Is there a way to do this in ...
2
votes
3
answers
475
views
Expression for assigning ID by grouping and ordering polygons in QGIS
To solve a problem (details see here) I am looking for an expression in QGIS (3.16) that creates a new field and should achieve this:
On a polygon layer, it should group together all polygons that ...
1
vote
1
answer
3k
views
Join Attributes by Location - Precision
What does "Precision" do within "Join Attributes by Location"?
Also, what's the difference between the "Geometric Predicates"?
0
votes
1
answer
128
views
Adding uploaded polygon measurement style to KML file polygons
Following up on QGIS: multiple map measurements I want to use a style to convert a kml layer to have measurements on all size, kind of like:
I'm using QGIS 3.28 LTE. I started by downloading the ...
15
votes
2
answers
10k
views
Changing column order with Table Manager Plugin in QGIS 3
There was a Table Manager Plugin in earlier QGIS versions I can't see it for QGIS 3 anymore.
Is there a way to achieve this in QGIS 3.6?
15
votes
1
answer
2k
views
Filling shape with labels or attributes in QGIS?
In QGIS, I would like to set the fill of a shape to be a pattern repetition of label values (i.e. an attribute of the item).
Is this possible, looking a little like the sketch below (for shapes with ...
13
votes
1
answer
9k
views
Using IN-operator in query builder in QGIS
I want to filter out some bits of a layer and I want to do this in query builder in the on a text field which contains names of several countries. I cannot figure the use of IN as in I want to find '...
11
votes
4
answers
9k
views
Creating shapefile with auto increment primary key in QGIS
Is there a way to create an auto increment primary key column when creating a new Shapefile in QGIS?
11
votes
1
answer
7k
views
Adding text fields with more than 255 characters?
I'm working on a QGIS project where I have few shapefile layers with text fields. I would like to add whole paragraphs as descriptions to the text fields, however the fields are limited by their ...
9
votes
3
answers
2k
views
Adding new field in point layer with attribute from another layer in QGIS
I'm working with QGIS 3.16 Hannover under MacOS 10.13 environment. I've got a point and a polygon shapefile layers.
I want to add a new field to my point layer with the "id" of the polygon ...
9
votes
2
answers
6k
views
Capitalizing The First Letter Of Each Word In Attribute Field
Does anyone know of a way to capitalize the first letter of each word in a field in an attribute table? I am doing this in QGIS. I know of field calculations to change all the words to Lower or ...
9
votes
1
answer
355
views
Using attributes tables as variables in QGIS
I work for a company where we use the same file when starting a project, with all the print layouts already configured, including the names/themes of the maps, since we usually need the same themes. ...
9
votes
1
answer
5k
views
Why Attribute name length in QGIS is limited to 10 characters?
In QGIS software, a vector layer has "attribute" but the name length is limited to only 10 Characters.
Is there any method to name an "attribute" to a longer name? (e.g. attribute name "building name"...
8
votes
1
answer
714
views
Troubles Updating Values of Selected Features with PyQGIS
I'm trying to modify the values of some selected features. I have written this small script, but nothing happens when I run it. Is there something that I've missed? Here is my code.
lyr = qgis.utils....
8
votes
3
answers
5k
views
Converting numeric fields into strings with leading zeros
I'm trying to define an action in QGIS using on of my fields but I have some problems with its format.
I have a numeric string like '5' and I need to have a format like '005'. I've tried function ...
7
votes
1
answer
3k
views
Is there are way to import non-geo JSON files into QGIS?
Here is a json file containing various attributes relating to countries. However, it does not contain any geographic data.
http://bost.ocks.org/mike/nations/nations.json
I would like to join these ...
7
votes
3
answers
8k
views
Using 'max()' in expression with QGIS
I want to make a rule-based style on the maximum value from a field. I set my expression like:
max("fieldname")
It returns every value instead of only the maximum one.
Can anyone tell me ...
7
votes
2
answers
4k
views
Editing feature attribute values in joined non-spatial table in QGIS?
I am using QGIS 2.18.3.
I have a shapefile (which defines parcels) and a .csv file (non-spatial) as a table (added to the project through add vector layer) with additional data regarding the parcels. ...
7
votes
1
answer
5k
views
Where are the attribute summaries in Join Attributes by Location in QGIS 3.2.0?
I have recently switched from QGIS 2.18.21 to QGIS 3.0, and as of today, to the shiny new QGIS 3.2.0.
I need to do some spatial joining so I was quite surprised to find out that in QGIS3, it seems, ...
7
votes
1
answer
3k
views
Adding field to table using QGIS graphic modeler?
I was wondering if anyone could help as I'm struggling to get anything out of the QGIS graphic modeler. I need to be able to add a new field to an attribute table and update that field with a value ...
7
votes
1
answer
8k
views
Combining 2 different symbologies in QGIS
I've got a layer (road axis) with 2 different attributes : one with the amount of trafic, another with the number of people living next to this road. As symbology for the trafic amount, I like use ...
7
votes
4
answers
2k
views
Inserting additional text into string field with the Field Calculator in QGIS
In QGIS 3.18.3, I have a GeoPackage attribute table containing a string field that I will call "FIELD_1". All records within "FIELD_1" take the form of a_a_a_a_a, where a = ...
6
votes
2
answers
2k
views
Intersecting more than two layers at same time using QGIS
Background:
At 3.20.3, there are two intersect tools available: Vector > Geoprocessing tools > Intersection and Processing Toolbox > SAGA > Features - Polygons > Intersect.
In both ...
6
votes
4
answers
9k
views
QGIS joins 2 FIELDS
I have an excel with 4 columns (Region; District; village; number of cases)
Have a shapefile with dots for villages with many columns including (Region ; District ;Village)
I want to plot the cases ...
6
votes
4
answers
2k
views
Removing duplicate features based on a condition on another attribute column in QGIS
I want to remove duplicate features (from a polygons shapefile) based on a condition on another attribute column in QGIS.
For example, if I have the following attribute table of a polygon shapefile:
...
6
votes
1
answer
12k
views
How to add CSV data with no coordinates to a polygon layer in QGIS?
I would like to add attributes from an spss database (around 300 cases) to a polygon layer in QGIS. Both datasets have a column with unique IDs. I exported the spss data to a CSV file which does not ...
6
votes
1
answer
613
views
Summing attribute values along line layer in direction: accumulating the attribute values of side lines in QGIS
I want to sum up the attribute values from a line layer along another line layer in QGIS in a direction:
The values from the orange line should be summed up along the red line, which is divided into ...
6
votes
2
answers
753
views
QGIS constraint not null depending on another field value
Does anyone know it is possible in QGIS to add a constraint to a field not to be null, only when another field has a certain value.
For example I have a field A that can be with value 'foo' or 'bar' ...
6
votes
2
answers
854
views
Extracting numbers from text attribute in QGIS
Is it possible to make a new column and store only the numbers in the column "GNR" i.e. removing (1: ))?
6
votes
3
answers
3k
views
Getting name of geometry column in QGIS
Depending on the table I'm working on, the geometry column does not always have the same name, for example in my data it is called sometimes "the_geom", "geometry", "geom"...
6
votes
3
answers
1k
views
How to find and replace attribute values based on a list
I have a Shapefile and a list in .csv which contains two columns with names:
"Old_name" which contains the old names that already exist in the attribute table of the previously mentioned Shapefile; ...
5
votes
0
answers
4k
views
Creating buffer based on Field attribute value in QGIS Modeler [duplicate]
Working under QGIS 3.16.4 and using the Modeler, I would like to create buffers for a polygons layer.
The polygons layer includes the buffer size as an attribute (e.g. "BUFFER_M") resulting ...
5
votes
4
answers
1k
views
Creating list from field values with PyQGIS
How is it possible to create a list from the values of a single field in a shp using PyQGIS?
Example:
field_capital_name
London
Paris
Rome
list1 = [London, Paris, Rome]
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 ...
5
votes
4
answers
1k
views
Boolean fields from PostGIS data type changed to QString in QQIS
I have a layer in QGIS loaded from a PostGIS database. In the layer properties dialog in QGIS, under the fields tab, layers with a typename of 'bool' (which are boolean fields in the PostGIS database) ...