I am trying to calculate areas for polygons in QGIS 3.16.10 using PyQGIS 3 as you would with the Field Calculator. I am trying to use QgsExpression to create the necessary expression. However, the API documentation requires that the geomCalculator is set. What does this mean?
Asked
Active
Viewed 37 times
0
-
2see the accepted answer here --> https://gis.stackexchange.com/questions/323006/adding-area-column-in-polygon-layer-using-pyqgis – Kartograaf Dec 28 '21 at 17:54
-
Thanks. I used the Cookbook geometry predicates example in the answer you provided – Sean Jarrett Dec 28 '21 at 18:23
-
https://docs.qgis.org/testing/en/docs/pyqgis_developer_cookbook/geometry.html#geometry-predicates-and-operations – Sean Jarrett Dec 28 '21 at 18:23