Questions tagged [fields-attributes]

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

Filter by
Sorted by
Tagged with
2
votes
1answer
598 views

Clearing cache of QGIS 3.10 with Python

I want to add new attributes to a new and empty shapefile layer. The problem is, that QGIS 3.10 takes attributes from the shapefile layer which was used before when loading it to the GUI. So there are ...
0
votes
0answers
29 views

Joining SHP with XLS sheet using Excel

I am trying to join SHP by field CONCATENATE with my XLS sheet. SHP attributes looks like this: ID NAME CONCATENATE 122 765 122765 345/1 765 345/1765 987/3 345 987/3345 Because of those slashes ...
0
votes
2answers
21 views

Set classificationField property to read a list of fields

I'm working in an ArcGIS Pro 2.8 Notebook. GOAL: How would I set the classificationField property to read a list of fields? I believe this is a python matter more so than arcpy. My whole script is ...
4
votes
1answer
54 views

Grouping and sorting field values by group in QGIS

I need to sort groups of "Field A" by "Field B" and write the Sort Order to "Field C". All entities of "X" value in "Field A" are ordered amongst ...
2
votes
1answer
46 views

GeoPandas imports NULL attribute values as zeros from shapefile

I would read a shapefile as GeoPandas DataFrame using: import geopandas as gdp df = gdp.read_file('file.shp') When I read the file, the NULL values have been loaded as zero. I need to see and ...
1
vote
0answers
21 views

What means error "Changes to this form will not be saved. 1 field does not meet its constraints."

I just updated to QGIS 3.20. Now I can no longer do multiple updates, due to a constraint at the field ID. I changed the constraint of ID but the problem stays. I do can make changes when I select ...
5
votes
2answers
101 views

Intersecting more than two layers at same time using QGIS

Background: At 3.20.3, there are two intersect tools available: Vector > Geoprocessing tools > Intersection and Processing Toolbox > SAGA > Features - Polygons > Intersect. In both ...
1
vote
0answers
62 views

Finding current layer name in QGIS field calculator

How do I find the current layer name in the QGIS field calculator ? My goal is to mass process multiple layers and retrieve codes written in their names. I've find the "base_name_file" ...
1
vote
0answers
28 views

Cutting overlapping line by priorities

I have several line layers following an unique and same path. On some part, these layers overlap each others, so there are multiples segments overlapping. I need to find a way which grants me the ...
15
votes
3answers
19k views

Changing the value of attribute using QgsFeature in PyQGIS

I would like to update one attribute of a feature. However, I don't know to update it using the feature object. I have to use data provider to update it. layers = QgsMapLayerRegistry.instance()....
1
vote
1answer
40 views

Selecting 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). ...
9
votes
3answers
302 views

Adding new field in point layer with attribute from another layer in QGIS

I'm working with QGIS 3.16 Hannover under MacOS 10.13 environment. I've got a point and a polygon shapefile layers. I want to add a new field to my point layer with the "id" of the polygon ...
7
votes
3answers
7k views

Accessing attribute data type in PyQGIS

