Created
March 23, 2018 08:35
-
-
Save ghtmtt/122bb31c44cbcb41309e4bd83c1d152c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from qgis.core import (QgsProcessingParameterFeatureSource, | |
QgsProcessingParameterField, | |
QgsProcessingParameterFileDestination, | |
QgsProcessingUtils, | |
QgsProcessingAlgorithm) | |
class myScript(QgsProcessingAlgorithm): | |
INPUT = 'INPUT' | |
OUTPUT = 'OUTPUT' | |
def __init__(self): | |
super().__init__() | |
def group(self): | |
return 'My group' | |
def name(self): | |
return 'my algorithm' | |
def displayName(self): | |
return 'vaffanculo' | |
def initAlgorithm(self, config=None): | |
self.addParameter(QgsProcessingParameterFeatureSource(self.INPUT, | |
'Input layer')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment