Questions tagged [fields-attributes]

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

Filter by
Sorted by
Tagged with
3 votes
1 answer
69 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. ...
user avatar
0 votes
0 answers
21 views

Setting permanent minimum height and width of all cells in attribute table with PyQGIS

Let's assume there is an attribute table of a vector layer which was opened with F6, see image below With the code below I could set the minimum height and width of all cells in the attribute table. ...
user avatar
  • 22.9k
-1 votes
0 answers
20 views

Is there a reference for Natural Earth Data attributes?

I am considering using the Natural Earth Data shapefile set for a project I am working on. Does anyone know of a reference, data dictionary, or other specification that gives the meaning, intended use,...
user avatar
1 vote
0 answers
18 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 ...
user avatar
0 votes
1 answer
15 views

Updating/Setting Field on GML file not working

I'm currently attempting to add a new field to each feature in a file, however, the file is not getting changed. I've tried using driver.Open(file_path, 1) and driver.Open(file_path, update=1), but ...
user avatar
  • 13
5 votes
1 answer
90 views

Deleting the same column(s) from different shapefiles in QGIS

In QGIS, I have a problem deleting the same column out of different shapefiles, is there a way to do this? I want to delete several columns out of all these layers, is there a way to do this without ...
user avatar
  • 115
0 votes
2 answers
16 views

Unable to join data from another layer

I have two polygon layers, I want to join the data based on the location from one layer to another layer. But only field is joining not the data. In image green is one layer and red is another layer. ...
user avatar
  • 259
2 votes
0 answers
37 views

How to join a column from a line data layer attribute table and join it to a shapefile attribute table in QGIS?

Issue: I have calculated the distance from shore from point data showing dolphin IDs to the coastline by using these commands: Step 1: Digitise the country lines for administration country shapefiles ...
user avatar
2 votes
1 answer
42 views

Renaming categorical attribute values in QGIS attribute table: merge two different strings to the same name

Issue I have a column called ' Species' in a shapefile layer showing the distribution of different species of dolphins. The operator that originally inputted the species names into our excel data ...
user avatar
2 votes
1 answer
19 views

QGIS misidentifying fields attribute type

In trying to build a simple expression to sum data into clusters I've used the following statement: sum('MTO heat map_Total','MTO heat map_Grouping') The value 'MTO heat map_Total' is an integer ...
user avatar
1 vote
0 answers
16 views

Alternate view to normal view in attribute table [closed]

I have somehow accidentally changed how my attribute table looks and I dont know how to get it to go back to the original state has anyone any idea how to change?
user avatar
  • 11
1 vote
0 answers
31 views

Find min and max values of a field (column) in a feature layer

I am using ArcGIS API for Javascript in a Nuxt application and I would like to find the max and min values of a field in a feature layer hosted on ArcGIS. How to do that? Here is the code. The values ...
user avatar
  • 11
2 votes
2 answers
110 views

Filling attributes in one field based on second field with same values in QGIS

How do I fill the attribute with "SID_2" of the captured image where the ID of "SID_1" is NULL? I'm using QGIS 3.22
user avatar
  • 27
2 votes
2 answers
58 views

Merging multiple point layers with common fields to create single table in QGIS

I have seven point shapefiles at the same geographic location with three common fields ("ID", "name2", "name3") and a fourth field, ("uni_value") that is unique ...
user avatar
  • 129
1 vote
1 answer
68 views

Updating attribute field with values from list calculation using PyQGIS

I have a shapefile and I need to update a field with calculation results. In the calculation I'm iterating through two list with equal items as features of the shapefile. The sum of the list items ...
user avatar
  • 65
3 votes
1 answer
61 views

Adding name of each shapefile polygon to its attribute table with add field using ArcMap ModelBuilder

I have converted raster files(tif) to polygons. Each of them has 3 fields in its attribute table: id=0, fid=0, shape=polygon zm. How can I add the name of each polygon to the attribute table? As you ...
user avatar
  • 43
1 vote
1 answer
43 views

Trying to update attributefields from shapefile with field values from intersecting shapefile features

I have two shapefiles. This code selects features from shp1, which intersect with features from shp2. I need to update two fields from shp2 with the values of the intersecting features form shp1. ...
user avatar
  • 65
4 votes
1 answer
92 views

