Questions tagged [fields-attributes]

Fields, also known as attributes, contain information about features.

Filter by
Sorted by
Tagged with
7 votes
1 answer
155 views

Auto incremental field filled with filtered by other field value in QGIS Attribute Form

From a point geometry layer with two categories "A" and "B", when I enter new points, I first choose the category of the "CATEG" field with a listbox, and then I use the ...
Ingrid Ingravida's user avatar
8 votes
1 answer
80 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. ...
silf's user avatar
  • 177
1 vote
1 answer
60 views

Changing Widget type to 'Unique Values' and making it editable using PyQGIS

I'm new to the QGIS software and am attempting to change the widget type to 'Unique Value' (by default, it's 'Text Edit') using PyQGIS. I have more than 20 fields in a layer for which I want to set ...
Khurshid Alamkhan's user avatar
1 vote
0 answers
39 views

QGIS crashes when running Action to create new field

I made a layer style with a python action with following code : def add_field(field_name, layer, field_type=QVariant.Invalid, field_length=0, field_precision=0, value=None, from_field=False): if ...
dmjf08's user avatar
  • 1,097
0 votes
0 answers
23 views

Unable to bring up attributes for a feature

When I select the layer in question as the only selectable layer, I am able to use Open Attribute Table and open the attribute table for the entire layer. However, when I right click a feature in the ...
Carol Rudolph's user avatar
0 votes
1 answer
44 views

Sequential attributes of snapped lines

I'm a stormwater engineer using QGIS and I need to do some mapping of ~2000 stormwater pipes. As part of this I need to assign unique pipe identifiers to each pipe with each pipe system labelled in ...
JOsh's user avatar
  • 9
4 votes
1 answer
96 views

Getting only joined fields using PyQGIS

How do I get a list of fields that have been joined to a layer, or how can I check if a specific field has been joined? In older versions there seemed to be field.source(), but this is not available ...
BritishSteel's user avatar
  • 6,617
0 votes
0 answers
26 views

All values entered using fields with a list of values are transformed into (0)

All values entered using fields with a list of values are transformed into (0) how can we find back the selected values, we lost a lot of work and can't find backups.
E.S17's user avatar
  • 1
2 votes
1 answer
82 views

Matching specific word character in QGIS Graphical Modeller

With the graphical modeller, I try to decode a set of codes: Since the code '_zie' is also contained in the code '_p_zie', I get two matches for '_p_zie'. How can I get two specific Word characters ...
Janko's user avatar
  • 185
0 votes
1 answer
53 views

QGIS - I cannot add attributes to a line segment [closed]

I am trying to add the name of a polygon (an attribute called "member") that the line segment falls within, so that a field called member is added to the line file and it is filled with the ...
PattyB's user avatar
  • 17
0 votes
0 answers
26 views

Creating a MultiPolygon field that includes multiple

I have been tasked with creating a new polygon layer to include lat/long of atleast 5 vertices. I have a sample of the fields of another customer they work with and I cannot seem to find out anywhere ...
Cam's user avatar
  • 1
0 votes
1 answer
19 views

Creating line feature with multiple record

I am trying to create line feature with multiple record in ArcGIS 10.8. Actually I am working on FTTH project there I need to draw 12 f fiber which single cable contains 12 separate threads in it and ...
Jay Kumar sharma's user avatar
2 votes
1 answer
125 views

How to replicate QGIS's Identify Features functionality with ogr2ogr when downloading data from WFS endpoint?

I am working with this WFS endpoint: https://wxs-gpu.mongeoportail.ign.fr/externe/39wtxmgtn23okfbbs1al2lz3/wfs In QGIS, I do: Layer -> Add Layer -> Add WFS Layer..., then add the above endpoint. ...
zabop's user avatar
  • 1,540
1 vote
1 answer
43 views

Query - Select By Attribute

I have contour data of 1 foot contours. How do I write a select by attribute query to only select 10 foot intervals. ie: 750, 760, 770, 780...... Than data range is between 10ft and 900ft, est. So I ...
LIQUE Group's user avatar
0 votes
1 answer
82 views

How to display in QGIS Map Tips an image with absolute path written in the layer? [duplicate]

I am trying to display the images of a layer with the "map tip" function. The absolute path of each picture (D:\ ... \ ...\...jpg) is written in a field called "path". I tried to ...
AbeteBianco's user avatar
1 vote
1 answer
50 views

How to set a "main field" of a layer in QGIS interface (instead UUID)?

I have a layer inserted in QGIS. When I select/interact various elements together, to distinguish them the interface offers me grouping by UUID which is the primary key. Of course I want UUID to ...
AbeteBianco's user avatar
1 vote
3 answers
43 views

Script field calculation Python parser

I am trying to use the field calculator to create an alphanumeric sequence, I tried to write a statement but I don't know what is wrong. So my sequence would be in a field called "Field_number&...
Jmerryline's user avatar
3 votes
2 answers
144 views

