Questions tagged [fields-attributes]

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

Filter by
Sorted by
Tagged with
1
vote
0answers
16 views

QField: Drop-down selects all values: Is this a bug, or am I overlooking something?

I am creating a QField Layer with different Drop-Down menus and relations. There is a problem when I select "Allow multiple selections". When I create a line there are choices to select, ...
0
votes
1answer
30 views

How to add all the fields of a layer to another using PyQGIS

I try to add all the fields of layer X to layer Y. This is my code: layerX = QgsProject.instance().mapLayersByName("layername1") layerY = QgsProject.instance().mapLayersByName("...
0
votes
0answers
17 views

Saving multiple classes on raster dataset as individual shapefiles using ArcMap

I have this raster dataset (.tif) of land use cover. There are 22 individual classes in total. Is there any way I can separate these classes and convert them each into individual shapefiles? I want to ...
1
vote
1answer
53 views

QGIS: How to export Coordinates of Polylines of a Layer (containing several Features) into single CSV-files?

Assumed we have some shapefiles imported into QGIS. Each shapefile consists of several features, in this case these are partly connected fragments of polylines (= streets with nodes). Now I want to ...
0
votes
0answers
23 views

QGIS select column in data attribute table reliant from different column

I have the problem because after extracting vertices from my linear geometry layer I have so many duplicates in my data attribute table (taking into account a unique ID of each line). However, I found,...
0
votes
1answer
34 views

Looping through Excel files and deleting the same column for each

import csv import os import pandas as pd #This nested for loop iterates through my excel files and then appends them to my list. feature_classes = [] for dirpath, dirnames, datatypes in arcpy.da.Walk(...
0
votes
0answers
26 views

How to edit two field have the same domain at the same time in ArcGIS?

I have two layers (Parcel and Building ) with fields that have the same domain, for example ; layer (Parcel) has fields with names ("Building status", "Land Use") with domains (...
6
votes
1answer
83 views

Showing field name in the attribute table, not alias, in QGIS 3

I have a file geodatabase table added to QGIS. How can I show field name, not alias in the attribute table? (Or delete the aliases) In ArcMap I can set it in Layer Properties The name, set in ArcGIS ...
3
votes
5answers
166 views

Returning column name of the max value

I am working with some age group data in QGIS based on point counts within a polygon grid and I would like to calculate the max value from a row with 11 different age groups in order to get the ...
5
votes
2answers
96 views

Assigning attribute to polygon after polygonization in QGIS

I've created 50+ polygons by polygonizing a contour derived from a USGS Digital Elevation Model, and I've and fixed the geometries of the polygon layer. Now I want to assign an attribute (mtn or ...
6
votes
2answers
170 views

Iterating through fields and generating formatted string output

I want to iterate through all integer type fields in a layer and generate new "display" fields marked with a 'd' at the end of the name using the appropriate field calculator expression. The ...
5
votes
2answers
220 views

Counting fire occurences per county per year using QGIS

I wish to loop through this shapefile, and for each "COUNTY_NM", count the number of values corresponding to each "layer" value. I want to output a CSV or equivalent which would be ...
2
votes
0answers
33 views

QGIS (& QField) update entire column with 'survey end time'

I have a QGIS project set up to be taken to site to gather data (likely on QField). There is a main point data layer where tube locations will be mapped. This is joined to a surveydata table that ...
2
votes
1answer
34 views

Summing all record in field and putting value in new field

I try to sum all record in "AREA" field and put a value in "SUM" field for calculate a "Ratio" field by using Python. But I struck in a sum part. Here is my code : arcpy....
4
votes
0answers
44 views

QGIS Field Calculator NaN error messages dependent upon variable type?

I have a layer which contains roads. I am using the Field Calculator to compute some statistics based on different attributes. Using QGIS 3.10.14 I am running into an issue using lengths. I have ...
0
votes
1answer
31 views

Searching for existing field available or not in shapefile by ArcPy [closed]

I want to check existing fields in a shapefile by ArcPy. I want to test for two fields, named "Northing" and "Easting". If both fields are present then it's okay, else if one or ...
1
vote
0answers
19 views

Feature Attributes window shifts when creating/labelling features QGIS 3.20.1

I am running QGIS 3.20.1, and every time I add a feature to my shapefile, the Feature Attributes window shifts downwards - to the point I have to click and drag it upwards to fill in the attribute I ...
6
votes
2answers
156 views

Extracting number from address string using QGIS

I have a table with addresses and I need to extract only the number from the attributes. The format is as follows: address VALLEY VIEW HOUSE, 36 HIGH VIEW, USHAW MOOR, DH7 7QQ 35 HIGH VIEW, USHAW ...
2
votes
1answer
34 views

Numbering grid cells using ABC & 123 in QGIS

I'm trying to number a grid from 120 rows by 120 columns: horizontal ABC, vertical 123 using Algorithm ID: 'native:creategrid' and Algorithm ID: 'QgisregularPoint'. Numbering vertically isn't a ...
2
votes
1answer
43 views

Adding data to new field in attribute table in QGIS

I have created a new field column in the attribute table for my shapefile as shown below. I now need to add data to these rows from another datafile. Is there a way to do it other than manual editing ...
0
votes
1answer
87 views

Adding x and y coordinate fields to multipoint layer in PyQGIS

I have a MultiPoint layer in QGIS 3.18 that I wanted to add x and y coordinates to in its attribute table. Normally, I can just use field calculator and calculate the new field to be $x or $y. How do ...
2
votes
0answers
46 views

Adding easting and northing points in ArcGIS

I am trying to add coordinates into ArcGIS 10.6.1. Below are the Northing and Easting I have been given. I have added these Northing and Eastings into an Excel sheet and saved them as a CSV File (The ...
0
votes
0answers
29 views

ArcGIS Pro add attribute rule (Arcade expression)

I am trying to create an Arcade expression in add attribute rule which will auto populate the attribute field (DPA_GROUP) in my points layer (as I create new point features) from the underlying ...
2
votes
2answers
53 views

Moving cells with field calculator of ArcGIS Pro

I am trying to move field entries down by 1 in an attribute table, between a certain row spread. I would like to move all the entries in the 'key biomechanical features' column down by 1 row between ...
4
votes
1answer
60 views

Interpolating point attributes

I'm trying to fix broken sections in navigation data in QGIS. I have a model that cuts out broken sections of a point layer and inserts new points according to a line layer that I added earlier. The ...
3
votes
1answer
42 views

Filtering NULL values in date field in QGIS [duplicate]

In QGIS 3.16.9 I would like to find all the locations that have a NULL value. It is for a date field in the field services Drains dataset. I have been searching the use of NULL around various forums. ...
0
votes
0answers
24 views

Merging overlapping lines while preserving multiple attributes using ArcGIS Pro

I am using ArcGIS Pro and trying to work out a problem for a field project I've been a part of that goes a step beyond a simple dissolve or merge of overlapping lines. For context: The project entails ...
0
votes
1answer
19 views

Export DXF ArcMap to read in AutoCAD (No attributes)

Could anyone shed some light on what I am doing wrong? I have a shapefile in ArcMap which I have exported to a DXF. When I import it back into ArcMap I can see it has attributes. However when I open ...
2
votes
0answers
30 views

Attributes form: autofill in any position

With QGIS autofill I can easily find a value by typing its initial characters. Can I configure the field so that I can type middle characters and still find it?
1
vote
0answers
25 views

Add a table with attributes based on value for some features

I have a set of points with contamination data for each one, and I would like to show a table, for each point, for the contaminations that surpass certain threshold, something like this: Now, ideally ...
1
vote
1answer
48 views

Extracting centroids from property of polygons

I have been using a function to get the centroid of each polygon (building) in my dataset. var buildings = ee.FeatureCollection('GOOGLE/Research/open-buildings/v1/polygons') Map.addLayer(buildings, {...
0
votes
0answers
30 views

Are there different ways to store attribute table data?

I work in ArcMap 10.8.1. When a collegue of mine worked on a task of editing attribute tables of feature classes in a GDB (adding/deleting fields), he reported an error to me. It seems no changes were ...
1
vote
1answer
49 views

Automatically renew of layers depending on another layer in QGIS

Iin QGIS I have a layer with all found Birds in a City ('Vogeldaten'). In the attributes they are categorized in different types of breeder (free-breeding, ground-breeding, hedge-breeding, etc.). For ...
0
votes
0answers
31 views

Exporting Specific Field using ArcPy [closed]

How do I export specific fields out of these attribute joins? I do not want to export all the fields out but specific fields like Name, Age, Ethnicity etc. # Process: Join Field (Join Field) (...
0
votes
0answers
45 views

QGIS Data attribute input values on the same side

I am creating a new layer. Since I've created it in the SpatiaLite layer, then it was fine. I had all my input values on the same side, where column titles are. Unfortunately, I've made mistake in one ...
1
vote
0answers
47 views

PyQGIS 'str' object has no attribute 'fields'

I'm trying to write my first Зython script from template in QGIS. I want to delete all fields except specific ones. Therefore I create a list to fill it with all the field names except the specific ...
1
vote
1answer
49 views

Adding leading zeros to string value in QGIS [duplicate]

I have a "field" with string values like field new field 3 0003 5 0005 22 0022 999 0999 What is the right expression for the QGIS Field calculator to get a 4-character string-field ...
3
votes
3answers
190 views

Splitting string with house number in QGIS Field Calculator

I have a string field with housenumber which contains values like: housenumber 5 12 a 15 b 18 c What are the right expressions for the field calculator to write only the number in "field1&...
3
votes
0answers
67 views

Adding attribute of polygon orientation depending on neighbors in QGIS

I have a shapefile with buildings as polygons. Is it possible to add attribute columns referring if the polygon boundary is "other polygon" or "outdoors" for a certain orientation (...
1
vote
1answer
36 views

ArcGIS Pro metadata: XML export will not retain field information

software: ArcGIS Pro 2.6.3 (2.8 attempted) I am working with exporting metadata as an XML (Export on the Metadata catalog tab), from an enterprise geodatabase feature class. All necessary fields for ...
2
votes
1answer
30 views

How to join the content of an attribute in multiple rows with semicolon and delete doubles (QGIS)?

I have a shapefile with a large number of buildings (polygons) and want to add an the parcel number from a different shapefile in QGIS. In most cases this works well using join by position. However ...
2
votes
0answers
26 views

Field values don't show up in the symbology while they are visible in attribute table

I am trying to colour different categories within a shapefile in different styles to differentiate them - these categories are visible when looking in the shapefile's attribute table, but then don't ...
1
vote
1answer
59 views

Adjusting text style in multiline label in QGIS

In QGIS 3.16 I have a 3 lined label "Projekt" || '\n' || "Art" || '\n' || "Bearb" How can I make only the text of the first line ("Projekt") bold or a bigger ...
4
votes
2answers
79 views

Creating ellipse symbols with defining size of the minor and major axes in QGIS

In QGIS 3.20 (or QGIS 3.18) I have a shapefile with point geometry, this shapefile has a field with the value of error in "x" and a field with the value of error in "y". I would ...
3
votes
1answer
93 views

Creating unique ID for features that are within polygons with unique IDs

I need to create and "ID" for items within a polygon that also takes into account the name of the polygon that the item is within, so what I need is something along the lines of: poly_X_Item ...
2
votes
2answers
97 views

Script removes all data from fields when using custom function in Field calculator

I am trying to clear entries in columns using the field calculator but with my current script, it removes all the data from all the rows. Basically, if the Historical column is equal to 'Historical ...
0
votes
1answer
23 views

Altering field name using ArcGIS Pro

I am using the Alter Field tool in ArcMap to change the name of an attribute column of a shapefile. But, I am getting this error, How can this be fixed?
1
vote
1answer
48 views

Getting labeling field in variable and changing labeling field with PyQGIS

I working with QGIS 3.20. I want to write a PyQGIS script to automate switching the field used for labeling in numerous layers. Currently the layers are labeled from values of a field that is ...
1
vote
1answer
55 views

Changing field values with PyQGIS [duplicate]

I have a shapefile with almost 50,000 features and 2 fields. I want to change all the attribute values of the second field, and I remember that in QGIS 2 there was a way to save to disk ONLY at the ...
0
votes
1answer
28 views

i want to create a layer with two different value of a field [closed]

I want to create a layer with two different value of a field. Suppose I have a layer named "Road Network". In that feature class i have a field in attribute table named "addi_rd"......

1
2 3 4 5
29