Creating new layer with all attributes inherited from original layer using PyQGIS

Let's assume there is a polygon layer called 'test2' with its attribute table, see the image below. With the code below I am creating a new layer as centroids of original features layer = iface....
user avatar
  • 22.9k
4 votes
2 answers
135 views

Writing list as attribute field in PyQGIS

This answer got me close https://gis.stackexchange.com/a/286780/204059, but I only get the last value of my list for all object fields. Example: My list = [REL_1, REL_2, REL_3]. My layer has three ...
user avatar
  • 65
4 votes
4 answers
119 views

Removing file type from attribute table in QGIS

I imported a shapefile that contains track plots of SGY files into QGIS, and I would like to remove '.sgy' from the file names in the attribute table. In the image, I've highlighted the section of ...
user avatar
  • 51
1 vote
2 answers
45 views

Qgis- Merging datasets of similar data without losing attributes

I'm looking for advice on how to compile some datasets that each have a different set of attributes. Each dataset is point data, recorded in one of the two coordinate systems that have been used ...
user avatar
7 votes
2 answers
137 views

Selecting items in the attribute column based on items of the other layer in QGIS

I have the items in my data attribute table, which were selected. What I want to do is make the object with the same value to be selected in the attribute table, which belongs to another layer. In ...
user avatar
  • 3,594
5 votes
1 answer
58 views

Automatic fill-in value map columns in QGIS

I would like to connect my taxon name column (value map) with a new column (scientific name). How to make a new scientific name autofilled when I choose a taxone name from the list? For example: I'm ...
user avatar
  • 51
2 votes
0 answers
20 views

Attributes Form -> show description-column but write value-column

Concerning value Relation Forms: I'd like to show the content of a description field in the dropdown menu, but write the content of the value field. Sure, with the mouse-over effect, it will show me ...
user avatar
  • 21
2 votes
0 answers
39 views

Transforming multiple sets of coordinates in attribute table by name of field using PyQGIS

I have a script that takes a set of points and computes the distance to nearby geographic points taken from OSM data. The output layer is the point layer with new fields showing the distance to, name ...
user avatar
  • 79
4 votes
3 answers
169 views

Nullifying the whole row in data attribute table at once in QGIS

I have a situation as you can see below: and I would like to have one row cleared completely at once. Is it possible?
user avatar
  • 3,594
0 votes
0 answers
11 views

Unable to add field to feature class using arcpy.AddField_management

I'm having trouble adding multiple fields at once in my code. The script runs fine but when I check my attribute table no new fields are added? I tried refreshing, reopening the program, removing the ...
user avatar
7 votes
2 answers
149 views

Download a small part of a WFS map in QGIS

I have a WFS layer I want to download a small excerpt from, so that I can derive data from its attributes. Currently, since the dataset is so large, I can't even open the attribute table without QGIS ...
user avatar
  • 140
0 votes
0 answers
46 views

Fetching value from derived feature of shapefile in Python script

I am trying to create one vector layer from another layer. For this, I need the values from the derived section of the feature as shown in the image. Is there any way to fetch derived feature values ...
user avatar
0 votes
0 answers
15 views

QGIS - replace 'Reuse last entered attribute values' with attrributes from any existing object

How do I get attribute values from the selected existing object for creating a new one (replace ' Reuse last entered values')?
user avatar
  • 1
0 votes
1 answer
31 views

ArcPy script joins two layers together but leaves out some fields

I adopted a python script from a coworker who left the company. I need the missing fields added back in. Is there another process I could use to ensure that all fields from both layers are included? ...
user avatar
2 votes
0 answers
20 views

QGIS 3.16 Use change state of a checkbox as a trigger for updating another field

I want to record the date/time of field survey for features. This should only be updated at the moment a checkbox value is ticked. Further edits would be needed to the record later, either in the ...
user avatar
1 vote
0 answers
24 views

How to use WFS to update the value of a field to an empty string '', not Null?

I tried to set a field value of a feature to an empty string '' via WFS, but I didn't find a way to make it happen. I use the WFS protocol to send to Geoserver. I tried the following three methods: 1. ...
user avatar
  • 33
3 votes
2 answers
129 views

Geocoding address in attribute table with PyQGIS

