Questions tagged [fields-attributes]
Fields, also known as attributes, contain information about features.
1,771
questions
2
votes
1
answer
14
views
Populating new field with data from old field such that new field at fid was equal to old field at fid -1 in QGIS
In QGIS there is a layer 'Layer' with its attribute table:
fid Oldfield Newfield
1 cat -----
2 horse cat
3 dog horse
4 swan dog
I tried ...
2
votes
2
answers
78
views
Calculating the average of one field dependent on another in QGIS
I have a land use shapefile, which has a column:
labelled "LU_1", categorising different areas quite broadly (9 categories total, they are numbered 1-7, U and V).
There's also a field with ...
1
vote
0
answers
35
views
Select points within a distance of each other in QGIS [duplicate]
I want to select and remove 'duplicate' points that are within 200' of each other in QGIS. Meaning I want to leave 1 point and remove any others that are within 200' of it. I tried to buffer and ...
4
votes
2
answers
116
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?
...
1
vote
0
answers
33
views
Transfer attributes from inner polygons to surrounding polygons on other layer in QGIS
I have a vector polygon grid and multipart building polygons (one selected for demonstration) already cut to grid size.
How do I get all the attribute data from the buildings into the grid layer?
I'm ...
2
votes
1
answer
77
views
Failed to export from shapefile to CSV in QGIS
I have a shapefile that I want to export the attributes to CSV. However, I get the following message. I have not done anything to the shapefile following the creation of the layer.
Export to vector ...
1
vote
0
answers
28
views
Using ArcPy to add a field to an existing file geodatabase feature class
I was using this example to try and add a field to a feature class I created in a fileGDB:
arcpy.management.AddField(in_table, field_name, field_type, {field_precision}, {field_scale}, {field_length}, ...
2
votes
2
answers
68
views
Avoid empty lines in QGIS labels
I´m new to QGIS yet very exited of the learning curve and automatisms it provides.
But at some point i dont manage to work around a problem.
I want to label a vector layer with differnt attributes in ...
3
votes
2
answers
129
views
Converting column with category names to numeric codes in QGIS Field Calculator
I use the Field Calculator in QGIS to transform an attribute column with category names to numeric codes. I use the following expression:
CASE
WHEN "category" = 'Foo' THEN 1
WHEN &...
1
vote
1
answer
18
views
Iterate through and modify data in a feature class using ModelBuilder
Using ArcGIS Pro 3.1.0
I'd like to create a model that iterates through features and modifies fields based on a logical if-statement. Specifically, I'd like to check if each field begins with number, ...
2
votes
1
answer
40
views
Calculating time difference between rows of the same field separated by cluster ID in QGIS
I have just formed point clusters using ST-DBSCAN, which gave me a single output with all points categorised by the new column "CLUSTER_ID".
My next step is to acquire the centroids of each ...
3
votes
1
answer
86
views
Autogenerate fields for 'point' layer to represent the lines 'ingress' and 'egress' from point
I have a point layer named closure and a line layer named cable in QGIS.
Within closure there's 4 fields (id, type, ingress, egress),
cable has 4 fields (id, type, from, to).
I have managed to form a ...
0
votes
0
answers
25
views
Replace Attributes Form and Automate Fields
I used QT Creator to create an .ui for my form.
I want to change the form attribute and automate some fields. Imagine I have an layer with field name, I want that field when the form appears, to ...
4
votes
1
answer
72
views
Adding automatic numbering of the "id" field in QGIS
I'm working on QGIS 3.22.6 and I would like to find a way for my "id" column to be automatically numbered as geometry is added.
I am currently using maximum("id") + 1 within the '...
4
votes
1
answer
131
views
Creating a hyperlink in QGIS doesn't work
I have a text in an attribute table that contains a file path. I want a hyperlink to be displayed in the information about the object - in blue, underlined - as I saw in this tutorial: https://www....
1
vote
1
answer
53
views
Joining attribute tables without columns with the same name in QGIS
I would like to link the two attribute tables (see image). However, as far as I know, I need two columns with the same name for the link. Is there an alternative so that I can link the two attribute ...
1
vote
0
answers
35
views
Automatically correct values by default value function
When I add data to a layer, it sometimes occurs that there is a '__' at the end of a number.
I know that there is the option to correct these values manually if I use the command "replace( "...
2
votes
1
answer
78
views
QGIS extracting values from a shapefile
I am looking to extract all features that have a field with values above 0 from a shapefile, then export the selected features. I can do an advanced expression such as:
'Field' Not Like '0'
which will ...
3
votes
1
answer
48
views
Formatting of attribute map for changeAttributeValues method using PyQGIS
I have a PyQGIS script being run from within QGIS that updates attribute values in a GeoPackage, based on a mapping. It currently iterates through fields and features one by one, updating the values ...
0
votes
0
answers
44
views
Export attribute data with GeoJSON in QGIS
I'm trying to create .geojson files that contain basic tracks and waypoints to be used in Leaflet.
I am able to export .geojson file from QGIS and display it on a Leaflet map. However, the exported ...
1
vote
0
answers
31
views
QGIS3 weed tracking via polygon attributes
I have been requested to provide some information about weed distribution on a site in the form of polygons that describe land forms. I am using QGIS3 and slowly getting the hang of it, might be too ...
4
votes
1
answer
208
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 ...
1
vote
1
answer
41
views
Expression for numbers displayed to 1 decimal place in QGIS
I am having an attribute table in a layout with one of the columns being % values using the expression:
to_string("input data_1_ant_care") + to_string('%')
The challenge is the numeric ...
2
votes
0
answers
59
views
Copying attribute table for each layer in QGIS
In QGIS I'm trying to edit attribute tables for a corn planting prescription. I have 50 layers (fields) that all need to have the same attribute table layout. Is there any way to create a template ...
5
votes
2
answers
119
views
Converting multiple fields with abbreviations to one field with full names in QGIS
I have a field with singular abbreviations ("BB", "BC", and "BG") that corresponds to a table with full names (catfish, rainbow trout). It ranges from 1-10 abbreviations ...
0
votes
1
answer
41
views
Alias in QGIS disappearing
Does anyone know why the 'alias' not saved when I export a layer to a shp file? So, I made alias in the file when I exported. After I opened exported shp file and properties->attribute form/fields ...
2
votes
0
answers
50
views
Joining attributes from more polygons into one
I have a polygon shapefile containing 1047 cities. In the attribute table I have population, area, and population density for each city.
My job is to merge all of the neighbouring cities (their ...
0
votes
0
answers
30
views
ArcGIS calculating values from multiple tables
I'm trying to build a model in ModelBuilder where I collect the sum of the "Shape_Area" field in three different feature classes, and add the total to a field in a fourth feature class. I ...
2
votes
1
answer
121
views
Field calculator formula converting DMS coordinate to decimal
I'm trying to convert DMS coordinate written as DD-MM-SS.SSS (ex. 17-42-35.244) in decimal, someone not human suggested me:
to_real(left("Field",2)) +
to_real(mid("Field",4,2))/60 ...
2
votes
1
answer
75
views
Prioritise label by field containing data importance in the data QGIS
I have a file with many labels to show on a map. However, I want to prioritize the label by it's data. Example if my data says 3000 people live in a city, I want to prioritize this over the one that ...
4
votes
2
answers
102
views
Filling several columns based on conditions from column in QGIS
I've got two additional columns that need to be filled with attributes that are based on values created in the field.
For example, if column "reproduction" = A2 then the value in the value ...
1
vote
1
answer
71
views
QGIS 3.22.16 Bialowieza. Selecting matching value in 2 fields
I am using QGIS 3.22.16, I try to select similar 'null' value in 2 different field. I tried the solutions suggested from one this exchange.
Selecting features with equal values in different fields in ...
3
votes
2
answers
96
views
How to make a hyperlink for a point layer in QGIS so that you can go to Google Maps
How to make a hyperlink for a point layer in QGIS so that you can go to Google Maps.
I need to have a separate field when clicked it will show me that point on Google Maps.
0
votes
1
answer
63
views
Attribute Rule with known criteria to enforce but expression to enforce rule over subset of data (alllow null and other attributes)
I'm trying to add some conditional acceptance criteria for an ArcGIS Pro attribute rule.
Basically, I have a feature class with a domain-restricted field (Feature) that has a few values ("PAR&...
1
vote
0
answers
31
views
Locating a specific field in an attribute table using SQL with ArcGIS
I am a beginner at GIS/ArcGIS and have a quick question about locating a field in an attribute table of a feature using SQL. Attached is an image of a (crude) example of the kind of attribute table I ...
1
vote
1
answer
34
views
Extracting specific features using expression in QGIS [closed]
I have a field holding strings like this - 1,2,3,4,5,11,12,10 (each record contains a combination of figures from 1 to 20 separated by commas).
I need to extract only the records containing in this ...
4
votes
1
answer
74
views
Deleting specific attributes of layer using PyQGIS
I want to delete specific columns in the attribute table of my layer:
except for the "LAYER" Column.
This is my code:
clip = processing.runAndLoadResults("native:clip",
...
0
votes
1
answer
43
views
Adding data to record in attributes table using ArcGIS Online
I am a new user of ArcGIS Online. I am trying to add data to an existing attribute table in Classic Maps.
Adding the field (column) was easy but I just can't figure out how to populate it with data. ...
2
votes
1
answer
35
views
QGIS 3.6 on Mac: Extracting attribute value of polygon from another layer when it overlay
I have a layer labeled "Boundaries" with a set of polygons. I have another layer with a set of points labelled "Locations". The "Boundaries" polygons have an attribute ...
5
votes
2
answers
166
views
QGIS: Compare two concatenate fields and add similar strings to new column
I am doing research on how planned improvements in urban green will likely affect biodiversity using QGIS. Each form of urban green has a list of so-called references species, species that are ...
0
votes
0
answers
20
views
In ArcGIS Pro 2.5.0, how can I symbolize a layer by multiple attributes (subtype, ispaid, definition)?
In ArcGIS Pro 2.5.0, a polygon layer is symbolized by unique values SubType (Field 1) and IsPaid (Field 2) where IsPaid is 0 or 1.
SubType A, 0 = Yellow
SubType B, 1 = Red
SubType C, 0 = Light Green
...
2
votes
1
answer
50
views
Make the aggregation function in the form menu more versatile for different projects?
I have expressions for a table field that has a map layer named as a data source file (building_ex.shp). I plan to save this setting as a style and use it in other projects, but in other projects the ...
1
vote
0
answers
64
views
Group by multiple columns in QGIS array
I'm looking to create a figure with multiple rule-based symbologies. A graduated range within a category within a main category.
The only way I think that's possible is by adding categories, ranges to ...
3
votes
1
answer
48
views
Select text field associated with maximum numeric field during QGIS aggregate process
I have a site layer and a grid layer and want to add attributes to the site layer which include a new area (the intersection) and the grid reference (a text field) associated with the maximum ...
5
votes
2
answers
209
views
Displaying label if field contains 'X' or 'Y' value in QGIS
Trying to create an expression to display labels from a field called "Drilled ID", but only if the field named "Status" contains 'Week' or 'Active' but to no avail. If the "...
1
vote
2
answers
43
views
ArcGIS Jupyter Notebooks - calling the attribute Id
I am looking to list field properties and I can't seem to find the parameter that will call the attribute id for the layer. What properties can you call?
Examples:
['name']
['alias']
What I am ...
1
vote
1
answer
45
views
Finding missing or skipped FIDs in a large list of features
I have a shapefile containing 2454 features each with their own unique ID (FID), however the highest FID is 2578. Some features were merged during processing, causing their original FID to disappear. ...
1
vote
1
answer
38
views
QGIS Add unlimited text field to vector layer using Model Designer
I am trying to add a field to the attribute table in Model designer which would be an unlimited text field (rather than with a 255 characters limit). The file is one of the Model Builder outputs and ...
1
vote
2
answers
54
views
Calculating field with consecutive number based on another field in QGIS
In QGIS I am working on a streets layer, on the attribute table I have these fields:
"CVE_VIAL" is an ID of the street and each street could be divided into several sections, each of these ...
0
votes
0
answers
16
views
Attribute fields exporting as org_name, I want it to stay as the original field name
I am exporting a QGIS map as a gpx file, and some of the attribute table fields I have added are turning into ogr_name or ogr_length etc. I need it to stay as the regular field name as I have to ...