Skip to content

Instantly share code, notes, and snippets.

@ghtmtt
Created March 23, 2018 08:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ghtmtt/122bb31c44cbcb41309e4bd83c1d152c to your computer and use it in GitHub Desktop.
Save ghtmtt/122bb31c44cbcb41309e4bd83c1d152c to your computer and use it in GitHub Desktop.
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