Skip to main content

All Questions

1 vote
1 answer
37 views

I can't update any attribute values in PyQGIS

I've been using PyQGIS for a few of weeks. I'd write a script which shows all earthshakes responding to given parameters, so I wrote this code: from PyQt5.QtGui import * from PyQt5.QtCore import ...
ytreka's user avatar
  • 11
1 vote
1 answer
86 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 ...
GIS Noh's user avatar
  • 321
1 vote
0 answers
21 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?
sophie's user avatar
  • 11
3 votes
1 answer
1k views

How to create a Value Map widget type to select multiple values (checklist) from the dropdown?

I have a polygon layer that represents tree/shrub planting sites that were done. As part of the attribute table, I have fields representing things like tree density, species, soil work, tree size, etc....
Robert's user avatar
  • 43
8 votes
2 answers
2k views

Finding the minimum value of different columns in QGIS

I'll try to calculate the minimum value of four different columns in my QGIS table like: The min. value would be 1,50286 in the first row. Is there any expression or tool to find the minimum value ...
Walther's user avatar
  • 183
3 votes
1 answer
162 views

Creating buffers with values, and finding areas with high value overlap of these buffers

I'm working on a project where, essentially, I'm measuring threat levels based on geospatial patterns. I have different groups with higher or lower threat levels based on the distance from their ...
Bryan Parent's user avatar
2 votes
1 answer
99 views

Returning attribute values without additional characters

I have this part of code inside of a plugin: Emptylist = [] def saveToList(self, layer, EmptyList): for feat in layer.selectedFeatures(): attributes = feat[self.pgLyr.currentText()...
Ash's user avatar
  • 1,220
1 vote
2 answers
117 views

Correlating number values with text values from different fields in ArcMap?

I need to create a vector layer for representing the geology of an area. I have the geological map, a raster file. I made some polygons and I named them in the attribute table, but I don`t want to ...
Sam Lee's user avatar
  • 77
11 votes
1 answer
2k views

Creating predefined values in field using PyQGIS

I would like to make programmatically (with Python) the same thing than we can do directly in QGIS when you create a list of values for a field. I would like to create a new field and specify a list ...
Etienne's user avatar
  • 557
3 votes
0 answers
106 views

Reading row values instead of field values with PyQGIS

I use this piece of code to read the values of fields: lyr = iface.activeLayer() features = lyr.getFeatures() for feat in features: attrs = feat.attributes() print attrs[1] How can I read ...
charles's user avatar
  • 31
28 votes
3 answers
58k views

Reading attribute values using PyQGIS

What is the way to get the information contained in the attribute table, say in column 2, row 2 using PyQGIS?
user16018's user avatar
  • 299