I'm trying a very simple task. I want to write the layer name in a new attribute column. I managed to do this using Field Calculator. But I need to do the same for a lot of files in batch mode, only available in Advanced Python Field Calculator. In Advanced Python... algorithm I inserted in the Formula field the same expression I used in Field Calculator: value = @layer_name. Unfortunately, python (from Advanced Python... algorithm does not recognize the variable @layer_name. Any ideas?
Tuesday, 10 March 2015
pyqgis - Advanced Python Field Calculator - QGIS Processing Toolbox
Subscribe to:
Post Comments (Atom)
arcpy - Changing output name when exporting data driven pages to JPG?
Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...
-
Does anyone know if it is possible to add hyperlinks to image fields etc. in the pop-up windows of Qgis2web? I've had a look in the laye...
-
I am now working with VIIRS/NPP Active Fires by using python gdal. But I cannot read the data inside the files. Filename = "NPP_AVAF_L2...
-
Here is what I'd like to achieve in QGIS. Is there a processing tool to remove the overlapping part of polygons? It is also very importa...
No comments:
Post a Comment