scratch.py under .qgis2\\python\\expressions for master - Saber Razmjooei, 2015-05-29 09:00 AM
Download (280 Bytes)
"""
Define new functions using @qgsfunction. feature and parent must always be the
last args. Use args=-1 to pass a list of values as arguments
from qgis.core import *
from qgis.gui import *
@qgsfunction(group='Custom')
def func(value1, feature, parent):
return value1