All Questions
Tagged with fields-attributes qgis
166 questions
5
votes
1
answer
645
views
Selecting all columns except geometry using Virtual Layer in QGIS
Is it possible to select all columns except geometry using Virtual Layers in QGIS?
For example I have this (simplified) query:
Select
*,
st_buffer(geometry, 100)
From
mypolygons
It does ...
5
votes
2
answers
972
views
Selecting features with equal values in different fields in QGIS
I don't know how to filter the attribute table in QGIS. I have two columns, "DN" and "DN_2", both with values from Corine Land Cover (111, 112, 223, etc).
I try to select the rows ...
5
votes
1
answer
1k
views
Copying attributes from point layer to memory linestring layer PYQGIS
I've stacked a little bit with copying attributes.
I have a Point Layer created from .csv file. For each feature in this layer, I'm creating a new Polyline geometry in memory layer. Cannot add ...
4
votes
2
answers
2k
views
Autofilling attributes based on locations in QGIS
I have a polygon layer (admin boundaries); what I want is when I create a point inside any of the polygons, some attributes are auto filled in the point inherited from the polygon it is in.
I looked ...
4
votes
2
answers
7k
views
Getting attributes of overlaying polygon layers by spatial query in QGIS
In QGIS I would like to merge selected data/attributes out of the attribute tables from overlaying vector objects on different vector layers without creating new additional layers. Is there any ...
4
votes
3
answers
2k
views
How to hide more than one QGIS attribute field at a time?
Using QGIS 2.14.1, I use the Layer Properties > Fields > Edit Widget to hide the display of an attribute in the attribute table, as shown in this screenshot:
Is it possible to hide multiple ...
4
votes
3
answers
5k
views
Dropping z-value from geometry and transfering it to new field
Having a points shapefile with z values, how do I keep in the geometry only the x,y values? I also want to move the z values to a newly created double field.
4
votes
1
answer
2k
views
QGIS keeps cutting off attribute table column names after 10 characters, can I stop this?
How do I get QGIS to stop chopping off parts of my attribute table column names past 10 characters? Or is this unavoidable
4
votes
1
answer
333
views
Copying attributes from many columns to one in QGIS
I have many columns, about 30 and each of those has some attributes. I want to merge those columns into one and collect all attributes in a row of columns. I tried with this post Combining Columns ...
4
votes
8
answers
8k
views
QGIS not always recognizing the field name from excel files
I'm importing multiple excel files into QGIS (version 2.18.7) by dragging and dropping them into QGIS. The excel files don't contain any coordinates but data that I need to join to vector layers.
My ...
4
votes
1
answer
3k
views
Adding field aliases from CSV in QGIS
I have a geodatabase with all of my data, but I would like to add more friendly aliases from a separate key I have stored in a CSV. How do I go about adding these aliases to my field names in my ...
4
votes
2
answers
3k
views
Creating hyperlink in the attribute table using QGIS
My dataset contains a list of URLs. There is no hyperlink for the URLs to take me to Google Maps. Is there anything we can create to open the locations in Google Maps directly by clinking on the URL?
...
4
votes
2
answers
4k
views
PyQGIS: Change attribute value doesn't work, results in NULL
I am writing a QGIS plugin, which at one point attempts to change several attribute values on a layer. However, in the end no changes are made. If I punch similar code into the built-in Python Console,...
4
votes
1
answer
2k
views
Subsetting a shapefile and saving it using PyQgis
I am very new to PyQgis.
I have a shapefile containing a lot of information for each place, it looks like this
id stat_1 stat_2 ... stat_n
i1 0 0 2
i2 1 1 ...
4
votes
2
answers
11k
views
What is the difference between Integer 16bit, 32bit and 64bit in QGIS?
When creating a new attribute field in QGIS 3.14.15-Pi, these three options are offered for integer numbers but what is the difference between Integer 16bit, 32bit and 64bit in QGIS?
3
votes
2
answers
1k
views
Copy first row of attributes and paste for each feature
In a newly digitised polyline vector layer, there are 7 columns attributes value that are choosen inside a value map combo-box that MUST be exactly the same for every newly digitised line (I choose ...
3
votes
2
answers
2k
views
Auto populate field as concatenation of other fields
I'm searching for a way to automatically combine several field values entered in the feature edit dialogue, resulting in a new column comprised of the former values.
I have, say fields A, B and C ...
3
votes
1
answer
843
views
Slider for non time attributes in QGIS
How to filter data on attributes with a slider?
By example, i would like to filter weights (CHARGE in my layer) attribute for polygons without to change the filter formula.
The feature is available ...
3
votes
0
answers
215
views
Grouping neighbor points based on field sum in QGIS
I have about 14,000 points. These points have a specific field "time", an integer value, mainly between 1, 2 or 3.
I would like to split these 14,000 points into groups based on the "time" field ...
3
votes
2
answers
2k
views
Points to Path using order from array of points in QGIS
I have a node layer with several thousand points. Each one has a unique attribute "N".
I also have a list of N values which make up the points to which I would draw a line:
19523,19581,19662,...
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 ...
3
votes
1
answer
239
views
Khmer Language is not properly displayed in layer fields in QGIS
I have created a new shapefile layer which uses Khmer language fields. The encoding is UTF-8. When I create new fields in Khmer in the attribute table it displays perfectly. Then as soon as I hit save ...
3
votes
1
answer
2k
views
Removing zeros in string at different places with QGIS Field Calculator
I'd like to take the values from the "MAP_PAR_ID" attribute and populate a new field without zeros (including leading zeros) in that field, e.g.:
MAP_PAR_ID
New_Field
0160011000
16-11
...
3
votes
3
answers
3k
views
Updating point shapefile attributes from polygon shapefile using QGIS?
I have two shapefiles: one point and one polygon.
The point shapefile have five attributes that describe the points.
The polygon shapefile have one attribute: name of the polygon.
I am a beginner to ...
3
votes
1
answer
521
views
Getting fieldnames with QGIS expressions in same order as in attribute table (not alphabetical order)
Context
I want to get a list of field names of a layer using QGIS expressions. The function attributes() returns a key:value map of the attribute names and values. By default, the result is sorted ...
3
votes
0
answers
125
views
Different settings for form & table views in QGIS
In QGIS 3.18. Layer properties-->Attributes Form allows changing various aspects of attribute visualization and entry/editing, including aliases, widgets (for drop-down menus, checkboxes, etc), and ...
3
votes
5
answers
1k
views
Extracting digits from string in QGIS
I have a string field that I want to extract only the digits example: 1,500 m2 -> 1500
I've tried with regexp_substr("location", '(\\d*)') to remove all after the blank space, but I need ...
3
votes
1
answer
808
views
Selecting multiple fields in QGIS Modeler
I am trying to make a model in the Processing Modeler of QGIS.
I need a step where a layer with polygons is dissolved based on two fields.
At the moment I do this manually. When I open the dissolve ...
3
votes
1
answer
1k
views
How to create a Value Map widget type to select multiple values (checklist) from the dropdown?
I have a polygon layer that represents tree/shrub planting sites that were done. As part of the attribute table, I have fields representing things like tree density, species, soil work, tree size, etc....
3
votes
2
answers
3k
views
Moving and converting virtual fields in QGIS
I have two questions about virtual fields:
Is it possible to move a virtual field? I'm using Table manager to move "normal" fields but virtual fields doesn't show.
Is there any simple way to ...
3
votes
3
answers
3k
views
How to save color VALUE to attribute table in QGIS for a vector layer with a graduated symbol renderer
I am trying to achieve this -> How to copy the color styling to a color column in a layer's attribute table?
script by @Germán Carrillo
prefix = "'"
layer = iface.activeLayer()
attr = layer....
3
votes
1
answer
579
views
Selecting new records using values inside previous selected rows in QGIS?
I am trying to create a selection. First, I select records which have Null value in "Status" column ("Status" is NULL"). Then it starts to be a bit tricky. I want to select all the records which have ...
3
votes
2
answers
749
views
Stop custom attribute form from resizing in Qgis
When I open a custom attribute form for a feature in Qgis it always gets resized to the default size of the original Qgis attribute form. I've tried to set the sizePolicy in QT Designer to Fixed ...
3
votes
3
answers
2k
views
Summing values from different intersecting/overlapping points in QGIS
I am currently digitizing an old archaeological excavation. I have created the 2m grid where finds were excavated, and have created centroids within each grid. All the corresponding finds has then ...
3
votes
2
answers
2k
views
How to set NULL as default value for a date field in QGIS 2.4?
In QGIS 2.4, i am unable to set the default value as NULL if i have not updated any value on date fields. Its automatically taking the current system date. I am expecting to set the default values(...
3
votes
1
answer
805
views
Batch map creation, iterated over attributes of a layer, in QGIS
I am using QGIS 2.0.1 under Mac OS-X 10.8.2. I have a layer of counties in New Mexico to which I have joined a csv file that includes presence / absence of plant species by county. I've set up the ...
3
votes
1
answer
462
views
QGIS - Split a line having attributes with UNIQUE constraint
I am using QGIS with a PostgreSQL/PostGIS database, where the lines table (named 'segments'), besides the integer serial primary key, has a UUID column having a UNIQUE constraint. Trying to split a ...
2
votes
2
answers
1k
views
Save a selection in QGIS and keep the alias of field names?
I am trying to save selected features into a new shapefile using QGIS 10.2. The new file does not contain the aliases for the field names.
Is there a way to maintain the aliases in new files?
2
votes
1
answer
525
views
Setting attribute of point if it matches point from another layer in QGIS
I have two layers of points:
The first layer contains points which have an attribute called "svf" with values between 0 and 1
The second layer contains a subset (in terms of location) of ...
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
920
views
Numbering adjacent polygons in sequential order
In QGIS is there a way to assign ascending numbers (attribute) to polygons that are located in a row. The polygons were not created in sequential order.
2
votes
1
answer
960
views
Returning current attribute name in QGIS Expression Dialog
In Expression Dialog, I can use $geometry to returns the geometry of the current feature.
But how could I return the current attribute of the current feature? Something like $attribute.
The purpose of ...
2
votes
2
answers
2k
views
Is the derived area/length/xy values of a polygon/polyline layer in QGIS usable?
I have a raster that is projected to a state plane CRS and I am adding polygon/polyline shapefiles that are projected to WGS84. On the fly transformation is set to reproject to my raster CRS. When I ...
2
votes
2
answers
643
views
Merging multiple lines by value field
How can I join these lines depending on the Trigger field. The condition is as follows, the fields must be ordered in ascending order after the fid field from 1 to 68. Thus, I want to join all my ...
2
votes
1
answer
3k
views
Buffer points by buffer amount in attribute value
I have a set of points in a shapefile with a real number attribute 'r' containing a radius (cp. screenshot below) and I would like to buffer these with amount of 'r'. As the result I expect a polygon ...
2
votes
2
answers
521
views
Showing marker symbol even when no value in field using QGIS
In QGIS, I have been learning a few expressions to style my trail maps but still know little and am stumped on what to use to filter my symbol data.
I am showing Parking locations on my map. I use a ...
2
votes
1
answer
3k
views
How to define the type of a field in the field calculator so that the rasterize (vector to raster) tool recognize it?
I have a shapefile (polygon) that I want to rasterize by an attribute but the rasterize tool does not recognize the right field. When I create a new field using the field calculator it does not matter ...
2
votes
2
answers
7k
views
Assigning polygon layer attributes to point layer features in QGIS [closed]
I have a task which I’m sure is quite common, but being new to QGIS I’m hoping someone can point me in the right direction. I have a point layer with PLANT_ID and SPECIES of individual plants, and ...
2
votes
1
answer
622
views
Concatenate Rows Grouping By Categories
I'm having an attribute table like this of a shapefile on QGIS:
Movie / Actor
A / 1
A / 2
A / 3
B / 4
I want to get the name of a movie and all actors in that movie, and I ...
1
vote
1
answer
765
views
Create and immediately update field using Field Calculator
You can create fields and once created, populate them with data using the Field Calculator. But can you do both at the same time using an expression? Or must you do it in 2 steps?