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?
No comments:
Post a Comment