I've been developing a Plugin on QGIS platform using PyQGIS. So far plugin does the following: You can select any feature of the already loaded vector layer in QGIS. After selection, plugin displays ...
0
votes
1answer
38 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(...
6
votes
4answers
2k views

Fill with @row_number based on group field in QGIS 3

Is there a way to fill the table with a row number so that count will restart as new group (identified by a separate column) starts? As a result, "row number" column will restart the count ...
11
votes
1answer
190 views

Setting all the values in attribute field to the same value with PyQGIS

When I use "Update existing fields" in the Field Calculator in QGIS 3.16.0-Hannover, it takes only a second to change all the values in a attribute field to the same value. However when I ...
1
vote
1answer
21 views

How to save attribute forms' widget types and their premade values to a shapefile

I am trying to create 'template' shapefiles. I edited the attribute forms and changed the widget types (ex. value map) with custom values. When I try to export the shapefile this way I end up with ...
3
votes
2answers
59 views

Counting items in another table in QGIS

I have two tables, the table 'fruit' contains a list of fruits (see figure 01). The 'municipality' table shows in the column "execucao01" which fruits exist in each municipality (see figure ...
3
votes
1answer
46 views

Making field only editable when condition from other field is met using QGIS

For a big field project I am using the app Input in which users can add points to a map. They have to provide some information about the objects (burial mounds). Input is wonderful for this, however I ...
1
vote
1answer
53 views

Using coordinates from mouse click for QgsPointXY when creating point using PyQGIS

I can not figure out how to input the coordinates through a mouse click instead of the code below. I am trying to create a temporary layer of a point from a mouse click. Everything seems to work ...
6
votes
1answer
49 views

Merging features in shapefile with same name and concatenate all attributes as single field

I've got a dataset of tiles with individual attributes (NAME,date,sensor). All tiles have the same size. After dissolving layer, in some locations tiles with the same NAME attribute overlap each other ...
3
votes
1answer
100 views

Creating list of intersected polygons for each line using QGIS

I have a line layer representing transport routes. I would like to add a Virtual Layer listing every city crossed by each line. I would only need the id of each city to be listed (column "...
6
votes
2answers
380 views

Multi-field labeling of shapefile with PyQGIS

I wrote the following code in order to draw the line labels with multiple fields. However, the label do not appear automatically in QGIS and I have to switch the "Layer Properties/Labels", ...
4
votes
1answer
4k views

Using UUID Generator in QGIS 2

I try to generate a "UUID" (edit widget) for a vector shapefile in QGIS 2 but the field value is always NULL. Does the field requires a specific datatype? I used integer. In the manual I ...
6
votes
1answer
117 views

Creating permanent dropdown lists in QGIS

I've had some success at creating the drop down lists for attributes in QGIS 3.16 using the Attribute Form option in Layer Properties, as shown here: Creating a multiple select dropdown list in QGIS? ...
0
votes
0answers
15 views

Reordering multiple popups using ArcGIS Online

I have multiple points on top of each other, with different dates across them, resulting in multiple pop ups appearing when you click on point. When clicking the point/s, the popup appears. The ...
1
vote
1answer
45 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 ...
0
votes
1answer
22 views

Adding a table of attribute information onto map

I am using ArcMap. How can I take a feature's attribute information (i.e buildings) and place the names and building numbers in a table, so that anyone looking at the map can relate the building ...
7
votes
2answers
443 views

Removing duplicates from field using ArcPy with ArcMap

I am using ArcPy with ArcMap. I need to remove duplicates from a field named "Intersecti" Here is my code. I used list..set. It's not removing any duplicates. import arcpy duplicates = &...
0
votes
1answer
31 views

Cannot reload attributes columns using QGIS [duplicate]

Unfortunately, I have clicked on the edit button in the attributes table and the spreadsheet with the polygons and their attributes has disappeared (see picture). How do I make the spreadsheet ...
1
vote
0answers
41 views

QField: Drop-down selects all values, instead of the choosen values

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
46 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("...
4
votes
5answers
185 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 ...
0
votes
0answers
20 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
60 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 ...
6
votes
1answer
94 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 ...
0
votes
0answers
27 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 (...
3
votes
1answer
98 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 ...
1
vote
1answer
49 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, {...
2
votes
1answer
563 views

Build Radio Button in QGIS Edit Widget Properties

My question is similar to Choosing multiple options from QGIS Check Box or Value Map for feature attribute? I have 3 categories in a row, i want to make this selection in form of radio button so that ...
5
votes
2answers
100 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 ...
1
vote
1answer
56 views

Features disappear from layer

I have a problem with my newly created layers. I have drawn a lot of features and most of them disappeared during the weekend while the pc was turned off. They are not visible in the drawing, in the ...
1
vote
2answers
783 views

Filling fields instantly and automatically when creating new entity in QGIS

I have a polygon layer, I want to fill the fields automatically each creation of a polygon. Knowing that there is a spatial relationship (intersection, contain ...) between my polygons and other ...
2
votes
1answer
565 views

Extend polygon to polyline feature (keeping attributes)

I am looking to extend the polygon feature to the to the coastline polyline (blue line) while keeping the attributes of the polygon features (Figure below). What I am looking to do is find the ...
0
votes
1answer
330 views

Where is data coming from Tilevector or mapstyle

I'm struggling to use the data that's in a vector tileset source (PortalsWithOrderNr) I commented out the add.source and add.layer but when I click on a portal I get most of the data that's in the ...
7
votes
2answers
174 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 ...
1
vote
1answer
52 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
1answer
103 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
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 ...
6
votes
2answers
229 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 ...

1
2 3 4 5
29