Change specific text and keep the rest

I have field values that are: OG_S_G4, OG_S_G3, OG_S_G2, etc. and I want to change the OG to LIP whilst keeping all the text after (i.e. LIP_S_G4), is there a way to do this?
kel's user avatar
  • 31
0 votes
1 answer
40 views

QGIS Split Vector Layer By Multiple Attributes

I am working on a fiber network file and would like to be able to split a point shapefile by multiple attributes, three to be exact. I can "Select Features by Value" and export each one but ...
OregonBladez's user avatar
0 votes
1 answer
58 views

Copying an attribute field from a polygon to a polyline

Is there a GP tool in ArcGIS Pro to copy a date field from a polygon feature class to a polyline feature class? I cannot use the join tool because there are no common fields after running the polygon ...
niklas24's user avatar
  • 573
0 votes
0 answers
22 views

Adjusting number of visible items in multiple-select list

We created a value relation widget in our project, which contains many different selectable options. However, only 5 out of 25 options can be seen at once (see attached photo). Is there a way to ...
Anja Puentener's user avatar
1 vote
0 answers
21 views

Splitting a point vector based on a date attribute within the QGIS Graphical Modeler

I have now a model which processes two layers of points corresponding to observations at 'Time_1' and 'Time_2'. It counts the observation per quadrats in a grid and obtains two outputs: a grid with ...
Sebastian Silva's user avatar
3 votes
1 answer
91 views

Calculating field with input from two layers in QGIS Graphical Modeler

Even though I found similar questions, I couldn't find a suitable answer for the problem I have. I want to create a model that calculates the difference between two fields ("NUMPOINTS") from ...
Sebastian Silva's user avatar
0 votes
0 answers
68 views

Feature to Polygon in ArcGIS Pro: attribute missing although Preserve attributes is checked and feature labels are provided

I try to follow the suggestion given in an equal case in ArcGIS Desktop, however, I do not end up with the desired result. I start with the Shapefile Feature Class lgm_3_contour_edit.shp of Geometry ...
stonebe's user avatar
  • 445
4 votes
1 answer
77 views

All fields recognised as String when importing CSV with CSVT in QGIS

I am trying to import data contained in a CSV file Chomage 1975.csv, with a CSVT file Chomage 1975.csvt in the same folder. My CSV file content is: Code;City Name;Unemployment rate 15 years and over ...
cyirand's user avatar
  • 95
2 votes
2 answers
105 views

Update field automatically when adding a new entity

I am trying to automatically update the content of several fields, when the first one is completed. If the value in the first field is not found, then nothing. But if the value is found, then the ...
Giene's user avatar
  • 489
0 votes
1 answer
31 views

Copy active field configuration in ArcGIS Pro

I am working with ArcGIS Pro 2.9. I have a map with several layers that point to the same source. I want to know how to copy the active field configuration from one layer to the others, because there ...
nanunga's user avatar
  • 533
7 votes
2 answers
224 views

Adding metadata that describes each attribute field in QGIS

Using a GeoPackage layer at 3.28.9, I would like to add descriptive information for each of the layer's attribute fields as metadata. However, there is no Layer Properties > Metadata tab for ...
Stu Smith's user avatar
  • 8,104
0 votes
1 answer
31 views

Placing text into cells in number field using ArcMap

I'm using ArcGIS Desktop 10.8.2. I have an attribute table with a long integer field, but I have a few cells in this field without values. I want to put "N/A" in these cells. So, the ...
Kenneth's user avatar
1 vote
0 answers
70 views

Calculating the surface area of the ocean at each latitude

I am trying to get the surface area of the ocean at each 1° latitude slice. However, for some unknown reason, region -61 which is at latitude -61 has a negative number, and am not sure why that is the ...
Lilnet Cloud's user avatar
1 vote
1 answer
61 views

Using widgets multiple times in QGIS form independently

I am using QGIS to set up a Form to collect data using QField. The form is to use Containers with similar Widgets such as Date and Photo. If I use the same Date widget in two separate containers, they ...
johng's user avatar
  • 21
1 vote
1 answer
44 views

Assigning new values based on the field calculator and "case when then" in QGIS

I would like to do conditioning in the attribute table consisting of the following action: CASE WHEN "network" = icn_ref THEN '001|' ELSE '' END || CASE WHEN "network" = ncn THEN ...
machollka's user avatar
3 votes
2 answers
128 views

How to label the highest value comparing different fields by suffix name in QGIS

Based on a layer with point geometry with the following fields: res_1_name res_1_perc res_2_name res_2_perc res_3_name res_3_perc How could I automate that the 'res_name' field that has the highest ...
Ingrid Ingravida's user avatar
4 votes
1 answer
99 views

Using get_feature function with attribute in QGIS