The script doesn't work as if I wanted. from qgis.core import * from .resources import * import json mylayer = QgsProject.instance().mapLayersByName("layer")[0] features = mylayer....
user avatar
2 votes
1 answer
45 views

Changing the value of attributes using QgsFeature in PyQGIS

The script doesn't work as if I wanted. Script: mylayer = QgsProject.instance().mapLayersByName("Kuniarka")[0] dane = 'a' for seg in mylayer.getFeatures(): #seg = next (mylayer....
user avatar
4 votes
1 answer
69 views

Snap points to polygons based on attribute QGIS

I'd like to snap the points to the closest polygon (blocks) based on an attribute they share, this attribute is their suburb. I've tried by running the following expression: closest_point( ...
user avatar
  • 71
4 votes
3 answers
125 views

Selecting features in one layer based on mutual field with another layer in QGIS

I have two layers in QGIS, each one with a field called "Name". I need to select the features in 'layer2' whose name exists in 'layer1' (totally or partially). For example, in the images ...
user avatar
4 votes
4 answers
177 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]
user avatar
  • 83
4 votes
2 answers
113 views

Populating field with sequential timestamp in QGIS

I have a point layer in a GeoPackage with this attribute table. name id timestamp A 1 23:03:2022T23:30:00 A 2 A 3 ... B 1 23:03:2022T23:30:00 B 2 B 3 .....
user avatar
2 votes
0 answers
26 views

Snap points based on attribute QGIS

I'd like to snap the blue points to the nearest yellow point based on an attribute they share on QGIS, this attribute is their suburb, I've tried by using the tool "geometry by expression" ...
user avatar
  • 71
3 votes
1 answer
59 views

Updating geometry field automatically from East and North fields in QGIS

I have a layer that contains a number of fields, two of which are "East" and "North". I would like to be able to set up the layer so I fill out the attribute form including ...
user avatar
3 votes
1 answer
117 views

Calculating sum of values based on another attribute as filter in QGIS [duplicate]

I have shapefile data set (Road segments) my area of interest is to calculate the length of all road segments having a particular attribute, e.g.: sum of (length attribute) when Attribute1=something. ...
user avatar
6 votes
1 answer
70 views

Extracting part of string from two columns at once in QGIS

I would like to extract numbers from two columns at once because I have the situation you see below. regexp_substr(regexp_substr("Address L1", '(\\d*) ')("Address L2"), '(\\d*)') ...
user avatar
  • 3,594
8 votes
1 answer
114 views

Meaning of maximum field length of 0 for GeoPackage in QGIS

I have looked around for the answer, but have not found anything reliable. When creating a new layer or new fields in a GeoPackage one sometimes has to enter the parameter Maximum Length, sometimes ...
user avatar
  • 1,446
3 votes
2 answers
128 views

Export selected fields from attribute table in QGIS

In my attribute table there is a large number of fields. I want to export the data with selected fields. How to do this in QGIS?
user avatar
  • 259
5 votes
1 answer
100 views

Automatically fill in attributes of parent feature in QGIS

I have a data table that holds different information about buildings in a GeoPackage. Different elements of the buildings can be entered, e.g. sometimes I only have the building as a whole, sometimes ...
user avatar
  • 1,446
3 votes
1 answer
62 views

Adding multiple letter codes from attribute columns in new column using QGIS

I am working in QGIS and trying to create a landcover vector for a project. I have multiple columns with different attributes. As shown below: I was trying to create a three letter code in the "...
user avatar
  • 365
3 votes
1 answer
106 views

Reclassifying vector attributes efficiently in QGIS

I have converted a raster file to vector and I am trying to create multiple attributes or levels, for my land classification. I have multiple values that are 101, 102, 103, 104 etc. where the 100 ...
user avatar
  • 365
6 votes
1 answer
107 views

Filtering rows by letter QGIS

I'm using QGIS and I want to create a rule to filter a dataset by size and by name (all areas over 80000 squarekilometers that begin with an A) This is the expression I built: "areakm2" > ...
user avatar
  • 115
0 votes
1 answer
79 views

Return values to multiple fields — using an Arcade calculation attribute rule in ArcGIS Pro

ArcGIS Pro 2.9: Is there a way to return values to multiple fields using an Arcade calculation attribute rule? For example, return values to the following fields, all within a single expression/rule: ...
user avatar
  • 756

1
2 3 4 5
32