Guest User

Untitled

a guest
Dec 19th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. layer_properties(layer_id, 'attribution')
  2.  
  3. iface.activeLayer().id()
  4.  
  5. # Be sure to import iface from qgis.utils
  6.  
  7. from qgis.core import *
  8. from qgis.gui import *
  9. from qgis.utils import iface
  10.  
  11. @qgsfunction(args='auto', group='Custom')
  12. def get_layer_name(feature, parent):
  13. return qgis.utils.iface.activeLayer().name()
Add Comment
Please, Sign In to add comment