I am trying to wrap a get_feature with an attribute expression to perform the equivalent of a VLOOKUP in Excel. Using the form below I get a NULL result. attribute(get_feature('pointst', 'when', ...
Sethinacan's user avatar
  • 1,565
3 votes
1 answer
68 views

AttributeError when creating list field with QVariant in QgsVectorLayer using PyQGIS

I am trying to create a list-type field for the active layer using the code below, which is not working. Is there any other way to create a list-type field and update the list([1,2,3]) as an attribute ...
Ganesh S's user avatar
1 vote
0 answers
63 views

Separating data in name field so it can be filtered in QGIS

I have some information that I want to filter by some of the fields under the primary name field for ex: "gs_substation" or "gs_feeder_number". But they are unable to be filtered ...
Carlos C's user avatar
0 votes
1 answer
69 views

QField conditional visibility in forms doesn't work in the mobile

I've been trying to make a field mapping project using QField. I've developed attribute forms with drag and drop designer. I have 5 tabs so far. 1.Meta data 2. Lithology 3. Structure 4. Notes 5. ...
Anon's user avatar
  • 1
1 vote
1 answer
41 views

Getting selected attributes from line layer to polygon layer in QGIS

I am trying to get specific attributes from a line layer to a polygon layer. The line layer contains a number of pipes that run through a polygon (parcel). They both have the parcel number in common: ...
ibdmn's user avatar
  • 191
4 votes
3 answers
220 views

Labeling layer with two attributes in QGIS

I use the QGIS version 3.28.4-Firenze and I have the following question: How can I label a polygon layer with two attributes, where the two attribute labels should look different (color, shape, size) ...
KittyKr's user avatar
  • 41
0 votes
0 answers
31 views

Trying to save a raster with only field information

I'm fairly new to all GIS. I am using the Wise30secfin.ovr file which has prepopulated fields in an attribute table. I want to make a raster with the values from only one field, but every time I try ...
Tal_1's user avatar
  • 1
1 vote
0 answers
13 views

Setting numeric values in new field based on length and branches in QGIS

I'd like to know how to set incremental numeric values in a new field of a layer, which has been obtained by "shortest path from point to layer", based on the length and the branches. I need ...
Mark's user avatar
  • 935
1 vote
0 answers
41 views

Grouping points within counties and symbolizing their data as pie charts in QGIS

I need to combine/categorize points within different polygons while retaining some of their values. I've made up a scenario to try and simplify my problem. The layers I have to work with are a point ...
Inga's user avatar
  • 19
1 vote
1 answer
58 views

Duplicating certain features based on symbol in QGIS Attribute table

In QGIS 3.28.8 I have downloaded the data for power lines in different parts of Germany from OSM. Some of these lines and cables have different voltages (see below). I can filter those with several ...
eafwnrg's user avatar
  • 51
2 votes
0 answers
73 views

Returning field value based on expression on another field using QGIS expression

I want to return the value from one field ("Number") for the feature with the most recent timestamp ("Time") from within the current layer ('mylayer'). Or what's the number of the ...
Sethinacan's user avatar
  • 1,565
1 vote
0 answers
60 views

Changing number to bigger than 999 in QGIS

In QGIS 3.28 on Windows, there is a shapefile originally created in QGIS that was imported and worked on in ArcGIS. Now, when I reopen the file in QGIS, the real numbers have a width of 18 instead of ...
i.i.k.'s user avatar
  • 1,105
0 votes
0 answers
101 views

Get checkbox for Boolean field in attribute table

I have a dataset with a lot of Boolean fields. In the attribute table, they are represented with text (either true oder false). If I click into the cell, I get the checkbox I also get in the attribute ...
e-shirt's user avatar
  • 659
2 votes
1 answer
174 views

Concatenating field names if value is true using QGIS expression

I have multiple boolean fields. I want to create a new string field, that is concatenating the field names of my existing fields when their value is true. I want the names separated by a comma. I am ...
e-shirt's user avatar
  • 659
1 vote
1 answer
79 views

Filtering string column with datetime in PyQGIS

I have a CSV in QGIS and one of the columns is "Data/Hora GPS" with the DateTime in format (day/month/year hour:minute:second), in the field calculator I used the expression for filter: ...
Mestrexama's user avatar
3 votes
2 answers
96 views

Deleting contents of all entries in field in QGIS Attribute table

In QGIS, how can you delete all of the entries in a field in an attribute table? If you go to a particular entry in a field, you can delete that entry, but how can you delete all of the entries in the ...
Mark Polczynski's user avatar
-1 votes
1 answer
116 views

Converting string variable to number format without creating new variable using Field Calculator in QGIS

I have many variables which are of type string but contain in fact numbers. In QGIS you can convert those strings to numbers by creating a new variable with the wanted numeric type (e.g. integer or ...
i.i.k.'s user avatar
  • 1,105

1
2 3 4 5
37